@iplab/ngx-file-upload
Advanced tools
Comparing version 1.1.9 to 1.1.10
@@ -1,2 +0,2 @@ | ||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("rxjs"),require("@angular/animations"),require("@angular/common"),require("@angular/core"),require("@angular/forms")):"function"==typeof define&&define.amd?define("@iplab/ngx-file-upload",["exports","rxjs","@angular/animations","@angular/common","@angular/core","@angular/forms"],e):e((t.iplab=t.iplab||{},t.iplab["ngx-file-upload"]={}),t.rxjs,t.ng.animations,t.ng.common,t.ng.core,t.ng.forms)}(this,function(t,e,i,n,o,r){"use strict";function s(t,e){var i="function"==typeof Symbol&&t[Symbol.iterator];if(!i)return t;var n,o,r=i.call(t),s=[];try{for(;(void 0===e||0<e--)&&!(n=r.next()).done;)s.push(n.value)}catch(a){o={error:a}}finally{try{n&&!n.done&&(i=r["return"])&&i.call(r)}finally{if(o)throw o.error}}return s}function a(t){return null==t||0===t.length}var l={INVALID:0,VALID:1,DISABLED:2};l[l.INVALID]="INVALID",l[l.VALID]="VALID",l[l.DISABLED]="DISABLED";var c=function(){function t(t){this.files=new Set,this.listVisible=!0,this.status=l.VALID,this.errors=[],this.validators=[],this.statusChanged=new e.Subject,this.statusChanges=this.statusChanged.asObservable(),this.valueChanges=new e.BehaviorSubject([]),this.listVisibilityChanges=new e.BehaviorSubject(this.listVisible),this.defineValidators(t)}return t.prototype.setValidators=function(t){return this.defineValidators(t),this.validate(),this},t.prototype.defineValidators=function(t){a(t)||(this.validators=Array.isArray(t)?function i(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(s(arguments[e]));return t}(t):[t])},t.prototype.addFile=function(t){return this.files.add(t),this.validate(),this.valueChanges.next(Array.from(this.files.values())),this},t.prototype.removeFile=function(t){return this.files["delete"](t),this.validate(),this.valueChanges.next(Array.from(this.files.values())),this},t.prototype.addFiles=function(t){return this.addMultipleFiles(Array.from(t)),this},t.prototype.addMultipleFiles=function(t){var e=this;t.forEach(function(t){return e.files.add(t)}),this.validate(),this.valueChanges.next(Array.from(this.files.values()))},Object.defineProperty(t.prototype,"valid",{get:function(){return 0===this.errors.length&&this.status!==l.DISABLED},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"invalid",{get:function(){return 0<this.errors.length||this.status===l.DISABLED},enumerable:!0,configurable:!0}),t.prototype.getError=function(){return this.errors},Object.defineProperty(t.prototype,"size",{get:function(){return this.files.size},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return Array.from(this.files.values())},enumerable:!0,configurable:!0}),t.prototype.setValue=function(t){if(this.files.clear(),!(t instanceof Array))throw Error("FormControl.setValue was provided with wrong argument type, "+t+" was provided instead Array<File>");return this.addMultipleFiles(t),this},t.prototype.clear=function(){return this.files.clear(),this.validate(),this.valueChanges.next(Array.from(this.files.values())),this},Object.defineProperty(t.prototype,"isListVisible",{get:function(){return this.listVisible},enumerable:!0,configurable:!0}),t.prototype.setListVisibility=function(t){return void 0===t&&(t=!0),this.listVisible=t,this.listVisibilityChanges.next(this.listVisible),this},Object.defineProperty(t.prototype,"disabled",{get:function(){return this.status===l.DISABLED},enumerable:!0,configurable:!0}),t.prototype.enable=function(t){return void 0===t&&(t=!0),this.status=t?l.VALID:l.DISABLED,this.validate(),this.statusChanged.next(this.status),this},t.prototype.disable=function(t){return void 0===t&&(t=!0),this.status=t?l.DISABLED:l.VALID,this.validate(),this.statusChanged.next(this.status),this},t.prototype.validate=function(){var e=this;if(this.status!==l.DISABLED){var t=this.valid;this.errors=this.validators.map(function(t){return t(e)}).filter(function(t){return t}),t!==this.valid&&this.statusChanged.next(this.valid?l.VALID:l.INVALID)}else this.errors.length=0},t}(),p={aac:"audio/aac",abw:"application/x-abiword",arc:"application/octet-stream",avi:"video/x-msvideo",azw:"application/vnd.amazon.ebook",bin:"application/octet-stream",bmp:"image/bmp",bz:"application/x-bzip",bz2:"application/x-bzip2",csh:"application/x-csh",css:"text/css",csv:"text/csv",doc:"application/msword",docx:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",eot:"application/vnd.ms-fontobject",epub:"application/epub+zip",es:"application/ecmascript",gif:"image/gif",html:"text/html",ico:"image/x-icon",ics:"text/calendar",jar:"application/java-archive",jpg:"image/jpeg",js:"application/javascript",json:"application/json",midi:"audio/midi",mpeg:"video/mpeg",mpkg:"application/vnd.apple.installer+xml",odp:"application/vnd.oasis.opendocument.presentation",ods:"application/vnd.oasis.opendocument.spreadsheet",odt:"application/vnd.oasis.opendocument.text",oga:"audio/ogg",ogv:"video/ogg",ogx:"application/ogg",otf:"font/otf",png:"image/png",pdf:"application/pdf",ppt:"application/vnd.ms-powerpoint",pptx:"application/vnd.openxmlformats-officedocument.presentationml.presentation",rar:"application/vnd.openxmlformats-officedocument.presentationml.presentation",rtf:"application/rtf",sh:"application/x-sh",svg:"image/svg+xml",swf:"application/x-shockwave-flash",tar:"application/x-tar",tiff:"image/tiff",ts:"application/typescript",ttf:"font/ttf",vsd:"application/vnd.visio",wav:"audio/wav",weba:"audio/webm",webm:"video/webm",webp:"image/webp",woff:"font/woff",woff2:"font/woff2",xhtml:"application/xhtml+xml",xls:"application/vnd.ms-excel",xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",xml:"application/xml",xul:"application/vnd.mozilla.xul+xml",zip:"application/zip","3gp":"video/3gpp","3g2":"video/3gpp2","7z":"application/x-7z-compressed"},h=function(){function t(t){this.renderer=t,this.extensions=["bytes","KB","MB","GB"]}return t.prototype.isFileDragDropAvailable=function(){var t=this.renderer.createElement("div");return("draggable"in t||"ondragstart"in t&&"ondrop"in t)&&FormData&&!!FileReader},t.prototype.calculateSize=function(t,e){return void 0===e&&(e=0),isNaN(t)&&(t=0),t<1024?Math.round(100*t)/100+" "+this.extensions[e]:this.calculateSize(t/1024,e+1)},t.prototype.getFileType=function(e){return Object.keys(p).find(function(t){return p[t]===e.type})},t.decorators=[{type:o.Injectable}],t.ctorParameters=function(){return[{type:o.Renderer2}]},t}(),u=i.trigger("insertAnimation",[i.transition("* => *",[i.query(":leave",[i.stagger(30,[i.animate(".3s",i.style({opacity:0}))])],{optional:!0}),i.query(":enter",[i.style({opacity:0}),i.stagger(30,[i.animate(".3s",i.style({opacity:1}))])],{optional:!0})])]),d=i.trigger("zoomAnimation",[i.transition("static => zoomOut",[i.animate(250,i.style({transform:"translate(-50%, -50%) scale(2, 2)",opacity:0}))]),i.transition("static => zoomIn",[i.query(":self",[i.style({transform:"translate(-50%, -50%) scale(.2, .2)",opacity:0,top:"50%",left:"50%",margin:0}),i.stagger(50,[i.animate(250,i.style({transform:"translate(-50%, -50%) scale(1, 1)",opacity:1}))])])])]),f="dragover",g="ng-touched",v=function(){function t(t,e,i,n,o){var r=this;this.fileUploadService=t,this.hostElementRef=e,this.renderer=i,this.document=n,this.cdr=o,this.control=null,this.templateRef=null,this.listItem=null,this.templateContext={$implicit:this.fileUploadService.isFileDragDropAvailable(),isFileDragDropAvailable:this.fileUploadService.isFileDragDropAvailable()},this.zoomText="static",this.listVisible=!1,this.hooks=[],this.subscriptions=[],this.onChange=function(){},this.onTouch=function(){r.renderer.addClass(r.hostElementRef.nativeElement,g)}}return t.prototype.ngOnInit=function(){a(this.control)&&(this.control=new c),this.setEvents(),this.checkAndMarkAsDisabled(),this.connectToForm()},t.prototype.ngOnDestroy=function(){this.cdr.detach(),this.hooks.forEach(function(t){return t()}),this.hooks.length=0,this.subscriptions.forEach(function(t){return t.unsubscribe()}),this.subscriptions.length=0},Object.defineProperty(t.prototype,"hasFiles",{get:function(){return this.control.isListVisible&&0<this.control.size},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isInvalid",{get:function(){return!this.control.disabled&&this.control.invalid},enumerable:!0,configurable:!0}),t.prototype.setEvents=function(){var e=this;["drag","dragstart","dragend","dragover","dragenter","dragleave","drop"].forEach(function(t){e.hooks.push(e.renderer.listen(e.document,t,function(t){return e.preventDragEvents(t)}))}),["dragover","dragenter"].forEach(function(t){e.hooks.push(e.renderer.listen(e.hostElementRef.nativeElement,t,function(t){return e.onDragOver(t)}))}),["dragleave","dragend","drop"].forEach(function(t){e.hooks.push(e.renderer.listen(e.hostElementRef.nativeElement,t,function(t){return e.onDragLeave(t)}))}),this.subscriptions.push(this.control.statusChanges.subscribe(function(t){return e.checkAndMarkAsDisabled()})),this.subscriptions.push(this.control.valueChanges.subscribe(function(t){return e.renderView()})),this.subscriptions.push(this.control.listVisibilityChanges.subscribe(function(t){return e.toggleListVisibility()}))},t.prototype.checkAndMarkAsDisabled=function(){this.control.disabled?(this.renderer.addClass(this.hostElementRef.nativeElement,"disabled"),this.renderer.setProperty(this.input.nativeElement,"disabled",!0)):(this.renderer.removeClass(this.hostElementRef.nativeElement,"disabled"),this.renderer.setProperty(this.input.nativeElement,"disabled",!1))},t.prototype.preventDragEvents=function(t){t.preventDefault(),t.stopPropagation()},t.prototype.renderView=function(){this.listVisible||(this.zoomText=this.control.isListVisible&&0<this.control.size?"zoomOut":"static"),this.cdr.markForCheck()},t.prototype.showList=function(){"static"!==this.zoomText&&(this.listVisible=!0)},t.prototype.hideList=function(){this.listVisible=!1},t.prototype.toggleListVisibility=function(){this.listVisible=this.control.isListVisible&&0<this.control.size,this.listVisible&&(this.renderer.addClass(this.hostElementRef.nativeElement,"list-visible"),this.zoomText="static"),this.cdr.markForCheck()},t.prototype.onDragOver=function(t){this.renderer.addClass(this.hostElementRef.nativeElement,f)},t.prototype.onDragLeave=function(t){this.renderer.removeClass(this.hostElementRef.nativeElement,f)},t.prototype.onDrop=function(t){if(!this.control.disabled){var e=t.dataTransfer.files;this.control.addFiles(e),this.onTouch()}},t.prototype.onInputChange=function(t){var e=t.target;this.control.disabled||this.control.addFiles(e.files),this.clearInputEl(),this.onTouch()},t.prototype.clearInputEl=function(){this.input.nativeElement.value=null},t.prototype.connectToForm=function(){var e=this;this.subscriptions.push(this.control.valueChanges.subscribe(function(t){return e.onChange(t)}))},t.prototype.writeValue=function(t){null!=t&&this.control.setValue(t)},t.prototype.registerOnChange=function(t){this.onChange=t},t.prototype.registerOnTouched=function(t){this.onTouch=t},t.prototype.setDisabledState=function(t){this.control.disable(t)},t.prototype.zoomAnimationDone=function(t){this.control.isListVisible&&0<this.control.size?this.showList():this.hideList(),"static"===t.fromState&&"zoomOut"===t.toState?this.renderer.addClass(this.hostElementRef.nativeElement,"hide-text"):this.renderer.removeClass(this.hostElementRef.nativeElement,"hide-text"),"zoomIn"===t.toState&&(this.zoomText="static")},t.prototype.animationListFinished=function(t){"void"===t.toState&&(this.zoomText="zoomIn",this.renderer.removeClass(this.hostElementRef.nativeElement,"list-visible")),"void"===t.fromState&&(this.zoomText="static",this.renderer.addClass(this.hostElementRef.nativeElement,"list-visible"))},t.decorators=[{type:o.Component,args:[{selector:"file-upload",template:'<label class="upload-input" [@zoomAnimation]="zoomText" (@zoomAnimation.done)="zoomAnimationDone($event)">\r\n\r\n <ng-container *ngTemplateOutlet="templateRef ? templateRef : defaultTemplate; context: templateContext"></ng-container>\r\n\r\n <ng-template #defaultTemplate let-isFileDragDropAvailable="isFileDragDropAvailable">\r\n <div class="icon">\r\n <svg viewBox="0 0 96 96">\r\n <g>\r\n <path d="M62.8,68.1c0-0.6-0.2-1.1-0.6-1.5c-0.4-0.4-0.9-0.6-1.5-0.6s-1.1,0.2-1.5,0.6\r\n c-0.4,0.4-0.6,0.9-0.6,1.5c0,0.6,0.2,1.1,0.6,1.5c0.4,0.4,0.9,0.6,1.5,0.6s1.1-0.2,1.5-0.6S62.8,68.7,62.8,68.1z M71.3,68.1\r\n c0-0.6-0.2-1.1-0.6-1.5c-0.4-0.4-0.9-0.6-1.5-0.6c-0.6,0-1.1,0.2-1.5,0.6C67.2,67,67,67.5,67,68.1c0,0.6,0.2,1.1,0.6,1.5\r\n s0.9,0.6,1.5,0.6c0.6,0,1.1-0.2,1.5-0.6C71.1,69.2,71.3,68.7,71.3,68.1z M75.5,60.7v10.6c0,0.9-0.3,1.6-0.9,2.2\r\n c-0.6,0.6-1.4,0.9-2.2,0.9H23.7c-0.9,0-1.6-0.3-2.2-0.9c-0.6-0.6-0.9-1.4-0.9-2.2V60.7c0-0.9,0.3-1.6,0.9-2.2\r\n c0.6-0.6,1.4-0.9,2.2-0.9h14.1c0.5,1.2,1.2,2.2,2.3,3c1.1,0.8,2.3,1.2,3.7,1.2h8.5c1.3,0,2.6-0.4,3.7-1.2c1.1-0.8,1.9-1.8,2.3-3\r\n h14.1c0.9,0,1.6,0.3,2.2,0.9C75.2,59.1,75.5,59.8,75.5,60.7z M64.8,39.3c-0.4,0.9-1,1.3-2,1.3h-8.5v14.8c0,0.6-0.2,1.1-0.6,1.5\r\n c-0.4,0.4-0.9,0.6-1.5,0.6h-8.5c-0.6,0-1.1-0.2-1.5-0.6c-0.4-0.4-0.6-0.9-0.6-1.5V40.6h-8.5c-0.9,0-1.6-0.4-2-1.3\r\n c-0.4-0.9-0.2-1.6,0.5-2.3l14.8-14.8c0.4-0.4,0.9-0.6,1.5-0.6s1.1,0.2,1.5,0.6L64.3,37C65,37.7,65.1,38.4,64.8,39.3z"/>\r\n </g>\r\n </svg>\r\n </div>\r\n \r\n <div class="upload-text">\r\n <ng-container *ngIf="isFileDragDropAvailable; else isNotDragDropAvailable">\r\n <b>Drag and drop</b> files<br> or click here\r\n </ng-container>\r\n <ng-template #isNotDragDropAvailable>\r\n <b>Click here</b> to<br> choose a files\r\n </ng-template>\r\n </div>\r\n </ng-template>\r\n\r\n <input #inputRef type="file" class="files-input" multiple (change)="onInputChange($event)">\r\n</label>\r\n\r\n<div class="upload-list" *ngIf="(control.listVisibilityChanges | async) && control.size > 0 && listVisible" [@insertAnimation]="control.size" (@insertAnimation.done)="animationListFinished($event)">\r\n <ng-template ngFor let-file let-i="index" [ngForOf]="control.valueChanges | async">\r\n <ng-container *ngTemplateOutlet="listItem ? listItem : defaultItemTemplate; context: { $implicit: file, file: file, index: i, control: control }"></ng-container>\r\n </ng-template>\r\n \r\n <ng-template #defaultItemTemplate let-i="index" let-file="file" let-control="control">\r\n <file-upload-list-item [index]="i" [file]="file" [control]="control"></file-upload-list-item>\r\n </ng-template>\r\n</div>',providers:[h,{provide:r.NG_VALUE_ACCESSOR,useExisting:o.forwardRef(function(){return t}),multi:!0}],changeDetection:o.ChangeDetectionStrategy.OnPush,animations:[d,u],styles:[':host,:host>*{box-sizing:border-box}:host{overflow:hidden;display:block;background:#fafafa;padding:20px 66px 20px 20px;min-height:140px;outline:#92b0b3 dashed 1px;outline-offset:-10px;position:relative}:host(.dragover){outline-width:2px}:host(.disabled){opacity:.5;cursor:no-drop}.files-input{width:.1px;height:.1px;opacity:0;position:absolute;left:-100%;top:-100%;overflow:hidden}.icon{height:35px;width:35px;border:1px solid #eaeaea;border-radius:4px;float:left}.icon svg{fill:#909293}.upload-input:after{clear:both;content:"\\0A0";display:block;height:0;line-height:0;visibility:hidden;zoom:1}.upload-input{cursor:pointer;display:inline-block;color:#646464;position:absolute;top:50%;left:50%;margin:0;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}:host(.disabled) .upload-input{cursor:not-allowed}:host(.list-visible) .upload-input{top:20px;left:100%;margin-left:-20px;-webkit-transform:translate(-100%,0);transform:translate(-100%,0);text-align:center}.upload-text{overflow:hidden;width:auto;position:relative;padding-left:20px}:host(.hide-text) .upload-input{opacity:0}:host(.list-visible) .upload-text{display:none}:host(.dragover:not(.disabled)) .upload-input,:host(:not(.disabled)) .upload-input:hover{color:#80a9d2}:host(.dragover:not(.disabled)) .icon svg,:host(:not(.disabled)) .upload-input:hover svg{fill:#80a9d2}file-upload-list-item{padding:10px 0 0}file-upload-list-item:first-child{padding:0}']}]}],t.ctorParameters=function(){return[{type:h},{type:o.ElementRef},{type:o.Renderer2},{type:undefined,decorators:[{type:o.Inject,args:[n.DOCUMENT]}]},{type:o.ChangeDetectorRef}]},t.propDecorators={control:[{type:o.Input}],templateRef:[{type:o.ContentChild,args:["placeholder"]}],listItem:[{type:o.ContentChild,args:["item"]}],input:[{type:o.ViewChild,args:["inputRef"]}],hasFiles:[{type:o.HostBinding,args:["class.has-files"]}],isInvalid:[{type:o.HostBinding,args:["class.ng-invalid"]}],onDrop:[{type:o.HostListener,args:["drop",["$event"]]}]},t}(),m=function(){function t(t){this.fileUploadService=t}return t.prototype.removeFile=function(t){this.control.removeFile(t)},t.prototype.calculateSize=function(t){return this.fileUploadService.calculateSize(t)},t.decorators=[{type:o.Component,args:[{selector:"file-upload-list-item",template:'\n <file-upload-icon [file]="file"></file-upload-icon>\n <div class="file-info">\n <span class="file-name">{{ file.name }}</span> ({{ calculateSize( file.size ) }})\n </div>\n <div class="file-buttons">\n <span class="remove-btn" (click)="removeFile(file)">\n <svg viewBox="0 0 96 96">\n <g>\n <path d="M40.5,66.8V39.3c0-0.4-0.1-0.7-0.4-0.9S39.6,38,39.3,38h-2.5c-0.4,0-0.7,0.1-0.9,0.4\n s-0.4,0.5-0.4,0.9v27.5c0,0.4,0.1,0.7,0.4,0.9s0.5,0.4,0.9,0.4h2.5c0.4,0,0.7-0.1,0.9-0.4S40.5,67.1,40.5,66.8z M50.5,66.8V39.3\n c0-0.4-0.1-0.7-0.4-0.9S49.6,38,49.3,38h-2.5c-0.4,0-0.7,0.1-0.9,0.4s-0.4,0.5-0.4,0.9v27.5c0,0.4,0.1,0.7,0.4,0.9s0.5,0.4,0.9,0.4\n h2.5c0.4,0,0.7-0.1,0.9-0.4S50.5,67.1,50.5,66.8z M60.5,66.8V39.3c0-0.4-0.1-0.7-0.4-0.9S59.6,38,59.3,38h-2.5\n c-0.4,0-0.7,0.1-0.9,0.4s-0.4,0.5-0.4,0.9v27.5c0,0.4,0.1,0.7,0.4,0.9s0.5,0.4,0.9,0.4h2.5c0.4,0,0.7-0.1,0.9-0.4\n S60.5,67.1,60.5,66.8z M39.3,28h17.5l-1.9-4.6c-0.2-0.2-0.4-0.4-0.7-0.4H41.8c-0.3,0.1-0.5,0.2-0.7,0.4L39.3,28z M75.5,29.3v2.5\n c0,0.4-0.1,0.7-0.4,0.9S74.6,33,74.3,33h-3.8v37c0,2.2-0.6,4-1.8,5.6S66,78,64.3,78H31.8c-1.7,0-3.2-0.8-4.4-2.3s-1.8-3.4-1.8-5.5\n V33h-3.8c-0.4,0-0.7-0.1-0.9-0.4s-0.4-0.5-0.4-0.9v-2.5c0-0.4,0.1-0.7,0.4-0.9s0.5-0.4,0.9-0.4h12.1l2.7-6.5c0.4-1,1.1-1.8,2.1-2.5\n s2-1,3.1-1h12.5c1,0,2.1,0.3,3.1,1s1.7,1.5,2.1,2.5l2.7,6.5h12.1c0.4,0,0.7,0.1,0.9,0.4S75.5,28.9,75.5,29.3z"/>\n </g>\n </svg> Remove</span>\n </div>\n ',styles:[':host{display:block;font-size:14px;color:#646464}:host:after{clear:both;content:"\\0A0";display:block;height:0;line-height:0;visibility:hidden;zoom:1}file-upload-icon{float:left;width:30px;height:36px;margin:0 10px 0 0}.remove-btn{font-size:12px;cursor:pointer}.remove-btn svg{display:inline-block;vertical-align:-20%;height:18px;width:18px}']}]}],t.ctorParameters=function(){return[{type:h}]},t.propDecorators={index:[{type:o.Input}],file:[{type:o.Input}],control:[{type:o.Input}]},t}(),y=function(){function t(t){this.fileUploadService=t,this.fileType="unknown"}return t.prototype.ngOnInit=function(){this.fileType=this.fileUploadService.getFileType(this.file)},t.prototype.isIcon=function(t){switch(t){case"text":return"html"===this.fileType||"css"===this.fileType||"csv"===this.fileType||"js"===this.fileType||"pdf"===this.fileType||"ppt"===this.fileType||"xls"===this.fileType||"xlsx"===this.fileType||"xml"===this.fileType||"doc"===this.fileType||"docx"===this.fileType;case"audio":return"aac"===this.fileType||"midi"===this.fileType||"oga"===this.fileType||"wav"===this.fileType||"weba"===this.fileType;case"image":return"png"===this.fileType||"bmp"===this.fileType||"gif"===this.fileType||"jpg"===this.fileType||"svg"===this.fileType||"webp"===this.fileType||"ico"===this.fileType;case"video":return"avi"===this.fileType||"mpeg"===this.fileType||"ogv"===this.fileType||"webm"===this.fileType||"3gp"===this.fileType||"3g2"===this.fileType}},t.decorators=[{type:o.Component,args:[{selector:"file-upload-icon",template:'\r\n\r\n<ng-container [ngSwitch]="true">\r\n\r\n <svg *ngSwitchDefault viewBox="0 0 96 96">\r\n <g>\r\n <path d="M71.4,30.7c0.6,0.6,1.2,1.5,1.6,2.5c0.4,1.1,0.7,2.1,0.7,2.9v38.6c0,0.9-0.3,1.7-0.9,2.3\r\n S71.4,78,70.5,78h-45c-0.9,0-1.7-0.3-2.3-0.9c-0.6-0.6-0.9-1.4-0.9-2.3V21.2c0-0.9,0.3-1.7,0.9-2.3c0.6-0.6,1.4-0.9,2.3-0.9h30\r\n c0.9,0,1.9,0.2,2.9,0.7c1.1,0.4,1.9,1,2.5,1.6L71.4,30.7z M56.6,22.6v12.6h12.6c-0.2-0.6-0.5-1.1-0.7-1.4L57.9,23.3\r\n C57.7,23,57.2,22.8,56.6,22.6z M69.4,73.7V39.4H55.5c-0.9,0-1.7-0.3-2.3-0.9c-0.6-0.6-0.9-1.4-0.9-2.3V22.3H26.6v51.4H69.4z"/>\r\n </g>\r\n </svg>\r\n\r\n <svg *ngSwitchCase="isIcon(\'image\')" viewBox="0 0 96 96">\r\n <g>\r\n <path d="M71.4,30.7c0.6,0.6,1.2,1.5,1.6,2.5c0.4,1.1,0.7,2.1,0.7,2.9v38.6c0,0.9-0.3,1.7-0.9,2.3\r\n S71.4,78,70.5,78h-45c-0.9,0-1.7-0.3-2.3-0.9c-0.6-0.6-0.9-1.4-0.9-2.3V21.2c0-0.9,0.3-1.7,0.9-2.3c0.6-0.6,1.4-0.9,2.3-0.9h30\r\n c0.9,0,1.9,0.2,2.9,0.7c1.1,0.4,1.9,1,2.5,1.6L71.4,30.7z M56.6,22.6v12.6h12.6c-0.2-0.6-0.5-1.1-0.7-1.4L57.9,23.3\r\n C57.7,23,57.2,22.8,56.6,22.6z M69.4,73.7V39.4H55.5c-0.9,0-1.7-0.3-2.3-0.9c-0.6-0.6-0.9-1.4-0.9-2.3V22.3H26.6v51.4H69.4z\r\n M65.1,58.7v10.7H30.9V63l6.4-6.4l4.3,4.3L54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57.9,23.3\r\n C57.7,23,57.2,22.8,56.6,22.6z M69.4,73.7V39.4H55.5c-0.9,0-1.7-0.3-2.3-0.9c-0.6-0.6-0.9-1.4-0.9-2.3V22.3H26.6v51.4H69.4z\r\n M48,43.7c1.2,0,2.2,0.4,3,1.3c0.8,0.8,1.3,1.9,1.3,3v12.9c0,1.2-0.4,2.2-1.3,3c-0.8,0.8-1.9,1.3-3,1.3H35.1c-1.2,0-2.2-0.4-3-1.3\r\n c-0.8-0.8-1.3-1.9-1.3-3V48c0-1.2,0.4-2.2,1.3-3c0.8-0.8,1.9-1.3,3-1.3H48z M64.5,43.8c0.4,0.2,0.7,0.5,0.7,1v19.3\r\n c0,0.5-0.2,0.8-0.7,1c-0.2,0-0.3,0.1-0.4,0.1c-0.3,0-0.6-0.1-0.8-0.3l-8.9-8.9v-3l8.9-8.9c0.2-0.2,0.5-0.3,0.8-0.3\r\n C64.2,43.7,64.3,43.7,64.5,43.8z"/>\r\n </g>\r\n </svg>\r\n\r\n</ng-container>',styles:[":host{display:block;border:1px solid #eaeaea;border-radius:4px}:host svg{fill:#909293}"]}]}],t.ctorParameters=function(){return[{type:h}]},t.propDecorators={file:[{type:o.Input}]},t}(),b=function(){function t(t,e,i,n){var o=this;this.fileUploadService=t,this.hostElementRef=e,this.renderer=i,this.document=n,this.control=null,this.templateRef=null,this.hooks=[],this.subscriptions=[],this.onTouch=function(){o.renderer.addClass(o.hostElementRef.nativeElement,g)}}return t.prototype.ngOnInit=function(){a(this.control)&&(this.control=new c)},t.prototype.ngAfterViewInit=function(){this.fileUploadService.isFileDragDropAvailable()&&(this.setEvents(),this.checkAndMarkAsDisabled())},t.prototype.ngOnDestroy=function(){this.hooks.forEach(function(t){return t()}),this.hooks.length=0,this.subscriptions.forEach(function(t){return t.unsubscribe()}),this.subscriptions.length=0},Object.defineProperty(t.prototype,"hasFiles",{get:function(){return this.control.isListVisible&&0<this.control.size},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isInvalid",{get:function(){return!this.control.disabled&&this.control.invalid},enumerable:!0,configurable:!0}),t.prototype.setEvents=function(){var i=this;["drag","dragstart","dragend","dragover","dragenter","dragleave","drop"].forEach(function(t){i.hooks.push(i.renderer.listen(i.document,t,function(t){return i.preventDragEvents(t)}))}),["dragover","dragenter"].forEach(function(t){i.hooks.push(i.renderer.listen(i.hostElementRef.nativeElement,t,function(t){return i.onDragOver(t)}))}),["dragleave","dragend","drop"].forEach(function(e){i.hooks.push(i.renderer.listen(i.hostElementRef.nativeElement,e,function(t){(i.control.disabled&&"dragleave"===e||"dragleave"!==e)&&i.onDragLeave(t)}))}),["dragleave"].forEach(function(t){i.hooks.push(i.renderer.listen(i.overlay.nativeElement,t,function(t){return i.onDragLeave(t)}))}),this.subscriptions.push(this.control.statusChanges.subscribe(function(t){return i.checkAndMarkAsDisabled()}))},t.prototype.checkAndMarkAsDisabled=function(){this.control.disabled?this.renderer.addClass(this.hostElementRef.nativeElement,"disabled"):this.renderer.removeClass(this.hostElementRef.nativeElement,"disabled")},t.prototype.preventDragEvents=function(t){t.preventDefault(),t.stopPropagation()},t.prototype.onDragOver=function(t){this.renderer.addClass(this.hostElementRef.nativeElement,f)},t.prototype.onDragLeave=function(t){this.renderer.removeClass(this.hostElementRef.nativeElement,f)},t.prototype.onDrop=function(t){if(!this.control.disabled){var e=t.dataTransfer.files;this.control.addFiles(e),this.onTouch()}},t.decorators=[{type:o.Component,args:[{selector:"[file-drop-zone]",template:'\n <ng-content></ng-content>\n <div #overlay class="overlay" *ngIf="fileUploadService.isFileDragDropAvailable()">\n\n <div class="upload-input">\n <ng-container *ngTemplateOutlet="templateRef ? templateRef : defaultTemplate"></ng-container>\n\n <ng-template #defaultTemplate>\n <div class="icon">\n <svg viewBox="0 0 96 96">\n <g>\n <path d="M62.8,68.1c0-0.6-0.2-1.1-0.6-1.5c-0.4-0.4-0.9-0.6-1.5-0.6s-1.1,0.2-1.5,0.6\n c-0.4,0.4-0.6,0.9-0.6,1.5c0,0.6,0.2,1.1,0.6,1.5c0.4,0.4,0.9,0.6,1.5,0.6s1.1-0.2,1.5-0.6S62.8,68.7,62.8,68.1z M71.3,68.1\n c0-0.6-0.2-1.1-0.6-1.5c-0.4-0.4-0.9-0.6-1.5-0.6c-0.6,0-1.1,0.2-1.5,0.6C67.2,67,67,67.5,67,68.1c0,0.6,0.2,1.1,0.6,1.5\n s0.9,0.6,1.5,0.6c0.6,0,1.1-0.2,1.5-0.6C71.1,69.2,71.3,68.7,71.3,68.1z M75.5,60.7v10.6c0,0.9-0.3,1.6-0.9,2.2\n c-0.6,0.6-1.4,0.9-2.2,0.9H23.7c-0.9,0-1.6-0.3-2.2-0.9c-0.6-0.6-0.9-1.4-0.9-2.2V60.7c0-0.9,0.3-1.6,0.9-2.2\n c0.6-0.6,1.4-0.9,2.2-0.9h14.1c0.5,1.2,1.2,2.2,2.3,3c1.1,0.8,2.3,1.2,3.7,1.2h8.5c1.3,0,2.6-0.4,3.7-1.2c1.1-0.8,1.9-1.8,2.3-3\n h14.1c0.9,0,1.6,0.3,2.2,0.9C75.2,59.1,75.5,59.8,75.5,60.7z M64.8,39.3c-0.4,0.9-1,1.3-2,1.3h-8.5v14.8c0,0.6-0.2,1.1-0.6,1.5\n c-0.4,0.4-0.9,0.6-1.5,0.6h-8.5c-0.6,0-1.1-0.2-1.5-0.6c-0.4-0.4-0.6-0.9-0.6-1.5V40.6h-8.5c-0.9,0-1.6-0.4-2-1.3\n c-0.4-0.9-0.2-1.6,0.5-2.3l14.8-14.8c0.4-0.4,0.9-0.6,1.5-0.6s1.1,0.2,1.5,0.6L64.3,37C65,37.7,65.1,38.4,64.8,39.3z"/>\n </g>\n </svg>\n </div>\n \n <div class="upload-text">\n <b>Drop</b> it here\n </div>\n </ng-template>\n </div>\n </div>\n ',providers:[h],styles:[":host{position:relative;display:block}:host .overlay{display:none;background:rgba(255,255,255,.8);outline:#92b0b3 dashed 2px;outline-offset:-10px;position:absolute;top:0;left:0;right:0;bottom:0}:host(.dragover:not(.disabled)) .overlay{display:block}.icon{height:35px;width:35px;border:1px solid #eaeaea;border-radius:4px;margin:0 auto 10px}:host /deep/ .icon svg{fill:#80a9d2}.upload-input{pointer-events:none;cursor:pointer;display:inline-block;color:#80a9d2;position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);transition:.15s ease-in-out}"]}]}],t.ctorParameters=function(){return[{type:h},{type:o.ElementRef},{type:o.Renderer2},{type:undefined,decorators:[{type:o.Inject,args:[n.DOCUMENT]}]}]},t.propDecorators={control:[{type:o.Input}],overlay:[{type:o.ViewChild,args:["overlay"]}],templateRef:[{type:o.ContentChild,args:["placeholder"]}],hasFiles:[{type:o.HostBinding,args:["class.has-files"]}],isInvalid:[{type:o.HostBinding,args:["class.ng-invalid"]}],onDrop:[{type:o.HostListener,args:["drop",["$event"]]}]},t}(),x=function(t,e,i){return void 0===i&&(i=0),!a(e)&&t.size>e||t.size<i?{maxSize:e,minSize:i,actual:t.size,file:t}:null},z=/(^[.]\w*)$/m,C=function(t,e){var i,n,o="."+t.name.split(".").pop();try{for(var r=function l(t){var e="function"==typeof Symbol&&t[Symbol.iterator],i=0;return e?e.call(t):{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}}}(e),s=r.next();!s.done;s=r.next()){var a=s.value;if(z.test(a)?a===o:new RegExp(a).test(t.type))return null}}catch(c){i={error:c}}finally{try{s&&!s.done&&(n=r["return"])&&n.call(r)}finally{if(i)throw i.error}}return{allowedTypes:e,actual:t.type,file:t}},D=function(t){if(!Array.isArray(t))throw Error("FormControl.setValue was provided with wrong argument type, "+t+" was provided instead Array<File>")},E=function(){function t(){}return t.fileSize=function(n){return function(t){var e=t.value;if(a(e))return null;D(e);var i=e.map(function(t){return x(t,n)}).filter(function(t){return t});return 0<i.length?{fileSize:i}:null}},t.sizeRange=function(t){var n=t.minSize,o=t.maxSize;return function(t){var e=t.value;if(a(e))return null;D(e);var i=e.map(function(t){return x(t,o,n)}).filter(function(t){return t});return 0<i.length?{sizeRange:i}:null}},t.filesLimit=function(i){return function(t){var e=t.value;return a(e)?null:(D(e),e.length>i?{filesLimit:{max:i,actual:e.length}}:null)}},t.accept=function(n){return function(t){var e=t.value;if(a(e))return null;D(e);var i=e.map(function(t){return C(t,n)}).filter(function(t){return t});return 0<i.length?{fileTypes:i}:null}},t}(),V=function(){function t(){}return t.prototype.ngOnChanges=function(t){("filesize"in t||"maxsize"in t||"minsize"in t)&&(this._createValidator(),this.onChange&&this.onChange())},t.prototype.validate=function(t){return this.validator(t)},t.prototype.registerOnValidatorChange=function(t){this.onChange=t},t.prototype._createValidator=function(){var t=null;a(this.maxsize)?a(this.filesize)||(t="string"==typeof this.filesize?parseInt(this.filesize,10):this.filesize):t="string"==typeof this.maxsize?parseInt(this.maxsize,10):this.maxsize;var e="string"==typeof this.minsize?parseInt(this.minsize,10):this.minsize;this.validator=E.sizeRange({maxSize:t,minSize:e})},t.decorators=[{type:o.Directive,args:[{selector:"[filesize][formControlName],[filesize][formControl],[filesize][ngModel],\n [minsize][formControlName],[minsize][formControl],[minsize][ngModel],\n [maxsize][formControlName],[maxsize][formControl],[maxsize][ngModel]",providers:[{provide:r.NG_VALIDATORS,useExisting:o.forwardRef(function(){return t}),multi:!0}],host:{"[attr.filesize]":"filesize ? filesize : null","[attr.minsize]":"minsize ? minsize : null","[attr.maxsize]":"maxsize ? maxsize : null"}}]}],t.propDecorators={filesize:[{type:o.Input}],minsize:[{type:o.Input}],maxsize:[{type:o.Input}]},t}(),w=function(){function t(){}return t.prototype.ngOnChanges=function(t){"fileslimit"in t&&(this._createValidator(),this.onChange&&this.onChange())},t.prototype.validate=function(t){return null!=this.fileslimit?this.validator(t):null},t.prototype.registerOnValidatorChange=function(t){this.onChange=t},t.prototype._createValidator=function(){this.validator=E.filesLimit("string"==typeof this.fileslimit?parseInt(this.fileslimit,10):this.fileslimit)},t.decorators=[{type:o.Directive,args:[{selector:"[fileslimit][formControlName],[fileslimit][formControl],[fileslimit][ngModel]",providers:[{provide:r.NG_VALIDATORS,useExisting:o.forwardRef(function(){return t}),multi:!0}],host:{"[attr.fileslimit]":"fileslimit ? fileslimit : null"}}]}],t.propDecorators={fileslimit:[{type:o.Input}]},t}(),A=function(){function t(){}return t.prototype.ngOnChanges=function(t){"accept"in t&&(this._createValidator(),this.onChange&&this.onChange())},t.prototype.validate=function(t){return null!=this.accept?this.validator(t):null},t.prototype.registerOnValidatorChange=function(t){this.onChange=t},t.prototype._createValidator=function(){this.validator=E.accept(this.accept.split(","))},t.decorators=[{type:o.Directive,args:[{selector:"[accept][formControlName],[accept][formControl],[accept][ngModel]",providers:[{provide:r.NG_VALIDATORS,useExisting:o.forwardRef(function(){return w}),multi:!0}],host:{"[attr.accept]":"accept ? accept : null"}}]}],t.propDecorators={accept:[{type:o.Input}]},t}(),I=function(){function t(t){this.injector=t}return t.prototype.ngDoBootstrap=function(){},t.decorators=[{type:o.NgModule,args:[{imports:[n.CommonModule,r.ReactiveFormsModule,r.FormsModule],declarations:[v,m,y,b,V,w,A],exports:[v,b,V,w,A],entryComponents:[v]}]}],t.ctorParameters=function(){return[{type:o.Injector}]},t}();t.FileUploadControl=c,t.FileUploadValidators=E,t.FileUploadTypes=p,t.FileUploadModule=I,t.ɵd=u,t.ɵc=d,t.ɵg=b,t.ɵf=y,t.ɵe=m,t.ɵa=v,t.ɵh=V,t.ɵj=A,t.ɵi=w,t.ɵb=h,Object.defineProperty(t,"__esModule",{value:!0})}); | ||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("rxjs"),require("@angular/animations"),require("@angular/common"),require("@angular/core"),require("@angular/forms")):"function"==typeof define&&define.amd?define("@iplab/ngx-file-upload",["exports","rxjs","@angular/animations","@angular/common","@angular/core","@angular/forms"],e):e((t.iplab=t.iplab||{},t.iplab["ngx-file-upload"]={}),t.rxjs,t.ng.animations,t.ng.common,t.ng.core,t.ng.forms)}(this,function(t,e,i,n,o,r){"use strict";function s(t,e){var i="function"==typeof Symbol&&t[Symbol.iterator];if(!i)return t;var n,o,r=i.call(t),s=[];try{for(;(void 0===e||0<e--)&&!(n=r.next()).done;)s.push(n.value)}catch(a){o={error:a}}finally{try{n&&!n.done&&(i=r["return"])&&i.call(r)}finally{if(o)throw o.error}}return s}function a(t){return null==t||0===t.length}var l={INVALID:0,VALID:1,DISABLED:2};l[l.INVALID]="INVALID",l[l.VALID]="VALID",l[l.DISABLED]="DISABLED";var c=function(){function t(t){this.files=new Set,this.listVisible=!0,this.status=l.VALID,this.errors=[],this.validators=[],this.statusChanged=new e.Subject,this.statusChanges=this.statusChanged.asObservable(),this.valueChanges=new e.BehaviorSubject([]),this.listVisibilityChanges=new e.BehaviorSubject(this.listVisible),this.defineValidators(t)}return t.prototype.setValidators=function(t){return this.defineValidators(t),this.validate(),this},t.prototype.defineValidators=function(t){a(t)||(this.validators=Array.isArray(t)?function i(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(s(arguments[e]));return t}(t):[t])},t.prototype.addFile=function(t){return this.files.add(t),this.validate(),this.valueChanges.next(Array.from(this.files.values())),this},t.prototype.removeFile=function(t){return this.files["delete"](t),this.validate(),this.valueChanges.next(Array.from(this.files.values())),this},t.prototype.addFiles=function(t){return this.addMultipleFiles(Array.from(t)),this},t.prototype.addMultipleFiles=function(t){var e=this;t.forEach(function(t){return e.files.add(t)}),this.validate(),this.valueChanges.next(Array.from(this.files.values()))},Object.defineProperty(t.prototype,"valid",{get:function(){return 0===this.errors.length&&this.status!==l.DISABLED},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"invalid",{get:function(){return 0<this.errors.length||this.status===l.DISABLED},enumerable:!0,configurable:!0}),t.prototype.getError=function(){return this.errors},Object.defineProperty(t.prototype,"size",{get:function(){return this.files.size},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return Array.from(this.files.values())},enumerable:!0,configurable:!0}),t.prototype.setValue=function(t){if(this.files.clear(),!(t instanceof Array))throw Error("FormControl.setValue was provided with wrong argument type, "+t+" was provided instead Array<File>");return this.addMultipleFiles(t),this},t.prototype.clear=function(){return this.files.clear(),this.validate(),this.valueChanges.next(Array.from(this.files.values())),this},Object.defineProperty(t.prototype,"isListVisible",{get:function(){return this.listVisible},enumerable:!0,configurable:!0}),t.prototype.setListVisibility=function(t){return void 0===t&&(t=!0),this.listVisible=t,this.listVisibilityChanges.next(this.listVisible),this},Object.defineProperty(t.prototype,"disabled",{get:function(){return this.status===l.DISABLED},enumerable:!0,configurable:!0}),t.prototype.enable=function(t){return void 0===t&&(t=!0),this.status=t?l.VALID:l.DISABLED,this.validate(),this.statusChanged.next(this.status),this},t.prototype.disable=function(t){return void 0===t&&(t=!0),this.status=t?l.DISABLED:l.VALID,this.validate(),this.statusChanged.next(this.status),this},t.prototype.validate=function(){var e=this;if(this.status!==l.DISABLED){var t=this.valid;this.errors=this.validators.map(function(t){return t(e)}).filter(function(t){return t}),t!==this.valid&&this.statusChanged.next(this.valid?l.VALID:l.INVALID)}else this.errors.length=0},t}(),p={aac:"audio/aac",abw:"application/x-abiword",arc:"application/octet-stream",avi:"video/x-msvideo",azw:"application/vnd.amazon.ebook",bin:"application/octet-stream",bmp:"image/bmp",bz:"application/x-bzip",bz2:"application/x-bzip2",csh:"application/x-csh",css:"text/css",csv:"text/csv",doc:"application/msword",docx:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",eot:"application/vnd.ms-fontobject",epub:"application/epub+zip",es:"application/ecmascript",gif:"image/gif",html:"text/html",ico:"image/x-icon",ics:"text/calendar",jar:"application/java-archive",jpg:"image/jpeg",js:"application/javascript",json:"application/json",midi:"audio/midi",mpeg:"video/mpeg",mpkg:"application/vnd.apple.installer+xml",odp:"application/vnd.oasis.opendocument.presentation",ods:"application/vnd.oasis.opendocument.spreadsheet",odt:"application/vnd.oasis.opendocument.text",oga:"audio/ogg",ogv:"video/ogg",ogx:"application/ogg",otf:"font/otf",png:"image/png",pdf:"application/pdf",ppt:"application/vnd.ms-powerpoint",pptx:"application/vnd.openxmlformats-officedocument.presentationml.presentation",rar:"application/vnd.openxmlformats-officedocument.presentationml.presentation",rtf:"application/rtf",sh:"application/x-sh",svg:"image/svg+xml",swf:"application/x-shockwave-flash",tar:"application/x-tar",tiff:"image/tiff",ts:"application/typescript",ttf:"font/ttf",vsd:"application/vnd.visio",wav:"audio/wav",weba:"audio/webm",webm:"video/webm",webp:"image/webp",woff:"font/woff",woff2:"font/woff2",xhtml:"application/xhtml+xml",xls:"application/vnd.ms-excel",xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",xml:"application/xml",xul:"application/vnd.mozilla.xul+xml",zip:"application/zip","3gp":"video/3gpp","3g2":"video/3gpp2","7z":"application/x-7z-compressed"},h=function(){function t(t){this.renderer=t,this.extensions=["bytes","KB","MB","GB"]}return t.prototype.isFileDragDropAvailable=function(){var t=this.renderer.createElement("div");return"draggable"in t||"ondragstart"in t&&"ondrop"in t},t.prototype.calculateSize=function(t,e){return void 0===e&&(e=0),isNaN(t)&&(t=0),t<1024?Math.round(100*t)/100+" "+this.extensions[e]:this.calculateSize(t/1024,e+1)},t.prototype.getFileType=function(e){return Object.keys(p).find(function(t){return p[t]===e.type})},t.decorators=[{type:o.Injectable}],t.ctorParameters=function(){return[{type:o.Renderer2}]},t}(),u=i.trigger("insertAnimation",[i.transition("* => *",[i.query(":leave",[i.stagger(30,[i.animate(".3s",i.style({opacity:0}))])],{optional:!0}),i.query(":enter",[i.style({opacity:0}),i.stagger(30,[i.animate(".3s",i.style({opacity:1}))])],{optional:!0})])]),d=i.trigger("zoomAnimation",[i.transition("static => zoomOut",[i.animate(250,i.style({transform:"translate(-50%, -50%) scale(2, 2)",opacity:0}))]),i.transition("static => zoomIn",[i.query(":self",[i.style({transform:"translate(-50%, -50%) scale(.2, .2)",opacity:0,top:"50%",left:"50%",margin:0}),i.stagger(50,[i.animate(250,i.style({transform:"translate(-50%, -50%) scale(1, 1)",opacity:1}))])])])]),f="dragover",g="ng-touched",v=function(){function t(t,e,i,n,o){var r=this;this.fileUploadService=t,this.hostElementRef=e,this.renderer=i,this.document=n,this.cdr=o,this.control=null,this.templateRef=null,this.listItem=null,this.templateContext={$implicit:this.fileUploadService.isFileDragDropAvailable(),isFileDragDropAvailable:this.fileUploadService.isFileDragDropAvailable()},this.zoomText="static",this.listVisible=!1,this.hooks=[],this.subscriptions=[],this.onChange=function(){},this.onTouch=function(){r.renderer.addClass(r.hostElementRef.nativeElement,g)}}return t.prototype.ngOnInit=function(){a(this.control)&&(this.control=new c),this.setEvents(),this.checkAndMarkAsDisabled(),this.connectToForm()},t.prototype.ngOnDestroy=function(){this.cdr.detach(),this.hooks.forEach(function(t){return t()}),this.hooks.length=0,this.subscriptions.forEach(function(t){return t.unsubscribe()}),this.subscriptions.length=0},Object.defineProperty(t.prototype,"hasFiles",{get:function(){return this.control.isListVisible&&0<this.control.size},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isInvalid",{get:function(){return!this.control.disabled&&this.control.invalid},enumerable:!0,configurable:!0}),t.prototype.setEvents=function(){var e=this;["drag","dragstart","dragend","dragover","dragenter","dragleave","drop"].forEach(function(t){e.hooks.push(e.renderer.listen(e.document,t,function(t){return e.preventDragEvents(t)}))}),["dragover","dragenter"].forEach(function(t){e.hooks.push(e.renderer.listen(e.hostElementRef.nativeElement,t,function(t){return e.onDragOver(t)}))}),["dragleave","dragend","drop"].forEach(function(t){e.hooks.push(e.renderer.listen(e.hostElementRef.nativeElement,t,function(t){return e.onDragLeave(t)}))}),this.subscriptions.push(this.control.statusChanges.subscribe(function(t){return e.checkAndMarkAsDisabled()})),this.subscriptions.push(this.control.valueChanges.subscribe(function(t){return e.renderView()})),this.subscriptions.push(this.control.listVisibilityChanges.subscribe(function(t){return e.toggleListVisibility()}))},t.prototype.checkAndMarkAsDisabled=function(){this.control.disabled?(this.renderer.addClass(this.hostElementRef.nativeElement,"disabled"),this.renderer.setProperty(this.input.nativeElement,"disabled",!0)):(this.renderer.removeClass(this.hostElementRef.nativeElement,"disabled"),this.renderer.setProperty(this.input.nativeElement,"disabled",!1))},t.prototype.preventDragEvents=function(t){t.preventDefault(),t.stopPropagation()},t.prototype.renderView=function(){this.listVisible||(this.zoomText=this.control.isListVisible&&0<this.control.size?"zoomOut":"static"),this.cdr.markForCheck()},t.prototype.showList=function(){"static"!==this.zoomText&&(this.listVisible=!0)},t.prototype.hideList=function(){this.listVisible=!1},t.prototype.toggleListVisibility=function(){this.listVisible=this.control.isListVisible&&0<this.control.size,this.listVisible&&(this.renderer.addClass(this.hostElementRef.nativeElement,"list-visible"),this.zoomText="static"),this.cdr.markForCheck()},t.prototype.onDragOver=function(t){this.renderer.addClass(this.hostElementRef.nativeElement,f)},t.prototype.onDragLeave=function(t){this.renderer.removeClass(this.hostElementRef.nativeElement,f)},t.prototype.onDrop=function(t){if(!this.control.disabled){var e=t.dataTransfer.files;this.control.addFiles(e),this.onTouch()}},t.prototype.onInputChange=function(t){var e=t.target;this.control.disabled||this.control.addFiles(e.files),this.clearInputEl(),this.onTouch()},t.prototype.clearInputEl=function(){this.input.nativeElement.value=null},t.prototype.connectToForm=function(){var e=this;this.subscriptions.push(this.control.valueChanges.subscribe(function(t){return e.onChange(t)}))},t.prototype.writeValue=function(t){null!=t&&this.control.setValue(t)},t.prototype.registerOnChange=function(t){this.onChange=t},t.prototype.registerOnTouched=function(t){this.onTouch=t},t.prototype.setDisabledState=function(t){this.control.disable(t)},t.prototype.zoomAnimationDone=function(t){this.control.isListVisible&&0<this.control.size?this.showList():this.hideList(),"static"===t.fromState&&"zoomOut"===t.toState?this.renderer.addClass(this.hostElementRef.nativeElement,"hide-text"):this.renderer.removeClass(this.hostElementRef.nativeElement,"hide-text"),"zoomIn"===t.toState&&(this.zoomText="static")},t.prototype.animationListFinished=function(t){"void"===t.toState&&(this.zoomText="zoomIn",this.renderer.removeClass(this.hostElementRef.nativeElement,"list-visible")),"void"===t.fromState&&(this.zoomText="static",this.renderer.addClass(this.hostElementRef.nativeElement,"list-visible"))},t.decorators=[{type:o.Component,args:[{selector:"file-upload",template:'<label class="upload-input" [@zoomAnimation]="zoomText" (@zoomAnimation.done)="zoomAnimationDone($event)">\r\n\r\n <ng-container *ngTemplateOutlet="templateRef ? templateRef : defaultTemplate; context: templateContext"></ng-container>\r\n\r\n <ng-template #defaultTemplate let-isFileDragDropAvailable="isFileDragDropAvailable">\r\n <div class="icon">\r\n <svg viewBox="0 0 96 96">\r\n <g>\r\n <path d="M62.8,68.1c0-0.6-0.2-1.1-0.6-1.5c-0.4-0.4-0.9-0.6-1.5-0.6s-1.1,0.2-1.5,0.6\r\n c-0.4,0.4-0.6,0.9-0.6,1.5c0,0.6,0.2,1.1,0.6,1.5c0.4,0.4,0.9,0.6,1.5,0.6s1.1-0.2,1.5-0.6S62.8,68.7,62.8,68.1z M71.3,68.1\r\n c0-0.6-0.2-1.1-0.6-1.5c-0.4-0.4-0.9-0.6-1.5-0.6c-0.6,0-1.1,0.2-1.5,0.6C67.2,67,67,67.5,67,68.1c0,0.6,0.2,1.1,0.6,1.5\r\n s0.9,0.6,1.5,0.6c0.6,0,1.1-0.2,1.5-0.6C71.1,69.2,71.3,68.7,71.3,68.1z M75.5,60.7v10.6c0,0.9-0.3,1.6-0.9,2.2\r\n c-0.6,0.6-1.4,0.9-2.2,0.9H23.7c-0.9,0-1.6-0.3-2.2-0.9c-0.6-0.6-0.9-1.4-0.9-2.2V60.7c0-0.9,0.3-1.6,0.9-2.2\r\n c0.6-0.6,1.4-0.9,2.2-0.9h14.1c0.5,1.2,1.2,2.2,2.3,3c1.1,0.8,2.3,1.2,3.7,1.2h8.5c1.3,0,2.6-0.4,3.7-1.2c1.1-0.8,1.9-1.8,2.3-3\r\n h14.1c0.9,0,1.6,0.3,2.2,0.9C75.2,59.1,75.5,59.8,75.5,60.7z M64.8,39.3c-0.4,0.9-1,1.3-2,1.3h-8.5v14.8c0,0.6-0.2,1.1-0.6,1.5\r\n c-0.4,0.4-0.9,0.6-1.5,0.6h-8.5c-0.6,0-1.1-0.2-1.5-0.6c-0.4-0.4-0.6-0.9-0.6-1.5V40.6h-8.5c-0.9,0-1.6-0.4-2-1.3\r\n c-0.4-0.9-0.2-1.6,0.5-2.3l14.8-14.8c0.4-0.4,0.9-0.6,1.5-0.6s1.1,0.2,1.5,0.6L64.3,37C65,37.7,65.1,38.4,64.8,39.3z"/>\r\n </g>\r\n </svg>\r\n </div>\r\n \r\n <div class="upload-text">\r\n <ng-container *ngIf="isFileDragDropAvailable; else isNotDragDropAvailable">\r\n <b>Drag and drop</b> files<br> or click here\r\n </ng-container>\r\n <ng-template #isNotDragDropAvailable>\r\n <b>Click here</b> to<br> choose a files\r\n </ng-template>\r\n </div>\r\n </ng-template>\r\n\r\n <input #inputRef type="file" class="files-input" multiple (change)="onInputChange($event)">\r\n</label>\r\n\r\n<div class="upload-list" *ngIf="(control.listVisibilityChanges | async) && control.size > 0 && listVisible" [@insertAnimation]="control.size" (@insertAnimation.done)="animationListFinished($event)">\r\n <ng-template ngFor let-file let-i="index" [ngForOf]="control.valueChanges | async">\r\n <ng-container *ngTemplateOutlet="listItem ? listItem : defaultItemTemplate; context: { $implicit: file, file: file, index: i, control: control }"></ng-container>\r\n </ng-template>\r\n \r\n <ng-template #defaultItemTemplate let-i="index" let-file="file" let-control="control">\r\n <file-upload-list-item [index]="i" [file]="file" [control]="control"></file-upload-list-item>\r\n </ng-template>\r\n</div>',providers:[h,{provide:r.NG_VALUE_ACCESSOR,useExisting:o.forwardRef(function(){return t}),multi:!0}],changeDetection:o.ChangeDetectionStrategy.OnPush,animations:[d,u],styles:[':host,:host>*{box-sizing:border-box}:host{overflow:hidden;display:block;background:#fafafa;padding:20px 66px 20px 20px;min-height:140px;outline:#92b0b3 dashed 1px;outline-offset:-10px;position:relative}:host(.dragover){outline-width:2px}:host(.disabled){opacity:.5;cursor:no-drop}.files-input{width:.1px;height:.1px;opacity:0;position:absolute;left:-100%;top:-100%;overflow:hidden}.icon{height:35px;width:35px;border:1px solid #eaeaea;border-radius:4px;float:left}.icon svg{fill:#909293}.upload-input:after{clear:both;content:"\\0A0";display:block;height:0;line-height:0;visibility:hidden;zoom:1}.upload-input{cursor:pointer;display:inline-block;color:#646464;position:absolute;top:50%;left:50%;margin:0;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}:host(.disabled) .upload-input{cursor:not-allowed}:host(.list-visible) .upload-input{top:20px;left:100%;margin-left:-20px;-webkit-transform:translate(-100%,0);transform:translate(-100%,0);text-align:center}.upload-text{overflow:hidden;width:auto;position:relative;padding-left:20px}:host(.hide-text) .upload-input{opacity:0}:host(.list-visible) .upload-text{display:none}:host(.dragover:not(.disabled)) .upload-input,:host(:not(.disabled)) .upload-input:hover{color:#80a9d2}:host(.dragover:not(.disabled)) .icon svg,:host(:not(.disabled)) .upload-input:hover svg{fill:#80a9d2}file-upload-list-item{padding:10px 0 0}file-upload-list-item:first-child{padding:0}']}]}],t.ctorParameters=function(){return[{type:h},{type:o.ElementRef},{type:o.Renderer2},{type:undefined,decorators:[{type:o.Inject,args:[n.DOCUMENT]}]},{type:o.ChangeDetectorRef}]},t.propDecorators={control:[{type:o.Input}],templateRef:[{type:o.ContentChild,args:["placeholder"]}],listItem:[{type:o.ContentChild,args:["item"]}],input:[{type:o.ViewChild,args:["inputRef"]}],hasFiles:[{type:o.HostBinding,args:["class.has-files"]}],isInvalid:[{type:o.HostBinding,args:["class.ng-invalid"]}],onDrop:[{type:o.HostListener,args:["drop",["$event"]]}]},t}(),m=function(){function t(t){this.fileUploadService=t}return t.prototype.removeFile=function(t){this.control.removeFile(t)},t.prototype.calculateSize=function(t){return this.fileUploadService.calculateSize(t)},t.decorators=[{type:o.Component,args:[{selector:"file-upload-list-item",template:'\n <file-upload-icon [file]="file"></file-upload-icon>\n <div class="file-info">\n <span class="file-name">{{ file.name }}</span> ({{ calculateSize( file.size ) }})\n </div>\n <div class="file-buttons">\n <span class="remove-btn" (click)="removeFile(file)">\n <svg viewBox="0 0 96 96">\n <g>\n <path d="M40.5,66.8V39.3c0-0.4-0.1-0.7-0.4-0.9S39.6,38,39.3,38h-2.5c-0.4,0-0.7,0.1-0.9,0.4\n s-0.4,0.5-0.4,0.9v27.5c0,0.4,0.1,0.7,0.4,0.9s0.5,0.4,0.9,0.4h2.5c0.4,0,0.7-0.1,0.9-0.4S40.5,67.1,40.5,66.8z M50.5,66.8V39.3\n c0-0.4-0.1-0.7-0.4-0.9S49.6,38,49.3,38h-2.5c-0.4,0-0.7,0.1-0.9,0.4s-0.4,0.5-0.4,0.9v27.5c0,0.4,0.1,0.7,0.4,0.9s0.5,0.4,0.9,0.4\n h2.5c0.4,0,0.7-0.1,0.9-0.4S50.5,67.1,50.5,66.8z M60.5,66.8V39.3c0-0.4-0.1-0.7-0.4-0.9S59.6,38,59.3,38h-2.5\n c-0.4,0-0.7,0.1-0.9,0.4s-0.4,0.5-0.4,0.9v27.5c0,0.4,0.1,0.7,0.4,0.9s0.5,0.4,0.9,0.4h2.5c0.4,0,0.7-0.1,0.9-0.4\n S60.5,67.1,60.5,66.8z M39.3,28h17.5l-1.9-4.6c-0.2-0.2-0.4-0.4-0.7-0.4H41.8c-0.3,0.1-0.5,0.2-0.7,0.4L39.3,28z M75.5,29.3v2.5\n c0,0.4-0.1,0.7-0.4,0.9S74.6,33,74.3,33h-3.8v37c0,2.2-0.6,4-1.8,5.6S66,78,64.3,78H31.8c-1.7,0-3.2-0.8-4.4-2.3s-1.8-3.4-1.8-5.5\n V33h-3.8c-0.4,0-0.7-0.1-0.9-0.4s-0.4-0.5-0.4-0.9v-2.5c0-0.4,0.1-0.7,0.4-0.9s0.5-0.4,0.9-0.4h12.1l2.7-6.5c0.4-1,1.1-1.8,2.1-2.5\n s2-1,3.1-1h12.5c1,0,2.1,0.3,3.1,1s1.7,1.5,2.1,2.5l2.7,6.5h12.1c0.4,0,0.7,0.1,0.9,0.4S75.5,28.9,75.5,29.3z"/>\n </g>\n </svg> Remove</span>\n </div>\n ',styles:[':host{display:block;font-size:14px;color:#646464}:host:after{clear:both;content:"\\0A0";display:block;height:0;line-height:0;visibility:hidden;zoom:1}file-upload-icon{float:left;width:30px;height:36px;margin:0 10px 0 0}.remove-btn{font-size:12px;cursor:pointer}.remove-btn svg{display:inline-block;vertical-align:-20%;height:18px;width:18px}']}]}],t.ctorParameters=function(){return[{type:h}]},t.propDecorators={index:[{type:o.Input}],file:[{type:o.Input}],control:[{type:o.Input}]},t}(),y=function(){function t(t){this.fileUploadService=t,this.fileType="unknown"}return t.prototype.ngOnInit=function(){this.fileType=this.fileUploadService.getFileType(this.file)},t.prototype.isIcon=function(t){switch(t){case"text":return"html"===this.fileType||"css"===this.fileType||"csv"===this.fileType||"js"===this.fileType||"pdf"===this.fileType||"ppt"===this.fileType||"xls"===this.fileType||"xlsx"===this.fileType||"xml"===this.fileType||"doc"===this.fileType||"docx"===this.fileType;case"audio":return"aac"===this.fileType||"midi"===this.fileType||"oga"===this.fileType||"wav"===this.fileType||"weba"===this.fileType;case"image":return"png"===this.fileType||"bmp"===this.fileType||"gif"===this.fileType||"jpg"===this.fileType||"svg"===this.fileType||"webp"===this.fileType||"ico"===this.fileType;case"video":return"avi"===this.fileType||"mpeg"===this.fileType||"ogv"===this.fileType||"webm"===this.fileType||"3gp"===this.fileType||"3g2"===this.fileType}},t.decorators=[{type:o.Component,args:[{selector:"file-upload-icon",template:'\r\n\r\n<ng-container [ngSwitch]="true">\r\n\r\n <svg *ngSwitchDefault viewBox="0 0 96 96">\r\n <g>\r\n <path d="M71.4,30.7c0.6,0.6,1.2,1.5,1.6,2.5c0.4,1.1,0.7,2.1,0.7,2.9v38.6c0,0.9-0.3,1.7-0.9,2.3\r\n S71.4,78,70.5,78h-45c-0.9,0-1.7-0.3-2.3-0.9c-0.6-0.6-0.9-1.4-0.9-2.3V21.2c0-0.9,0.3-1.7,0.9-2.3c0.6-0.6,1.4-0.9,2.3-0.9h30\r\n c0.9,0,1.9,0.2,2.9,0.7c1.1,0.4,1.9,1,2.5,1.6L71.4,30.7z M56.6,22.6v12.6h12.6c-0.2-0.6-0.5-1.1-0.7-1.4L57.9,23.3\r\n C57.7,23,57.2,22.8,56.6,22.6z M69.4,73.7V39.4H55.5c-0.9,0-1.7-0.3-2.3-0.9c-0.6-0.6-0.9-1.4-0.9-2.3V22.3H26.6v51.4H69.4z"/>\r\n </g>\r\n </svg>\r\n\r\n <svg *ngSwitchCase="isIcon(\'image\')" viewBox="0 0 96 96">\r\n <g>\r\n <path d="M71.4,30.7c0.6,0.6,1.2,1.5,1.6,2.5c0.4,1.1,0.7,2.1,0.7,2.9v38.6c0,0.9-0.3,1.7-0.9,2.3\r\n S71.4,78,70.5,78h-45c-0.9,0-1.7-0.3-2.3-0.9c-0.6-0.6-0.9-1.4-0.9-2.3V21.2c0-0.9,0.3-1.7,0.9-2.3c0.6-0.6,1.4-0.9,2.3-0.9h30\r\n c0.9,0,1.9,0.2,2.9,0.7c1.1,0.4,1.9,1,2.5,1.6L71.4,30.7z M56.6,22.6v12.6h12.6c-0.2-0.6-0.5-1.1-0.7-1.4L57.9,23.3\r\n C57.7,23,57.2,22.8,56.6,22.6z M69.4,73.7V39.4H55.5c-0.9,0-1.7-0.3-2.3-0.9c-0.6-0.6-0.9-1.4-0.9-2.3V22.3H26.6v51.4H69.4z\r\n M65.1,58.7v10.7H30.9V63l6.4-6.4l4.3,4.3L54.4,48L65.1,58.7z M37.3,52.3c-1.8,0-3.3-0.6-4.6-1.9c-1.3-1.2-1.9-2.8-1.9-4.6\r\n c0-1.8,0.6-3.3,1.9-4.6c1.3-1.2,2.8-1.9,4.6-1.9s3.3,0.6,4.6,1.9c1.3,1.3,1.9,2.8,1.9,4.6c0,1.8-0.6,3.3-1.9,4.6\r\n C40.6,51.7,39.1,52.3,37.3,52.3z"/>\r\n </g>\r\n </svg>\r\n\r\n <svg *ngSwitchCase="isIcon(\'audio\')" viewBox="0 0 96 96">\r\n <g>\r\n <path d="M71.4,30.7c0.6,0.6,1.2,1.5,1.6,2.5c0.4,1.1,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0.7,0.5,0.7,1v19.3\r\n c0,0.5-0.2,0.8-0.7,1c-0.2,0-0.3,0.1-0.4,0.1c-0.3,0-0.6-0.1-0.8-0.3l-8.9-8.9v-3l8.9-8.9c0.2-0.2,0.5-0.3,0.8-0.3\r\n C64.2,43.7,64.3,43.7,64.5,43.8z"/>\r\n </g>\r\n </svg>\r\n\r\n</ng-container>',styles:[":host{display:block;border:1px solid #eaeaea;border-radius:4px}:host svg{fill:#909293}"]}]}],t.ctorParameters=function(){return[{type:h}]},t.propDecorators={file:[{type:o.Input}]},t}(),b=function(){function t(t,e,i,n){var o=this;this.fileUploadService=t,this.hostElementRef=e,this.renderer=i,this.document=n,this.control=null,this.templateRef=null,this.hooks=[],this.subscriptions=[],this.onTouch=function(){o.renderer.addClass(o.hostElementRef.nativeElement,g)}}return t.prototype.ngOnInit=function(){a(this.control)&&(this.control=new c)},t.prototype.ngAfterViewInit=function(){this.fileUploadService.isFileDragDropAvailable()&&(this.setEvents(),this.checkAndMarkAsDisabled())},t.prototype.ngOnDestroy=function(){this.hooks.forEach(function(t){return t()}),this.hooks.length=0,this.subscriptions.forEach(function(t){return t.unsubscribe()}),this.subscriptions.length=0},Object.defineProperty(t.prototype,"hasFiles",{get:function(){return this.control.isListVisible&&0<this.control.size},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isInvalid",{get:function(){return!this.control.disabled&&this.control.invalid},enumerable:!0,configurable:!0}),t.prototype.setEvents=function(){var i=this;["drag","dragstart","dragend","dragover","dragenter","dragleave","drop"].forEach(function(t){i.hooks.push(i.renderer.listen(i.document,t,function(t){return i.preventDragEvents(t)}))}),["dragover","dragenter"].forEach(function(t){i.hooks.push(i.renderer.listen(i.hostElementRef.nativeElement,t,function(t){return i.onDragOver(t)}))}),["dragleave","dragend","drop"].forEach(function(e){i.hooks.push(i.renderer.listen(i.hostElementRef.nativeElement,e,function(t){(i.control.disabled&&"dragleave"===e||"dragleave"!==e)&&i.onDragLeave(t)}))}),["dragleave"].forEach(function(t){i.hooks.push(i.renderer.listen(i.overlay.nativeElement,t,function(t){return i.onDragLeave(t)}))}),this.subscriptions.push(this.control.statusChanges.subscribe(function(t){return i.checkAndMarkAsDisabled()}))},t.prototype.checkAndMarkAsDisabled=function(){this.control.disabled?this.renderer.addClass(this.hostElementRef.nativeElement,"disabled"):this.renderer.removeClass(this.hostElementRef.nativeElement,"disabled")},t.prototype.preventDragEvents=function(t){t.preventDefault(),t.stopPropagation()},t.prototype.onDragOver=function(t){this.renderer.addClass(this.hostElementRef.nativeElement,f)},t.prototype.onDragLeave=function(t){this.renderer.removeClass(this.hostElementRef.nativeElement,f)},t.prototype.onDrop=function(t){if(!this.control.disabled){var e=t.dataTransfer.files;this.control.addFiles(e),this.onTouch()}},t.decorators=[{type:o.Component,args:[{selector:"[file-drop-zone]",template:'\n <ng-content></ng-content>\n <div #overlay class="overlay" *ngIf="fileUploadService.isFileDragDropAvailable()">\n\n <div class="upload-input">\n <ng-container *ngTemplateOutlet="templateRef ? templateRef : defaultTemplate"></ng-container>\n\n <ng-template #defaultTemplate>\n <div class="icon">\n <svg viewBox="0 0 96 96">\n <g>\n <path d="M62.8,68.1c0-0.6-0.2-1.1-0.6-1.5c-0.4-0.4-0.9-0.6-1.5-0.6s-1.1,0.2-1.5,0.6\n c-0.4,0.4-0.6,0.9-0.6,1.5c0,0.6,0.2,1.1,0.6,1.5c0.4,0.4,0.9,0.6,1.5,0.6s1.1-0.2,1.5-0.6S62.8,68.7,62.8,68.1z M71.3,68.1\n c0-0.6-0.2-1.1-0.6-1.5c-0.4-0.4-0.9-0.6-1.5-0.6c-0.6,0-1.1,0.2-1.5,0.6C67.2,67,67,67.5,67,68.1c0,0.6,0.2,1.1,0.6,1.5\n s0.9,0.6,1.5,0.6c0.6,0,1.1-0.2,1.5-0.6C71.1,69.2,71.3,68.7,71.3,68.1z M75.5,60.7v10.6c0,0.9-0.3,1.6-0.9,2.2\n c-0.6,0.6-1.4,0.9-2.2,0.9H23.7c-0.9,0-1.6-0.3-2.2-0.9c-0.6-0.6-0.9-1.4-0.9-2.2V60.7c0-0.9,0.3-1.6,0.9-2.2\n c0.6-0.6,1.4-0.9,2.2-0.9h14.1c0.5,1.2,1.2,2.2,2.3,3c1.1,0.8,2.3,1.2,3.7,1.2h8.5c1.3,0,2.6-0.4,3.7-1.2c1.1-0.8,1.9-1.8,2.3-3\n h14.1c0.9,0,1.6,0.3,2.2,0.9C75.2,59.1,75.5,59.8,75.5,60.7z M64.8,39.3c-0.4,0.9-1,1.3-2,1.3h-8.5v14.8c0,0.6-0.2,1.1-0.6,1.5\n c-0.4,0.4-0.9,0.6-1.5,0.6h-8.5c-0.6,0-1.1-0.2-1.5-0.6c-0.4-0.4-0.6-0.9-0.6-1.5V40.6h-8.5c-0.9,0-1.6-0.4-2-1.3\n c-0.4-0.9-0.2-1.6,0.5-2.3l14.8-14.8c0.4-0.4,0.9-0.6,1.5-0.6s1.1,0.2,1.5,0.6L64.3,37C65,37.7,65.1,38.4,64.8,39.3z"/>\n </g>\n </svg>\n </div>\n \n <div class="upload-text">\n <b>Drop</b> it here\n </div>\n </ng-template>\n </div>\n </div>\n ',providers:[h],styles:[":host{position:relative;display:block}:host .overlay{display:none;background:rgba(255,255,255,.8);outline:#92b0b3 dashed 2px;outline-offset:-10px;position:absolute;top:0;left:0;right:0;bottom:0}:host(.dragover:not(.disabled)) .overlay{display:block}.icon{height:35px;width:35px;border:1px solid #eaeaea;border-radius:4px;margin:0 auto 10px}:host /deep/ .icon svg{fill:#80a9d2}.upload-input{pointer-events:none;cursor:pointer;display:inline-block;color:#80a9d2;position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);transition:.15s ease-in-out}"]}]}],t.ctorParameters=function(){return[{type:h},{type:o.ElementRef},{type:o.Renderer2},{type:undefined,decorators:[{type:o.Inject,args:[n.DOCUMENT]}]}]},t.propDecorators={control:[{type:o.Input}],overlay:[{type:o.ViewChild,args:["overlay"]}],templateRef:[{type:o.ContentChild,args:["placeholder"]}],hasFiles:[{type:o.HostBinding,args:["class.has-files"]}],isInvalid:[{type:o.HostBinding,args:["class.ng-invalid"]}],onDrop:[{type:o.HostListener,args:["drop",["$event"]]}]},t}(),x=function(t,e,i){return void 0===i&&(i=0),!a(e)&&t.size>e||t.size<i?{maxSize:e,minSize:i,actual:t.size,file:t}:null},z=/(^[.]\w*)$/m,C=function(t,e){var i,n,o="."+t.name.split(".").pop();try{for(var r=function l(t){var e="function"==typeof Symbol&&t[Symbol.iterator],i=0;return e?e.call(t):{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}}}(e),s=r.next();!s.done;s=r.next()){var a=s.value;if(z.test(a)?a===o:new RegExp(a).test(t.type))return null}}catch(c){i={error:c}}finally{try{s&&!s.done&&(n=r["return"])&&n.call(r)}finally{if(i)throw i.error}}return{allowedTypes:e,actual:t.type,file:t}},D=function(t){if(!Array.isArray(t))throw Error("FormControl.setValue was provided with wrong argument type, "+t+" was provided instead Array<File>")},E=function(){function t(){}return t.fileSize=function(n){return function(t){var e=t.value;if(a(e))return null;D(e);var i=e.map(function(t){return x(t,n)}).filter(function(t){return t});return 0<i.length?{fileSize:i}:null}},t.sizeRange=function(t){var n=t.minSize,o=t.maxSize;return function(t){var e=t.value;if(a(e))return null;D(e);var i=e.map(function(t){return x(t,o,n)}).filter(function(t){return t});return 0<i.length?{sizeRange:i}:null}},t.filesLimit=function(i){return function(t){var e=t.value;return a(e)?null:(D(e),e.length>i?{filesLimit:{max:i,actual:e.length}}:null)}},t.accept=function(n){return function(t){var e=t.value;if(a(e))return null;D(e);var i=e.map(function(t){return C(t,n)}).filter(function(t){return t});return 0<i.length?{fileTypes:i}:null}},t}(),V=function(){function t(){}return t.prototype.ngOnChanges=function(t){("filesize"in t||"maxsize"in t||"minsize"in t)&&(this._createValidator(),this.onChange&&this.onChange())},t.prototype.validate=function(t){return this.validator(t)},t.prototype.registerOnValidatorChange=function(t){this.onChange=t},t.prototype._createValidator=function(){var t=null;a(this.maxsize)?a(this.filesize)||(t="string"==typeof this.filesize?parseInt(this.filesize,10):this.filesize):t="string"==typeof this.maxsize?parseInt(this.maxsize,10):this.maxsize;var e="string"==typeof this.minsize?parseInt(this.minsize,10):this.minsize;this.validator=E.sizeRange({maxSize:t,minSize:e})},t.decorators=[{type:o.Directive,args:[{selector:"[filesize][formControlName],[filesize][formControl],[filesize][ngModel],\n [minsize][formControlName],[minsize][formControl],[minsize][ngModel],\n [maxsize][formControlName],[maxsize][formControl],[maxsize][ngModel]",providers:[{provide:r.NG_VALIDATORS,useExisting:o.forwardRef(function(){return t}),multi:!0}],host:{"[attr.filesize]":"filesize ? filesize : null","[attr.minsize]":"minsize ? minsize : null","[attr.maxsize]":"maxsize ? maxsize : null"}}]}],t.propDecorators={filesize:[{type:o.Input}],minsize:[{type:o.Input}],maxsize:[{type:o.Input}]},t}(),w=function(){function t(){}return t.prototype.ngOnChanges=function(t){"fileslimit"in t&&(this._createValidator(),this.onChange&&this.onChange())},t.prototype.validate=function(t){return null!=this.fileslimit?this.validator(t):null},t.prototype.registerOnValidatorChange=function(t){this.onChange=t},t.prototype._createValidator=function(){this.validator=E.filesLimit("string"==typeof this.fileslimit?parseInt(this.fileslimit,10):this.fileslimit)},t.decorators=[{type:o.Directive,args:[{selector:"[fileslimit][formControlName],[fileslimit][formControl],[fileslimit][ngModel]",providers:[{provide:r.NG_VALIDATORS,useExisting:o.forwardRef(function(){return t}),multi:!0}],host:{"[attr.fileslimit]":"fileslimit ? fileslimit : null"}}]}],t.propDecorators={fileslimit:[{type:o.Input}]},t}(),A=function(){function t(){}return t.prototype.ngOnChanges=function(t){"accept"in t&&(this._createValidator(),this.onChange&&this.onChange())},t.prototype.validate=function(t){return null!=this.accept?this.validator(t):null},t.prototype.registerOnValidatorChange=function(t){this.onChange=t},t.prototype._createValidator=function(){this.validator=E.accept(this.accept.split(","))},t.decorators=[{type:o.Directive,args:[{selector:"[accept][formControlName],[accept][formControl],[accept][ngModel]",providers:[{provide:r.NG_VALIDATORS,useExisting:o.forwardRef(function(){return w}),multi:!0}],host:{"[attr.accept]":"accept ? accept : null"}}]}],t.propDecorators={accept:[{type:o.Input}]},t}(),I=function(){function t(t){this.injector=t}return t.prototype.ngDoBootstrap=function(){},t.decorators=[{type:o.NgModule,args:[{imports:[n.CommonModule,r.ReactiveFormsModule,r.FormsModule],declarations:[v,m,y,b,V,w,A],exports:[v,b,V,w,A],entryComponents:[v]}]}],t.ctorParameters=function(){return[{type:o.Injector}]},t}();t.FileUploadControl=c,t.FileUploadValidators=E,t.FileUploadTypes=p,t.FileUploadModule=I,t.ɵd=u,t.ɵc=d,t.ɵg=b,t.ɵf=y,t.ɵe=m,t.ɵa=v,t.ɵh=V,t.ɵj=A,t.ɵi=w,t.ɵb=h,Object.defineProperty(t,"__esModule",{value:!0})}); | ||
//# sourceMappingURL=iplab-ngx-file-upload.umd.min.js.map |
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,missingReturn,uselessCode} checked by tsc | ||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
@@ -5,0 +5,0 @@ import { animate, transition, trigger, style, query, stagger } from '@angular/animations'; |
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,missingReturn,uselessCode} checked by tsc | ||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
@@ -5,0 +5,0 @@ import { animate, transition, trigger, style, query, stagger } from '@angular/animations'; |
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,missingReturn,uselessCode} checked by tsc | ||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
@@ -27,5 +27,8 @@ import { Input, ElementRef, HostListener, Renderer2, HostBinding, Inject, ViewChild, ContentChild, TemplateRef, Component } from '@angular/core'; | ||
this.subscriptions = []; | ||
this.onTouch = () => { | ||
this.onTouch = (/** | ||
* @return {?} | ||
*/ | ||
() => { | ||
this.renderer.addClass(this.hostElementRef.nativeElement, TOUCHED); | ||
}; | ||
}); | ||
} | ||
@@ -53,5 +56,13 @@ /** | ||
ngOnDestroy() { | ||
this.hooks.forEach((hook) => hook()); | ||
this.hooks.forEach((/** | ||
* @param {?} hook | ||
* @return {?} | ||
*/ | ||
(hook) => hook())); | ||
this.hooks.length = 0; | ||
this.subscriptions.forEach((subscription) => subscription.unsubscribe()); | ||
this.subscriptions.forEach((/** | ||
* @param {?} subscription | ||
* @return {?} | ||
*/ | ||
(subscription) => subscription.unsubscribe())); | ||
this.subscriptions.length = 0; | ||
@@ -72,24 +83,62 @@ } | ||
/** | ||
* @private | ||
* @return {?} | ||
*/ | ||
setEvents() { | ||
['drag', 'dragstart', 'dragend', 'dragover', 'dragenter', 'dragleave', 'drop'].forEach((eventName) => { | ||
this.hooks.push(this.renderer.listen(this.document, eventName, (event) => this.preventDragEvents(event))); | ||
}); | ||
['dragover', 'dragenter'].forEach((eventName) => { | ||
this.hooks.push(this.renderer.listen(this.hostElementRef.nativeElement, eventName, (event) => this.onDragOver(event))); | ||
}); | ||
['dragleave', 'dragend', 'drop'].forEach((eventName) => { | ||
this.hooks.push(this.renderer.listen(this.hostElementRef.nativeElement, eventName, (event) => { | ||
['drag', 'dragstart', 'dragend', 'dragover', 'dragenter', 'dragleave', 'drop'].forEach((/** | ||
* @param {?} eventName | ||
* @return {?} | ||
*/ | ||
(eventName) => { | ||
this.hooks.push(this.renderer.listen(this.document, eventName, (/** | ||
* @param {?} event | ||
* @return {?} | ||
*/ | ||
(event) => this.preventDragEvents(event)))); | ||
})); | ||
['dragover', 'dragenter'].forEach((/** | ||
* @param {?} eventName | ||
* @return {?} | ||
*/ | ||
(eventName) => { | ||
this.hooks.push(this.renderer.listen(this.hostElementRef.nativeElement, eventName, (/** | ||
* @param {?} event | ||
* @return {?} | ||
*/ | ||
(event) => this.onDragOver(event)))); | ||
})); | ||
['dragleave', 'dragend', 'drop'].forEach((/** | ||
* @param {?} eventName | ||
* @return {?} | ||
*/ | ||
(eventName) => { | ||
this.hooks.push(this.renderer.listen(this.hostElementRef.nativeElement, eventName, (/** | ||
* @param {?} event | ||
* @return {?} | ||
*/ | ||
(event) => { | ||
if (this.control.disabled && eventName === 'dragleave' || eventName !== 'dragleave') { | ||
this.onDragLeave(event); | ||
} | ||
})); | ||
}); | ||
['dragleave'].forEach((eventName) => { | ||
this.hooks.push(this.renderer.listen(this.overlay.nativeElement, eventName, (event) => this.onDragLeave(event))); | ||
}); | ||
this.subscriptions.push(this.control.statusChanges.subscribe((status) => this.checkAndMarkAsDisabled())); | ||
}))); | ||
})); | ||
['dragleave'].forEach((/** | ||
* @param {?} eventName | ||
* @return {?} | ||
*/ | ||
(eventName) => { | ||
this.hooks.push(this.renderer.listen(this.overlay.nativeElement, eventName, (/** | ||
* @param {?} event | ||
* @return {?} | ||
*/ | ||
(event) => this.onDragLeave(event)))); | ||
})); | ||
this.subscriptions.push(this.control.statusChanges.subscribe((/** | ||
* @param {?} status | ||
* @return {?} | ||
*/ | ||
(status) => this.checkAndMarkAsDisabled()))); | ||
} | ||
/** | ||
* @private | ||
* @return {?} | ||
@@ -106,2 +155,3 @@ */ | ||
/** | ||
* @private | ||
* @param {?} event | ||
@@ -116,2 +166,3 @@ * @return {?} | ||
* on file over add class name | ||
* @private | ||
* @param {?} event | ||
@@ -125,2 +176,3 @@ * @return {?} | ||
* on mouse out remove class name | ||
* @private | ||
* @param {?} event | ||
@@ -208,17 +260,35 @@ * @return {?} | ||
FileUploadAttributeComponent.prototype.templateRef; | ||
/** @type {?} */ | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
FileUploadAttributeComponent.prototype.hooks; | ||
/** @type {?} */ | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
FileUploadAttributeComponent.prototype.subscriptions; | ||
/** @type {?} */ | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
FileUploadAttributeComponent.prototype.onTouch; | ||
/** @type {?} */ | ||
FileUploadAttributeComponent.prototype.fileUploadService; | ||
/** @type {?} */ | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
FileUploadAttributeComponent.prototype.hostElementRef; | ||
/** @type {?} */ | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
FileUploadAttributeComponent.prototype.renderer; | ||
/** @type {?} */ | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
FileUploadAttributeComponent.prototype.document; | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmlsZS11cGxvYWQtYXR0ci5jb21wb25lbnQuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AaXBsYWIvbmd4LWZpbGUtdXBsb2FkLyIsInNvdXJjZXMiOlsiY29tcG9uZW50cy9maWxlLXVwbG9hZC1hdHRyLmNvbXBvbmVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0FBQUEsT0FBTyxFQUNILEtBQUssRUFFTCxVQUFVLEVBQ1YsWUFBWSxFQUNaLFNBQVMsRUFFVCxXQUFXLEVBQ1gsTUFBTSxFQUNOLFNBQVMsRUFDVCxZQUFZLEVBQ1osV0FBVyxFQUNYLFNBQVMsRUFFWixNQUFNLGVBQWUsQ0FBQztBQUN2QixPQUFPLEVBQUUsUUFBUSxFQUFFLE1BQU0saUJBQWlCLENBQUM7QUFFM0MsT0FBTyxFQUFFLGlCQUFpQixFQUFFLE1BQU0sMEJBQTBCLENBQUM7QUFDN0QsT0FBTyxFQUFFLGFBQWEsRUFBRSxNQUFNLDBCQUEwQixDQUFDO0FBQ3pELE9BQU8sRUFBRSxpQkFBaUIsRUFBRSxNQUFNLGlDQUFpQyxDQUFDO0FBQ3BFLE9BQU8sRUFBRSxRQUFRLEVBQUUsT0FBTyxFQUFFLE1BQU0seUJBQXlCLENBQUM7Q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j5cclxuXHJcbiAgICAgICAgICAgIDxkaXYgY2xhc3M9XCJ1cGxvYWQtaW5wdXRcIj5cclxuICAgICAgICAgICAgICAgIDxuZy1jb250YWluZXIgKm5nVGVtcGxhdGVPdXRsZXQ9XCJ0ZW1wbGF0ZVJlZiA/IHRlbXBsYXRlUmVmIDogZGVmYXVsdFRlbXBsYXRlXCI+PC9uZy1jb250YWluZXI+XHJcblxyXG4gICAgICAgICAgICAgICAgPG5nLXRlbXBsYXRlICNkZWZhdWx0VGVtcGxhdGU+XHJcbiAgICAgICAgICAgICAgICAgICAgPGRpdiBjbGFzcz1cImljb25cIj5cclxuICAgICAgICAgICAgICAgICAgICAgICAgPHN2ZyB2aWV3Qm94PVwiMCAwIDk2IDk2XCI+XHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8Zz5cclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8cGF0aCBkPVwiTTYyLjgsNjguMWMwLTAuNi0wLjItMS4xLTAuNi0xLjVjLTAuNC0wLjQtMC45LTAuNi0xLjUtMC42cy0xLjEsMC4yLTEuNSwwLjZcclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgYy0wLjQsMC40LTAuNiwwLjktMC42LDEuNWMwLDAuNiwwLjIsMS4xLDAuNiwxLjVjMC40LDAuNCwwLjksMC42LDEuNSwwLjZzMS4xLTAuMiwxLjUtMC42UzYyLjgsNjguNyw2Mi44LDY4LjF6IE03MS4zLDY4LjFcclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgYzAtMC42LTAuMi0xLjEtMC42LTEuNWMtMC40LTAuNC0wLjktMC42LTEuNS0wLjZjLTAuNiwwLTEuMSwwLjItMS41LDAuNkM2Ny4yLDY3LDY3LDY3LjUsNjcsNjguMWMwLDAuNiwwLjIsMS4xLDAuNiwxLjVcclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgczAuOSwwLjYsMS41LDAuNmMwLjYsMCwxLjEtMC4yLDEuNS0wLjZDNzEuMSw2OS4yLDcxLjMsNjguNyw3MS4zLDY4LjF6IE03NS41LDYwLjd2MTAuNmMwLDAuOS0wLjMsMS42LTAuOSwyLjJcclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgYy0wLjYsMC42LTEuNCwwLjktMi4yLDAuOUgyMy43Yy0wLjksMC0xLjYtMC4zLTIuMi0wLjljLTAuNi0wLjYtMC45LTEuNC0wLjktMi4yVjYwLjdjMC0wLjksMC4zLTEuNiwwLjktMi4yXHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGMwLjYtMC42LDEuNC0wLjksMi4yLTAuOWgxNC4xYzAuNSwxLjIsMS4yLDIuMiwyLjMsM2MxLjEsMC44LDIuMywxLjIsMy43LDEuMmg4LjVjMS4zLDAsMi42LTAuNCwzLjctMS4yYzEuMS0wLjgsMS45LTEuOCwyLjMtM1xyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBoMTQuMWMwLjksMCwxLjYsMC4zLDIuMiwwLjlDNzUuMiw1OS4xLDc1LjUsNTkuOCw3NS41LDYwLjd6IE02NC44LDM5LjNjLTAuNCwwLjktMSwxLjMtMiwxLjNoLTguNXYxNC44YzAsMC42LTAuMiwxLjEtMC42LDEuNVxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBjLTAuNCwwLjQtMC45LDAuNi0xLjUsMC42aC04LjVjLTAuNiwwLTEuMS0wLjItMS41LTAuNmMtMC40LTAuNC0wLjYtMC45LTAuNi0xLjVWNDAuNmgtOC41Yy0wLjksMC0xLjYtMC40LTItMS4zXHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGMtMC40LTAuOS0wLjItMS42LDAuNS0yLjNsMTQuOC0xNC44YzAuNC0wLjQsMC45LTAuNiwxLjUtMC42czEuMSwwLjIsMS41LDAuNkw2NC4zLDM3QzY1LDM3LjcsNjUuMSwzOC40LDY0LjgsMzkuM3pcIi8+XHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L2c+XHJcbiAgICAgICAgICAgICAgICAgICAgICAgIDwvc3ZnPlxyXG4gICAgICAgICAgICAgICAgICAgIDwvZGl2PlxyXG4gICAgICAgICAgICAgICAgXHJcbiAgICAgICAgICAgICAgICAgICAgPGRpdiBjbGFzcz1cInVwbG9hZC10ZXh0XCI+XHJcbiAgICAgICAgICAgICAgICAgICAgICAgIDxiPkRyb3A8L2I+IGl0IGhlcmVcclxuICAgICAgICAgICAgICAgICAgICA8L2Rpdj5cclxuICAgICAgICAgICAgICAgIDwvbmctdGVtcGxhdGU+XHJcbiAgICAgICAgICAgIDwvZGl2PlxyXG4gICAgICAgIDwvZGl2PlxyXG4gICAgYCxcclxuICAgIHN0eWxlVXJsczogW2AuL2ZpbGUtdXBsb2FkLWF0dHIuY29tcG9uZW50LnNjc3NgXSxcclxuICAgIHByb3ZpZGVyczogWyBcclxuICAgICAgICBGaWxlVXBsb2FkU2VydmljZVxyXG4gICAgXVxyXG59KVxyXG5leHBvcnQgY2xhc3MgRmlsZVVwbG9hZEF0dHJpYnV0ZUNvbXBvbmVudCBpbXBsZW1lbnRzIE9uSW5pdCwgQWZ0ZXJWaWV3SW5pdCwgT25EZXN0cm95IHtcclxuXHJcbiAgICBASW5wdXQoKVxyXG4gICAgcHVibGljIGNvbnRyb2w6IEZpbGVVcGxvYWRDb250cm9sID0gbnVsbDtcclxuXHJcbiAgICBAVmlld0NoaWxkKCdvdmVybGF5JylcclxuICAgIHB1YmxpYyBvdmVybGF5OiBFbGVtZW50UmVmPEhUTUxEaXZFbGVtZW50PjtcclxuXHJcbiAgICBAQ29udGVudENoaWxkKCdwbGFjZWhvbGRlcicpXHJcbiAgICBwdWJsaWMgdGVtcGxhdGVSZWY6IFRlbXBsYXRlUmVmPGFueT4gPSBudWxsO1xyXG5cclxuICAgIHByaXZhdGUgaG9va3M6IEFycmF5PEZ1bmN0aW9uPiA9IFtdO1xyXG5cclxu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ICAgICAgICAgICAgIHRoaXMucmVuZGVyZXIubGlzdGVuKHRoaXMuaG9zdEVsZW1lbnRSZWYubmF0aXZlRWxlbWVudCwgZXZlbnROYW1lLCAoZXZlbnQ6IGFueSkgPT4gdGhpcy5vbkRyYWdPdmVyKGV2ZW50KSlcclxuICAgICAgICAgICAgKTtcclxuICAgICAgICB9KTtcclxuXHJcbiAgICAgICAgWydkcmFnbGVhdmUnLCAnZHJhZ2VuZCcsICdkcm9wJ10uZm9yRWFjaCgoZXZlbnROYW1lKSA9PiB7XHJcbiAgICAgICAgICAgIHRoaXMuaG9va3MucHVzaChcclxuICAgICAgICAgICAgICAgIHRoaXMucmVuZGVyZXIubGlzdGVuKHRoaXMuaG9zdEVsZW1lbnRSZWYubmF0aXZlRWxlbWVudCwgZXZlbnROYW1lLCAoZXZlbnQ6IGFueSkgPT4ge1xyXG4gICAgICAgICAgICAgICAgICAgIGlmKHRoaXMuY29udHJvbC5kaXNhYmxlZCAmJiBldmVudE5hbWUgPT09ICdkcmFnbGVhdmUnIHx8IGV2ZW50TmFtZSAhPT0gJ2RyYWdsZWF2ZScpIHtcclxuICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy5vbkRyYWdMZWF2ZShldmVudCk7XHJcbiAgICAgICAgICAgICAgICAgICAgfVxyXG4gICAgICAgICAgICAgICAgfSlcclxuICAgICAgICAgICAgKTtcclxuICAgICAgICB9KTtcclxuXHJcbiAgICAgICAgWydkcmFnbGVhdmUnXS5mb3JFYWNoKChldmVudE5hbWUpID0+IHtcclxuICAgICAgICAgICAgdGhpcy5ob29rcy5wdXNoKFxyXG4gICAgICAgICAgICAgICAgdGhpcy5yZW5kZXJlci5saXN0ZW4odGhpcy5vdmVybGF5Lm5hdGl2ZUVsZW1lbnQsIGV2ZW50TmFtZSwgKGV2ZW50OiBhbnkpID0+IHRoaXMub25EcmFnTGVhdmUoZXZlbnQpKVxyXG4gICAgICAgICAgICApO1xyXG4gICAgICAgIH0pO1xyXG5cclxuICAgIC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biBtb3VzZSBvdXQgcmVtb3ZlIGNsYXNzIG5hbWVcclxuICAgICAqL1xyXG4gICAgcHJpdmF0ZSBvbkRyYWdMZWF2ZShldmVudDogRHJhZ0V2ZW50KTogdm9pZCB7XHJcbiAgICAgICAgdGhpcy5yZW5kZXJlci5yZW1vdmVDbGFzcyh0aGlzLmhvc3RFbGVtZW50UmVmLm5hdGl2ZUVsZW1lbnQsIERSQUdPVkVSKTtcclxuICAgIH1cclxuXHJcbiAgICBASG9zdExpc3RlbmVyKCdkcm9wJywgWyckZXZlbnQnXSlcclxuICAgIHB1YmxpYyBvbkRyb3AoZXZlbnQ6IERyYWdFdmVudCk6IHZvaWQge1xyXG4gICAgICAgIGlmICh0aGlzLmNvbnRyb2wuZGlzYWJsZWQpIHtcclxuICAgICAgICAgICAgcmV0dXJuO1xyXG4gICAgICAgIH1cclxuICAgICAgICBjb25zdCBmaWxlcyA9IGV2ZW50LmRhdGFUcmFuc2Zlci5maWxlcztcclxuICAgICAgICB0aGlzLmNvbnRyb2wuYWRkRmlsZXMoZmlsZXMpO1xyXG4gICAgICAgIHRoaXMub25Ub3VjaCgpO1xyXG4gICAgfVxyXG5cclxuICAgIHByaXZhdGUgb25Ub3VjaDogKCkgPT4gdm9pZCA9ICgpID0+IHtcclxuICAgICAgICB0aGlzLnJlbmRlcmVyLmFkZENsYXNzKHRoaXMuaG9zdEVsZW1lbnRSZWYubmF0aXZlRWxlbWVudCwgVE9VQ0hFRCk7XHJcbiAgICB9O1xyXG5cclxufSJdfQ== | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmlsZS11cGxvYWQtYXR0ci5jb21wb25lbnQuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AaXBsYWIvbmd4LWZpbGUtdXBsb2FkLyIsInNvdXJjZXMiOlsiY29tcG9uZW50cy9maWxlLXVwbG9hZC1hdHRyLmNvbXBvbmVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmd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xLjgsMi4zLTNcclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgaDE0LjFjMC45LDAsMS42LDAuMywyLjIsMC45Qzc1LjIsNTkuMSw3NS41LDU5LjgsNzUuNSw2MC43eiBNNjQuOCwzOS4zYy0wLjQsMC45LTEsMS4zLTIsMS4zaC04LjV2MTQuOGMwLDAuNi0wLjIsMS4xLTAuNiwxLjVcclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgYy0wLjQsMC40LTAuOSwwLjYtMS41LDAuNmgtOC41Yy0wLjYsMC0xLjEtMC4yLTEuNS0wLjZjLTAuNC0wLjQtMC42LTAuOS0wLjYtMS41VjQwLjZoLTguNWMtMC45LDAtMS42LTAuNC0yLTEuM1xyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBjLTAuNC0wLjktMC4yLTEuNiwwLjUtMi4zbDE0LjgtMTQuOGMwLjQtMC40LDAuOS0wLjYsMS41LTAuNnMxLjEsMC4yLDEuNSwwLjZMNjQuMywzN0M2NSwzNy43LDY1LjEsMzguNCw2NC44LDM5LjN6XCIvPlxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgPC9nPlxyXG4gICAgICAgICAgICAgICAgICAgICAgICA8L3N2Zz5cclxuICAgICAgICAgICAgICAgICAgICA8L2Rpdj5cclxuICAgICAgICAgICAgICAgIFxyXG4gICAgICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9XCJ1cGxvYWQtdGV4dFwiPlxyXG4gICAgICAgICAgICAgICAgICAgICAgICA8Yj5Ecm9wPC9iPiBpdCBoZXJlXHJcbiAgICAgICAgICAgICAgICAgICAgPC9kaXY+XHJcbiAgICAgICAgICAgICAgICA8L25nLXRlbXBsYXRlPlxyXG4gICAgICAgICAgICA8L2Rpdj5cclxuICAgICAgICA8L2Rpdj5cclxuICAgIGAsXHJcbiAgICBzdHlsZVVybHM6IFtgLi9maWxlLXVwbG9hZC1hdHRyLmNvbXBvbmVudC5zY3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ICAgICAgICBpZih0aGlzLmNvbnRyb2wuZGlzYWJsZWQgJiYgZXZlbnROYW1lID09PSAnZHJhZ2xlYXZlJyB8fCBldmVudE5hbWUgIT09ICdkcmFnbGVhdmUnKSB7XHJcbiAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMub25EcmFnTGVhdmUoZXZlbnQpO1xyXG4gICAgICAgICAgICAgICAgICAgIH1cclxuICAgICAgICAgICAgICAgIH0pXHJcbiAgICAgICAgICAgICk7XHJcbiAgICAgICAgfSk7XHJcblxyXG4gICAgICAgIFsnZHJhZ2xlYXZlJ10uZm9yRWFjaCgoZXZlbnROYW1lKSA9PiB7XHJcbiAgICAgICAgICAgIHRoaXMuaG9va3MucHVzaChcclxuICAgICAgICAgICAgICAgIHRoaXMucmVuZGVyZXIubGlzdGVuKHRoaXMub3ZlcmxheS5uYXRpdmVFbGVtZW50LCBldmVudE5hbWUsIChldmVudDogYW55KSA9PiB0aGlzLm9uRHJhZ0xlYXZlKGV2ZW50KSlcclxuICAgICAgICAgICAgKTtcclxuICAgICAgICB9KTtcclxuXHJcbiAgICAgICAgdGhpcy5zdWJzY3JpcHRpb25zLnB1c2goXHJcbiAgICAgICAgICAgIHRoaXMuY29udHJvbC5zdGF0dXNDaGFuZ2VzLnN1YnNjcmliZSgoc3RhdHVzKSA9PiB0aGlzLmNoZWNrQW5kTWFya0FzRGlzYWJsZWQoKSlcclxuICAgICAgICApO1xyXG4gICAgfVxyXG5cclxuICAgIHByaXZhdGUgY2hlY2tBbmRNYXJrQXNEaXNhYmxlZCgpOiB2b2lkIHtcclxuICAgICAgICBpZiAodGhpcy5jb250cm9sLmRpc2FibGVkKSB7XHJcbiAgICAgICAgICAgIHRoaXMucmVuZGVyZXIuYWRkQ2xhc3ModGhpcy5ob3N0RWxlbWVudFJlZi5uYXRpdmVFbGVtZW50LCAnZGlzYWJsZWQnKTtcclxuICAgICAgICB9IGVsc2Uge1xyXG4gICAgICAgICAgICB0aGlzLnJlbmRlcmVyLnJl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sZXMgPSBldmVudC5kYXRhVHJhbnNmZXIuZmlsZXM7XHJcbiAgICAgICAgdGhpcy5jb250cm9sLmFkZEZpbGVzKGZpbGVzKTtcclxuICAgICAgICB0aGlzLm9uVG91Y2goKTtcclxuICAgIH1cclxuXHJcbiAgICBwcml2YXRlIG9uVG91Y2g6ICgpID0+IHZvaWQgPSAoKSA9PiB7XHJcbiAgICAgICAgdGhpcy5yZW5kZXJlci5hZGRDbGFzcyh0aGlzLmhvc3RFbGVtZW50UmVmLm5hdGl2ZUVsZW1lbnQsIFRPVUNIRUQpO1xyXG4gICAgfVxyXG5cclxufVxyXG4iXX0= |
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,missingReturn,uselessCode} checked by tsc | ||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
@@ -69,5 +69,8 @@ import { Component, Input } from '@angular/core'; | ||
FileUploadIconComponent.prototype.fileType; | ||
/** @type {?} */ | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
FileUploadIconComponent.prototype.fileUploadService; | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmlsZS11cGxvYWQtaWNvbi5jb21wb25lbnQuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AaXBsYWIvbmd4LWZpbGUtdXBsb2FkLyIsInNvdXJjZXMiOlsiY29tcG9uZW50cy9maWxlLXVwbG9hZC1pY29uLmNvbXBvbmVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0FBQUEsT0FBTyxFQUFFLFNBQVMsRUFBRSxLQUFLLEVBQVUsTUFBTSxlQUFlLENBQUM7QUFDekQsT0FBTyxFQUFFLGlCQUFpQixFQUFFLE1BQU0sbUNBQW1DLENBQUM7QUFRdEUsTUFBTSxPQUFPLHVCQUF1Qjs7OztJQU9oQyxZQUFvQixpQkFBb0M7UUFBcEMs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nIHx8XHJcbiAgICAgICAgICAgICAgICAgICAgdGhpcy5maWxlVHlwZSA9PT0gJ3hscycgfHwgdGhpcy5maWxlVHlwZSA9PT0gJ3hsc3gnIHx8XHJcbiAgICAgICAgICAgICAgICAgICAgdGhpcy5maWxlVHlwZSA9PT0gJ3htbCcgfHwgdGhpcy5maWxlVHlwZSA9PT0gJ2RvYycgfHxcclxuICAgICAgICAgICAgICAgICAgICB0aGlzLmZpbGVUeXBlID09PSAnZG9jeCc7XHJcbiAgICAgICAgICAgIGNhc2UgJ2F1ZGlvJzpcclxuICAgICAgICAgICAgICAgIHJldHVybiB0aGlzLmZpbGVUeXBlID09PSAnYWFjJyB8fCB0aGlzLmZpbGVUeXBlID09PSAnbWlkaScgfHxcclxuICAgICAgICAgICAgICAgICAgICB0aGlzLmZpbGVUeXBlID09PSAnb2dhJyB8fCB0aGlzLmZpbGVUeXBlID09PSAnd2F2JyB8fFxyXG4gICAgICAgICAgICAgICAgICAgIHRoaXMuZmlsZVR5cGUgPT09ICd3ZWJhJztcclxuICAgICAgICAgICAgY2FzZSAnaW1hZ2UnOlxyXG4gICAgICAgICAgICAgICAgcmV0dXJuIHRoaXMuZmlsZVR5cGUgPT09ICdwbmcnIHx8IHRoaXMuZmlsZVR5cGUgPT09ICdibXAnIHx8XHJcbiAgICAgICAgICAgICAgICAgICAgdGhpcy5maWxlVHlwZSA9PT0gJ2dpZicgfHwgdGhpcy5maWxlVHlwZSA9PT0gJ2pwZycgfHxcclxuICAgICAgICAgICAgICAgICAgICB0aGlzLmZpbGVUeXBlID09PSAnc3ZnJyB8fCB0aGlzLmZpbGVUeXBlID09PSAnd2VicCcgfHxcclxuICAgICAgICAgICAgICAgICAgICB0aGlzLmZpbGVUeXBlID09PSAnaWNvJztcclxuICAgICAgICAgICAgY2FzZSAndmlkZW8nOlxyXG4gICAgICAgICAgICAgICAgcmV0dXJuIHRoaXMuZmlsZVR5cGUgPT09ICdhdmknIHx8IHRoaXMuZmlsZVR5cGUgPT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SAnYWFjJyB8fCB0aGlzLmZpbGVUeXBlID09PSAnbWlkaScgfHxcclxuICAgICAgICAgICAgICAgICAgICB0aGlzLmZpbGVUeXBlID09PSAnb2dhJyB8fCB0aGlzLmZpbGVUeXBlID09PSAnd2F2JyB8fFxyXG4gICAgICAgICAgICAgICAgICAgIHRoaXMuZmlsZVR5cGUgPT09ICd3ZWJhJztcclxuICAgICAgICAgICAgY2FzZSAnaW1hZ2UnOlxyXG4gICAgICAgICAgICAgICAgcmV0dXJuIHRoaXMuZmlsZVR5cGUgPT09ICdwbmcnIHx8IHRoaXMuZmlsZVR5cGUgPT09ICdibXAnIHx8XHJcbiAgICAgICAgICAgICAgICAgICAgdGhpcy5maWxlVHlwZSA9PT0gJ2dpZicgfHwgdGhpcy5maWxlVHlwZSA9PT0gJ2pwZycgfHxcclxuICAgICAgICAgICAgICAgICAgICB0aGlzLmZpbGVUeXBlID09PSAnc3ZnJyB8fCB0aGlzLmZpbGVUeXBlID09PSAnd2VicCcgfHxcclxuICAgICAgICAgICAgICAgICAgICB0aGlzLmZpbGVUeXBlID09PSAnaWNvJztcclxuICAgICAgICAgICAgY2FzZSAndmlkZW8nOlxyXG4gICAgICAgICAgICAgICAgcmV0dXJuIHRoaXMuZmlsZVR5cGUgPT09ICdhdmknIHx8IHRoaXMuZmlsZVR5cGUgPT09ICdtcGVnJyB8fFxyXG4gICAgICAgICAgICAgICAgICAgIHRoaXMuZmlsZVR5cGUgPT09ICdvZ3YnIHx8IHRoaXMuZmlsZVR5cGUgPT09ICd3ZWJtJyB8fFxyXG4gICAgICAgICAgICAgICAgICAgIHRoaXMuZmlsZVR5cGUgPT09ICczZ3AnIHx8IHRoaXMuZmlsZVR5cGUgPT09ICczZzInO1xyXG4gICAgICAgIH1cclxuICAgIH1cclxufVxyXG4iXX0= |
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,missingReturn,uselessCode} checked by tsc | ||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
@@ -74,5 +74,8 @@ import { Component, Input } from '@angular/core'; | ||
FileUploadListItemComponent.prototype.control; | ||
/** @type {?} */ | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
FileUploadListItemComponent.prototype.fileUploadService; | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmlsZS11cGxvYWQtbGlzdC1pdGVtLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BpcGxhYi9uZ3gtZmlsZS11cGxvYWQvIiwic291cmNlcyI6WyJjb21wb25lbnRzL2ZpbGUtdXBsb2FkLWxpc3QtaXRlbS5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQUUsS0FBSyxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQ2pELE9BQU8sRUFBRSxpQkFBaUIsRUFBRSxNQUFNLDRCQUE0QixDQUFDO0FBQy9ELE9BQU8sRUFBRSxpQkFBaUIsRUFBRSxNQUFNLG1DQUFtQyxDQUFDO0FBNEJ0RSxNQUFNLE9BQU8sMkJBQTJCOzs7O0lBV3BDLFlBQW9CLGlCQUFvQztRQUFwQyxzQkFBaUIsR0FBakIsaUJBQWlCLENBQW1CO0lBQ3hELENBQUM7Ozs7O0lBRU0sVUFBVSxDQUFDLElBQVU7UUFDeEIsSUFBSSxDQUFDLE9BQU8sQ0FBQyxVQUFVLENBQUMsSUFBSSxDQUFDLENBQUM7SUFDbEMsQ0FBQzs7Ozs7SUFFTSxhQUFhLENBQUMsSUFBWTtRQUM5QixPQUFPLElBQUksQ0FBQyxpQkFBaUIsQ0FBQyxhQUFhLENBQUMsSUFBSSxDQUFDLENBQUM7SUFDckQsQ0FBQzs7O1lBOUNKLFNBQVMsU0FBQztnQkFDUCxRQUFRLEVBQUUsdUJBQXVCO2dCQUN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1YmxpYyBmaWxlOiBGaWxlO1xyXG5cclxuICAgIEBJbnB1dCgpXHJcbiAgICBwdWJsaWMgY29udHJvbDogRmlsZVVwbG9hZENvbnRyb2w7XHJcblxyXG4gICAgY29uc3RydWN0b3IocHJpdmF0ZSBmaWxlVXBsb2FkU2VydmljZTogRmlsZVVwbG9hZFNlcnZpY2UpIHtcclxuICAgIH1cclxuXHJcbiAgICBwdWJsaWMgcmVtb3ZlRmlsZShmaWxlOiBGaWxlKTogdm9pZCB7XHJcbiAgICAgICAgdGhpcy5jb250cm9sLnJlbW92ZUZpbGUoZmlsZSk7XHJcbiAgICB9XHJcblxyXG4gICAgcHVibGljIGNhbGN1bGF0ZVNpemUoc2l6ZTogbnVtYmVyKTogc3RyaW5nIHtcclxuICAgICAgIHJldHVybiB0aGlzLmZpbGVVcGxvYWRTZXJ2aWNlLmNhbGN1bGF0ZVNpemUoc2l6ZSk7XHJcbiAgICB9XHJcbn0iXX0= |
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,missingReturn,uselessCode} checked by tsc | ||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
@@ -45,6 +45,12 @@ import { Component, Input, ElementRef, HostListener, Renderer2, HostBinding, Inject, TemplateRef, ViewChild, ChangeDetectionStrategy, ContentChild, forwardRef, ChangeDetectorRef } from '@angular/core'; | ||
this.subscriptions = []; | ||
this.onChange = () => { }; | ||
this.onTouch = () => { | ||
this.onChange = (/** | ||
* @return {?} | ||
*/ | ||
() => { }); | ||
this.onTouch = (/** | ||
* @return {?} | ||
*/ | ||
() => { | ||
this.renderer.addClass(this.hostElementRef.nativeElement, TOUCHED); | ||
}; | ||
}); | ||
} | ||
@@ -67,5 +73,13 @@ /** | ||
this.cdr.detach(); | ||
this.hooks.forEach((hook) => hook()); | ||
this.hooks.forEach((/** | ||
* @param {?} hook | ||
* @return {?} | ||
*/ | ||
(hook) => hook())); | ||
this.hooks.length = 0; | ||
this.subscriptions.forEach((subscription) => subscription.unsubscribe()); | ||
this.subscriptions.forEach((/** | ||
* @param {?} subscription | ||
* @return {?} | ||
*/ | ||
(subscription) => subscription.unsubscribe())); | ||
this.subscriptions.length = 0; | ||
@@ -86,19 +100,57 @@ } | ||
/** | ||
* @private | ||
* @return {?} | ||
*/ | ||
setEvents() { | ||
['drag', 'dragstart', 'dragend', 'dragover', 'dragenter', 'dragleave', 'drop'].forEach((eventName) => { | ||
this.hooks.push(this.renderer.listen(this.document, eventName, (event) => this.preventDragEvents(event))); | ||
}); | ||
['dragover', 'dragenter'].forEach((eventName) => { | ||
this.hooks.push(this.renderer.listen(this.hostElementRef.nativeElement, eventName, (event) => this.onDragOver(event))); | ||
}); | ||
['dragleave', 'dragend', 'drop'].forEach((eventName) => { | ||
this.hooks.push(this.renderer.listen(this.hostElementRef.nativeElement, eventName, (event) => this.onDragLeave(event))); | ||
}); | ||
this.subscriptions.push(this.control.statusChanges.subscribe((status) => this.checkAndMarkAsDisabled())); | ||
this.subscriptions.push(this.control.valueChanges.subscribe((files) => this.renderView())); | ||
this.subscriptions.push(this.control.listVisibilityChanges.subscribe((status) => this.toggleListVisibility())); | ||
['drag', 'dragstart', 'dragend', 'dragover', 'dragenter', 'dragleave', 'drop'].forEach((/** | ||
* @param {?} eventName | ||
* @return {?} | ||
*/ | ||
(eventName) => { | ||
this.hooks.push(this.renderer.listen(this.document, eventName, (/** | ||
* @param {?} event | ||
* @return {?} | ||
*/ | ||
(event) => this.preventDragEvents(event)))); | ||
})); | ||
['dragover', 'dragenter'].forEach((/** | ||
* @param {?} eventName | ||
* @return {?} | ||
*/ | ||
(eventName) => { | ||
this.hooks.push(this.renderer.listen(this.hostElementRef.nativeElement, eventName, (/** | ||
* @param {?} event | ||
* @return {?} | ||
*/ | ||
(event) => this.onDragOver(event)))); | ||
})); | ||
['dragleave', 'dragend', 'drop'].forEach((/** | ||
* @param {?} eventName | ||
* @return {?} | ||
*/ | ||
(eventName) => { | ||
this.hooks.push(this.renderer.listen(this.hostElementRef.nativeElement, eventName, (/** | ||
* @param {?} event | ||
* @return {?} | ||
*/ | ||
(event) => this.onDragLeave(event)))); | ||
})); | ||
this.subscriptions.push(this.control.statusChanges.subscribe((/** | ||
* @param {?} status | ||
* @return {?} | ||
*/ | ||
(status) => this.checkAndMarkAsDisabled()))); | ||
this.subscriptions.push(this.control.valueChanges.subscribe((/** | ||
* @param {?} files | ||
* @return {?} | ||
*/ | ||
(files) => this.renderView()))); | ||
this.subscriptions.push(this.control.listVisibilityChanges.subscribe((/** | ||
* @param {?} status | ||
* @return {?} | ||
*/ | ||
(status) => this.toggleListVisibility()))); | ||
} | ||
/** | ||
* @private | ||
* @return {?} | ||
@@ -117,2 +169,3 @@ */ | ||
/** | ||
* @private | ||
* @param {?} event | ||
@@ -126,2 +179,3 @@ * @return {?} | ||
/** | ||
* @private | ||
* @return {?} | ||
@@ -136,2 +190,3 @@ */ | ||
/** | ||
* @private | ||
* @return {?} | ||
@@ -145,2 +200,3 @@ */ | ||
/** | ||
* @private | ||
* @return {?} | ||
@@ -152,2 +208,3 @@ */ | ||
/** | ||
* @private | ||
* @return {?} | ||
@@ -165,2 +222,3 @@ */ | ||
* on file over add class name | ||
* @private | ||
* @param {?} event | ||
@@ -174,2 +232,3 @@ * @return {?} | ||
* on mouse out remove class name | ||
* @private | ||
* @param {?} event | ||
@@ -208,2 +267,3 @@ * @return {?} | ||
/** | ||
* @private | ||
* @return {?} | ||
@@ -216,6 +276,11 @@ */ | ||
* ControlValueAccessor implementation | ||
* @private | ||
* @return {?} | ||
*/ | ||
connectToForm() { | ||
this.subscriptions.push(this.control.valueChanges.subscribe((v) => this.onChange(v))); | ||
this.subscriptions.push(this.control.valueChanges.subscribe((/** | ||
* @param {?} v | ||
* @return {?} | ||
*/ | ||
(v) => this.onChange(v)))); | ||
} | ||
@@ -299,3 +364,6 @@ /** | ||
provide: NG_VALUE_ACCESSOR, | ||
useExisting: forwardRef(() => FileUploadComponent), | ||
useExisting: forwardRef((/** | ||
* @return {?} | ||
*/ | ||
() => FileUploadComponent)), | ||
multi: true | ||
@@ -347,21 +415,45 @@ } | ||
FileUploadComponent.prototype.listVisible; | ||
/** @type {?} */ | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
FileUploadComponent.prototype.hooks; | ||
/** @type {?} */ | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
FileUploadComponent.prototype.subscriptions; | ||
/** @type {?} */ | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
FileUploadComponent.prototype.onChange; | ||
/** @type {?} */ | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
FileUploadComponent.prototype.onTouch; | ||
/** @type {?} */ | ||
FileUploadComponent.prototype.fileUploadService; | ||
/** @type {?} */ | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
FileUploadComponent.prototype.hostElementRef; | ||
/** @type {?} */ | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
FileUploadComponent.prototype.renderer; | ||
/** @type {?} */ | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
FileUploadComponent.prototype.document; | ||
/** @type {?} */ | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
FileUploadComponent.prototype.cdr; | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmlsZS11cGxvYWQuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6Im5nOi8vQGlwbGFiL25neC1maWxlLXVwbG9hZC8iLCJzb3VyY2VzIjpbImNvbXBvbmVudHMvZmlsZS11cGxvYWQuY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFBQSxPQUFPLEVBQ0gsU0FBUyxFQUNULEtBQUssRUFFTCxVQUFVLEVBQ1YsWUFBWSxFQUNaLFNBQVMsRUFFVCxXQUFXLEVBQ1gsTUFBTSxFQUNOLFdBQVcsR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XZlbnQpOiB2b2lkIHtcclxuICAgICAgICBjb25zdCBpbnB1dCA9IChldmVudC50YXJnZXQpIGFzIEhUTUxJbnB1dEVsZW1lbnQ7XHJcblxyXG4gICAgICAgIGlmICghdGhpcy5jb250cm9sLmRpc2FibGVkKSB7XHJcbiAgICAgICAgICAgIHRoaXMuY29udHJvbC5hZGRGaWxlcyhpbnB1dC5maWxlcyk7XHJcbiAgICAgICAgfVxyXG4gICAgICAgIHRoaXMuY2xlYXJJbnB1dEVsKCk7XHJcbiAgICAgICAgdGhpcy5vblRvdWNoKCk7XHJcbiAgICB9XHJcblxyXG4gICAgcHJpdmF0ZSBjbGVhcklucHV0RWwoKTogdm9pZCB7XHJcbiAgICAgICAgdGhpcy5pbnB1dC5uYXRpdmVFbGVtZW50LnZhbHVlID0gbnVsbDtcclxuICAgIH1cclxuXHJcbiAgICAvKipcclxuICAgICAqIENvbnRyb2xWYWx1ZUFjY2Vzc29yIGltcGxlbWVudGF0aW9uXHJcbiAgICAgKi9cclxuICAgIHByaXZhdGUgY29ubmVjdFRvRm9ybSgpOiB2b2lkIHtcclxuICAgICAgICB0aGlzLnN1YnNjcmlwdGlvbnMucHVzaChcclxuICAgICAgICAgICAgdGhpcy5jb250cm9sLnZhbHVlQ2hhbmdlcy5zdWJzY3JpYmUoKHYpID0+IHRoaXMub25DaGFuZ2UodikpXHJcbiAgICAgICAgKTtcclxuICAgIH1cclxuXHJcbiAgICAgLyoqXHJcbiAgICAgICogbW9kZWwgLT4gdmlldyBjaGFuZ2VzXHJcbiAgICAgICovXHJcbiAgICBwdWJsaWMgd3JpdGVWYWx1ZShmaWxlczogYW55KTogdm9pZCB7XHJcbiAgICAgICAgaWYgKGZpbGVzICE9IG51bGwpIHtcclxuICAgICAgICAgICAgdGhpcy5jb250cm9sLnNldFZhbHVlKGZpbGVzKTtcclxuICAgICAgICB9XHJcbiAgICB9XHJcblxyXG4gICAgcHJpdmF0ZSBvbkNoYW5nZTogKHY6IEFycmF5PEZpbGU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Ck7XHJcbiAgICB9O1xyXG5cclxuICAgIHB1YmxpYyByZWdpc3Rlck9uVG91Y2hlZChmbjogYW55KTogdm9pZCB7XHJcbiAgICAgICAgdGhpcy5vblRvdWNoID0gZm47XHJcbiAgICB9XHJcblxyXG4gICAgcHVibGljIHNldERpc2FibGVkU3RhdGUoaXNEaXNhYmxlZDogYm9vbGVhbik6IHZvaWQge1xyXG4gICAgICAgIHRoaXMuY29udHJvbC5kaXNhYmxlKGlzRGlzYWJsZWQpO1xyXG4gICAgfVxyXG5cclxuICAgIHB1YmxpYyB6b29tQW5pbWF0aW9uRG9uZShldmVudDogQW5pbWF0aW9uRXZlbnQpOiB2b2lkIHtcclxuICAgICAgICBpZiAodGhpcy5jb250cm9sLmlzTGlzdFZpc2libGUgJiYgdGhpcy5jb250cm9sLnNpemUgPiAwKSB7XHJcbiAgICAgICAgICAgIHRoaXMuc2hvd0xpc3QoKTtcclxuICAgICAgICB9IGVsc2Uge1xyXG4gICAgICAgICAgICB0aGlzLmhpZGVMaXN0KCk7XHJcbiAgICAgICAgfVxyXG5cclxuICAgICAgICBpZiAoZXZlbnQuZnJvbVN0YXRlID09PSAnc3RhdGljJyAmJiBldmVudC50b1N0YXRlID09PSAnem9vbU91dCcpIHtcclxuICAgICAgICAgICAgdGhpcy5yZW5kZXJlci5hZGRDbGFzcyh0aGlzLmhvc3RFbGVtZW50UmVmLm5hdGl2ZUVsZW1lbnQsICdoaWRlLXRleHQnKTtcclxuICAgICAgICB9IGVsc2Uge1xyXG4gICAgICAgICAgICB0aGlzLnJlbmRlcmVyLnJlbW92ZUNsYXNzKHRoaXMuaG9zdEVsZW1lbnRSZWYubmF0aXZlRWxlbWVudCwgJ2hpZGUtdGV4dCcpO1xyXG4gICAgICAgIH1cclxuXHJcbiAgICAgICAgaWYoZXZlbnQudG9TdGF0ZSA9PT0gJ3pvb21JbicpIHtcclxuICAgICAgICAgICAgdGhpcy56b29tVGV4dCA9ICdzdGF0aWMnO1xyXG4gICAgICAgIH1cclxuICAgIH1cclxuXHJcbiAgICBwdWJsaWMgYW5pbWF0aW9uTGlzdEZpbmlzaGVkKGV2ZW50OiBBbmltYXRpb25FdmVudCk6IHZvaWQge1xyXG4gICAgICAgIGlmIChldmVudC50b1N0YXRlID09PSAndm9pZCcpIHtcclxuICAgICAgICAgICAgdGhpcy56b29tVGV4dCA9ICd6b29tSW4nO1xyXG4gICAgICAgICAgICB0aGlzLnJlbmRlcmVyLnJlbW92ZUNsYXNzKHRoaXMuaG9zdEVsZW1lbnRSZWYubmF0aXZlRWxlbWVudCwgJ2xpc3QtdmlzaWJsZScpO1xyXG4gICAgICAgIH1cclxuICAgICAgICBpZiAoZXZlbnQuZnJvbVN0YXRlID09PSAndm9pZCcpIHtcclxuICAgICAgICAgICAgdGhpcy56b29tVGV4dCA9ICdzdGF0aWMnO1xyXG4gICAgICAgICAgICB0aGlzLnJlbmRlcmVyLmFkZENsYXNzKHRoaXMuaG9zdEVsZW1lbnRSZWYubmF0aXZlRWxlbWVudCwgJ2xpc3QtdmlzaWJsZScpO1xyXG4gICAgICAgIH1cclxuICAgIH1cclxufVxyXG4iXX0= |
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,missingReturn,uselessCode} checked by tsc | ||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
@@ -52,2 +52,3 @@ import { Directive, forwardRef, Input } from '@angular/core'; | ||
/** | ||
* @private | ||
* @return {?} | ||
@@ -76,3 +77,6 @@ */ | ||
provide: NG_VALIDATORS, | ||
useExisting: forwardRef(() => FileSizeValidator), | ||
useExisting: forwardRef((/** | ||
* @return {?} | ||
*/ | ||
() => FileSizeValidator)), | ||
multi: true | ||
@@ -99,5 +103,11 @@ }], | ||
FileSizeValidator.prototype.maxsize; | ||
/** @type {?} */ | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
FileSizeValidator.prototype.validator; | ||
/** @type {?} */ | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
FileSizeValidator.prototype.onChange; | ||
@@ -145,2 +155,3 @@ } | ||
/** | ||
* @private | ||
* @return {?} | ||
@@ -157,3 +168,6 @@ */ | ||
provide: NG_VALIDATORS, | ||
useExisting: forwardRef(() => FilesLimitValidator), | ||
useExisting: forwardRef((/** | ||
* @return {?} | ||
*/ | ||
() => FilesLimitValidator)), | ||
multi: true | ||
@@ -170,5 +184,11 @@ }], | ||
FilesLimitValidator.prototype.fileslimit; | ||
/** @type {?} */ | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
FilesLimitValidator.prototype.validator; | ||
/** @type {?} */ | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
FilesLimitValidator.prototype.onChange; | ||
@@ -218,2 +238,3 @@ } | ||
/** | ||
* @private | ||
* @return {?} | ||
@@ -230,3 +251,6 @@ */ | ||
provide: NG_VALIDATORS, | ||
useExisting: forwardRef(() => FilesLimitValidator), | ||
useExisting: forwardRef((/** | ||
* @return {?} | ||
*/ | ||
() => FilesLimitValidator)), | ||
multi: true | ||
@@ -243,7 +267,13 @@ }], | ||
FilesAcceptValidator.prototype.accept; | ||
/** @type {?} */ | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
FilesAcceptValidator.prototype.validator; | ||
/** @type {?} */ | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
FilesAcceptValidator.prototype.onChange; | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmFsaWRhdG9ycy5kaXJlY3RpdmUuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AaXBsYWIvbmd4LWZpbGUtdXBsb2FkLyIsInNvdXJjZXMiOlsiZGlyZWN0aXZlcy92YWxpZGF0b3JzLmRpcmVjdGl2ZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0FBQUEsT0FBTyxFQUFFLFNBQVMsRUFBRSxVQUFVLEV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AgICB9XHJcblxyXG4gICAgcHJpdmF0ZSBfY3JlYXRlVmFsaWRhdG9yKCk6IHZvaWQge1xyXG4gICAgICAgIHRoaXMudmFsaWRhdG9yID0gRmlsZVVwbG9hZFZhbGlkYXRvcnMuYWNjZXB0KHRoaXMuYWNjZXB0LnNwbGl0KCcsJykpO1xyXG4gICAgfVxyXG59XHJcbiJdfQ== |
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,missingReturn,uselessCode} checked by tsc | ||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
@@ -70,5 +70,8 @@ /* | ||
if (false) { | ||
/** @type {?} */ | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
FileUploadModule.prototype.injector; | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmlsZS11cGxvYWQubW9kdWxlLmpzIiwic291cmNlUm9vdCI6Im5nOi8vQGlwbGFiL25neC1maWxlLXVwbG9hZC8iLCJzb3VyY2VzIjpbImZpbGUtdXBsb2FkLm1vZHVsZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7OztBQU9BLE9BQU8sRUFBRSxRQUFRLEVBQUUsUUFBUSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQ25ELE9BQU8sRUFBRSxtQkFBbUIsRUFBRSxXQUFXLEVBQUUsTUFBTSxnQkFBZ0IsQ0FBQztBQUNsRSxPQUFPLEVBQUUsWUFBWSxFQUFFLE1BQU0saUJBQWlCLENBQUM7QUFFL0MsT0FBTyxFQUFFLG1CQUFtQixFQUFFLE1BQU0sb0NBQW9DLENBQUM7QUFDekUsT0FBTyxFQUFFLDJCQUEyQixFQUFFLE1BQU0sOENBQThDLENBQUM7QUFDM0YsT0FBTyxFQUFFLHVCQUF1QixFQUFFLE1BQU0seUNBQXlDLENBQUM7QUFDbEYsT0FBT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FZhbGlkYXRvcixcclxuICAgICAgICBGaWxlc0FjY2VwdFZhbGlkYXRvclxyXG4gICAgXSxcclxuICAgIGVudHJ5Q29tcG9uZW50czogW1xyXG4gICAgICAgIEZpbGVVcGxvYWRDb21wb25lbnRcclxuICAgIF1cclxufSlcclxuZXhwb3J0IGNsYXNzIEZpbGVVcGxvYWRNb2R1bGUge1xyXG5cclxuICAgIGNvbnN0cnVjdG9yKHByaXZhdGUgaW5qZWN0b3I6IEluamVjdG9yKSB7XHJcbiAgICAgICAgLy8gY29uc3QgZmlsZVVwbG9hZEVsZW1lbnQgPSBjcmVhdGVDdXN0b21FbGVtZW50KEZpbGVVcGxvYWRDb21wb25lbnQsIHsgaW5qZWN0b3IgfSk7XHJcbiAgICAgICAgLy8gY3VzdG9tRWxlbWVudHMuZGVmaW5lKCdmaWxlLXVwbG9hZCcsIGZpbGVVcGxvYWRFbGVtZW50KTtcclxuICAgIH1cclxuXHJcbiAgICBuZ0RvQm9vdHN0cmFwKCkge31cclxufVxyXG4iXX0= |
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,missingReturn,uselessCode} checked by tsc | ||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
@@ -58,2 +58,3 @@ import { BehaviorSubject, Subject } from 'rxjs'; | ||
/** | ||
* @private | ||
* @param {?} validators | ||
@@ -105,2 +106,3 @@ * @return {?} | ||
* when multiple files are uploaded | ||
* @private | ||
* @param {?} files | ||
@@ -110,3 +112,7 @@ * @return {?} | ||
addMultipleFiles(files) { | ||
files.forEach(file => this.files.add(file)); | ||
files.forEach((/** | ||
* @param {?} file | ||
* @return {?} | ||
*/ | ||
file => this.files.add(file))); | ||
this.validate(); | ||
@@ -223,2 +229,3 @@ this.valueChanges.next(Array.from(this.files.values())); | ||
/** | ||
* @private | ||
* @return {?} | ||
@@ -230,3 +237,11 @@ */ | ||
const currentState = this.valid; | ||
this.errors = this.validators.map((validator) => validator(this)).filter((isInvalid) => isInvalid); | ||
this.errors = this.validators.map((/** | ||
* @param {?} validator | ||
* @return {?} | ||
*/ | ||
(validator) => validator(this))).filter((/** | ||
* @param {?} isInvalid | ||
* @return {?} | ||
*/ | ||
(isInvalid) => isInvalid)); | ||
if (currentState !== this.valid) { | ||
@@ -242,13 +257,31 @@ this.statusChanged.next(this.valid ? STATUS.VALID : STATUS.INVALID); | ||
if (false) { | ||
/** @type {?} */ | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
FileUploadControl.prototype.files; | ||
/** @type {?} */ | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
FileUploadControl.prototype.listVisible; | ||
/** @type {?} */ | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
FileUploadControl.prototype.status; | ||
/** @type {?} */ | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
FileUploadControl.prototype.errors; | ||
/** @type {?} */ | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
FileUploadControl.prototype.validators; | ||
/** @type {?} */ | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
FileUploadControl.prototype.statusChanged; | ||
@@ -274,2 +307,2 @@ /** | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29udHJvbC5jbGFzcy5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BpcGxhYi9uZ3gtZmlsZS11cGxvYWQvIiwic291cmNlcyI6WyJoZWxwZXJzL2NvbnRyb2wuY2xhc3MudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQUFBLE9BQU8sRUFBRSxlQUFlLEVBQUUsT0FBTyxFQUFjLE1BQU0sTUFBTSxDQUFDO0FBRTVELE9BQU8sRUFBRSxhQUFhLEVBQUUsTUFBTSxpQkFBaUIsQ0FBQzs7O0lBRzVDLFVBQU87SUFDUCxRQUFLO0lBQ0wsV0FBUTs7Ozs7O0FBR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Q2hhbmdlZC5uZXh0KHRoaXMudmFsaWQgPyBTVEFUVVMuVkFMSUQgOiBTVEFUVVMuSU5WQUxJRCk7XHJcbiAgICAgICAgICAgIH1cclxuICAgICAgICB9IGVsc2Uge1xyXG4gICAgICAgICAgICB0aGlzLmVycm9ycy5sZW5ndGggPSAwO1xyXG4gICAgICAgIH1cclxuICAgIH1cclxufVxyXG4iXX0= |
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,missingReturn,uselessCode} checked by tsc | ||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
@@ -5,0 +5,0 @@ /** @enum {number} */ |
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,missingReturn,uselessCode} checked by tsc | ||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
@@ -12,2 +12,2 @@ /** | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaGVscGVycy5jbGFzcy5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BpcGxhYi9uZ3gtZmlsZS11cGxvYWQvIiwic291cmNlcyI6WyJoZWxwZXJzL2hlbHBlcnMuY2xhc3MudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7QUFBQSxNQUFNLFVBQVUsYUFBYSxDQUFDLEtBQVU7SUFDcEMsT0FBTyxLQUFLLElBQUksSUFBSSxJQUFJLEtBQUssQ0FBQyxNQUFNLEtBQUssQ0FBQyxDQUFDO0FBQy9DLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgZnVuY3Rpb24gSXNOdWxsT3JFbXB0eSh2YWx1ZTogYW55KTogYm9vbGVhbiB7XHJcbiAgICByZXR1cm4gdmFsdWUgPT0gbnVsbCB8fCB2YWx1ZS5sZW5ndGggPT09IDA7XHJcbn0iXX0= | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaGVscGVycy5jbGFzcy5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BpcGxhYi9uZ3gtZmlsZS11cGxvYWQvIiwic291cmNlcyI6WyJoZWxwZXJzL2hlbHBlcnMuY2xhc3MudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7QUFBQSxNQUFNLFVBQVUsYUFBYSxDQUFDLEtBQVU7SUFDcEMsT0FBTyxLQUFLLElBQUksSUFBSSxJQUFJLEtBQUssQ0FBQyxNQUFNLEtBQUssQ0FBQyxDQUFDO0FBQy9DLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgZnVuY3Rpb24gSXNOdWxsT3JFbXB0eSh2YWx1ZTogYW55KTogYm9vbGVhbiB7XHJcbiAgICByZXR1cm4gdmFsdWUgPT0gbnVsbCB8fCB2YWx1ZS5sZW5ndGggPT09IDA7XHJcbn1cclxuIl19 |
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,missingReturn,uselessCode} checked by tsc | ||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
@@ -18,6 +18,12 @@ import { IsNullOrEmpty } from './helpers.class'; | ||
*/ | ||
const checkFileSize = (file, maxSize, minSize = 0) => { | ||
const checkFileSize = (/** | ||
* @param {?} file | ||
* @param {?} maxSize | ||
* @param {?=} minSize | ||
* @return {?} | ||
*/ | ||
(file, maxSize, minSize = 0) => { | ||
return (!IsNullOrEmpty(maxSize) && file.size > maxSize) || file.size < minSize ? | ||
{ maxSize, minSize, actual: file.size, file } : null; | ||
}; | ||
}); | ||
const ɵ0 = checkFileSize; | ||
@@ -33,3 +39,8 @@ /** @type {?} */ | ||
*/ | ||
const checkFileType = (file, allowedTypes) => { | ||
const checkFileType = (/** | ||
* @param {?} file | ||
* @param {?} allowedTypes | ||
* @return {?} | ||
*/ | ||
(file, allowedTypes) => { | ||
/** @type {?} */ | ||
@@ -45,10 +56,14 @@ const fileExtension = `.${file.name.split('.').pop()}`; | ||
return { allowedTypes, actual: file.type, file }; | ||
}; | ||
}); | ||
const ɵ1 = checkFileType; | ||
/** @type {?} */ | ||
const checkValueType = (value) => { | ||
const checkValueType = (/** | ||
* @param {?} value | ||
* @return {?} | ||
*/ | ||
(value) => { | ||
if (!Array.isArray(value)) { | ||
throw Error(`FormControl.setValue was provided with wrong argument type, ${value} was provided instead Array<File>`); | ||
} | ||
}; | ||
}); | ||
const ɵ2 = checkValueType; | ||
@@ -65,3 +80,7 @@ // @dynamic | ||
static fileSize(maxSize) { | ||
return (control) => { | ||
return (/** | ||
* @param {?} control | ||
* @return {?} | ||
*/ | ||
(control) => { | ||
/** @type {?} */ | ||
@@ -74,7 +93,15 @@ const files = control.value; | ||
/** @type {?} */ | ||
const toLargeFiles = files.map((file) => checkFileSize(file, maxSize)) | ||
.filter((error) => error); | ||
const toLargeFiles = files.map((/** | ||
* @param {?} file | ||
* @return {?} | ||
*/ | ||
(file) => checkFileSize(file, maxSize))) | ||
.filter((/** | ||
* @param {?} error | ||
* @return {?} | ||
*/ | ||
(error) => error)); | ||
return toLargeFiles.length > 0 ? | ||
{ 'fileSize': toLargeFiles } : null; | ||
}; | ||
}); | ||
} | ||
@@ -88,3 +115,7 @@ /** | ||
static sizeRange({ minSize, maxSize }) { | ||
return (control) => { | ||
return (/** | ||
* @param {?} control | ||
* @return {?} | ||
*/ | ||
(control) => { | ||
/** @type {?} */ | ||
@@ -97,7 +128,15 @@ const files = control.value; | ||
/** @type {?} */ | ||
const sizeMismatch = files.map((file) => checkFileSize(file, maxSize, minSize)) | ||
.filter((error) => error); | ||
const sizeMismatch = files.map((/** | ||
* @param {?} file | ||
* @return {?} | ||
*/ | ||
(file) => checkFileSize(file, maxSize, minSize))) | ||
.filter((/** | ||
* @param {?} error | ||
* @return {?} | ||
*/ | ||
(error) => error)); | ||
return sizeMismatch.length > 0 ? | ||
{ 'sizeRange': sizeMismatch } : null; | ||
}; | ||
}); | ||
} | ||
@@ -111,3 +150,7 @@ /** | ||
static filesLimit(numFiles) { | ||
return (control) => { | ||
return (/** | ||
* @param {?} control | ||
* @return {?} | ||
*/ | ||
(control) => { | ||
/** @type {?} */ | ||
@@ -121,3 +164,3 @@ const files = control.value; | ||
{ 'filesLimit': { 'max': numFiles, 'actual': files.length } } : null; | ||
}; | ||
}); | ||
} | ||
@@ -143,3 +186,7 @@ /** | ||
static accept(allowedFileTypes) { | ||
return (control) => { | ||
return (/** | ||
* @param {?} control | ||
* @return {?} | ||
*/ | ||
(control) => { | ||
/** @type {?} */ | ||
@@ -152,10 +199,18 @@ const files = control.value; | ||
/** @type {?} */ | ||
const notAllowedFiles = files.map((file) => checkFileType(file, allowedFileTypes)) | ||
.filter((error) => error); | ||
const notAllowedFiles = files.map((/** | ||
* @param {?} file | ||
* @return {?} | ||
*/ | ||
(file) => checkFileType(file, allowedFileTypes))) | ||
.filter((/** | ||
* @param {?} error | ||
* @return {?} | ||
*/ | ||
(error) => error)); | ||
return notAllowedFiles.length > 0 ? | ||
{ 'fileTypes': notAllowedFiles } : null; | ||
}; | ||
}); | ||
} | ||
} | ||
export { ɵ0, ɵ1, ɵ2 }; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmFsaWRhdG9ycy5jbGFzcy5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BpcGxhYi9uZ3gtZmlsZS11cGxvYWQvIiwic291cmNlcyI6WyJoZWxwZXJzL3ZhbGlkYXRvcnMuY2xhc3MudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQUNBLE9BQU8sRUFBRSxhQUFhLEVBQUUsTUFBTSxpQkFBaUIsQ0FBQzs7OztBQUdoRCxzQ0FFQzs7OztBQUVELGlDQUVDOzs7OztNQUtLLGFBQWEsR0FBRyxDQ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pKSB7IHJldHVybiBudWxsOyB9XHJcbiAgICAgICAgICAgIGNoZWNrVmFsdWVUeXBlKGZpbGVzKTtcclxuXHJcbiAgICAgICAgICAgIGNvbnN0IHNpemVNaXNtYXRjaCA9IGZpbGVzLm1hcCgoZmlsZSkgPT4gY2hlY2tGaWxlU2l6ZShmaWxlLCBtYXhTaXplLCBtaW5TaXplKSlcclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIC5maWx0ZXIoKGVycm9yKSA9PiBlcnJvcik7XHJcblxyXG4gICAgICAgICAgICByZXR1cm4gc2l6ZU1pc21hdGNoLmxlbmd0aCA+IDAgP1xyXG4gICAgICAgICAgICAgICAgICAgIHsnc2l6ZVJhbmdlJzogc2l6ZU1pc21hdGNofSA6IG51bGw7XHJcbiAgICAgICAgfTtcclxuICAgIH1cclxuXHJcbiAgICAvKipcclxuICAgICAqIHZhbGlkYXRvciB0aGF0IHJlcXVpcmVzIGNvbnRyb2wgdG8gaGF2ZSBsaW1pdCBvbiBmaWxlcyBudW1iZXJcclxuICAgICAqIEBkeW5hbWljXHJcbiAgICAgKi9cclxuICAgIHB1YmxpYyBzdGF0aWMgZmlsZXNMaW1pdChudW1GaWxlczogbnVtYmVyKTogVmFsaWRhdG9yRm4ge1xyXG4gICAgICAgIHJldHVybiAoY29udHJvbDogQWJzdHJhY3RDb250cm9sIHwgRmlsZVVwbG9hZENvbnRyb2wpOiBWYWxpZGF0aW9uRXJyb3JzID0+IHtcclxuICAgICAgICAgICAgY29uc3QgZmlsZXM6IEFycmF5PEZpbGU+ID0gY29udHJvbC52YWx1ZTtcclxuICAgICAgICAgICAgaWYgKElzTnVsbE9yRW1wdHkoZmlsZXMpKSB7IHJldHVybiBudWxsOyB9XHJcbiAgICAgICAgICAgIGNoZWNrVmFsdWVUeXBlKGZpbGVzKTtcclxuXHJcbiAgICAgICAgICAgIHJldHVybiBmaWxlcy5sZW5ndGggPiBudW1GaWxlcyA/XHJcbiAgICAgICAgICAg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ZV9leHRlbnNpb24sIGF1ZGlvLyosIHZpZGVvLyosIGltYWdlLyosIG1lZGlhX3R5cGVdKWBcclxuICAgICAqIEBkeW5hbWljXHJcbiAgICAgKi9cclxuICAgIHB1YmxpYyBzdGF0aWMgYWNjZXB0KGFsbG93ZWRGaWxlVHlwZXM6IEFycmF5PHN0cmluZz4pIHtcclxuICAgICAgICByZXR1cm4gKGNvbnRyb2w6IEFic3RyYWN0Q29udHJvbCB8IEZpbGVVcGxvYWRDb250cm9sKTogVmFsaWRhdGlvbkVycm9ycyA9PiB7XHJcbiAgICAgICAgICAgIGNvbnN0IGZpbGVzOiBBcnJheTxGaWxlPiA9IGNvbnRyb2wudmFsdWU7XHJcbiAgICAgICAgICAgIGlmIChJc051bGxPckVtcHR5KGZpbGVzKSkgeyByZXR1cm4gbnVsbDsgfVxyXG4gICAgICAgICAgICBjaGVja1ZhbHVlVHlwZShmaWxlcyk7XHJcblxyXG4gICAgICAgICAgICBjb25zdCBub3RBbGxvd2VkRmlsZXMgPSBmaWxlcy5tYXAoKGZpbGUpID0+IGNoZWNrRmlsZVR5cGUoZmlsZSwgYWxsb3dlZEZpbGVUeXBlcykpXHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAuZmlsdGVyKChlcnJvcikgPT4gZXJyb3IpO1xyXG5cclxuICAgICAgICAgICAgcmV0dXJuIG5vdEFsbG93ZWRGaWxlcy5sZW5ndGggPiAwID9cclxuICAgICAgICAgICAgICAgIHsnZmlsZVR5cGVzJzogbm90QWxsb3dlZEZpbGVzfSA6IG51bGw7XHJcbiAgICAgICAgfTtcclxuICAgIH1cclxuXHJcbn1cclxuIl19 | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmFsaWRhdG9ycy5jbGFzcy5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BpcGxhYi9uZ3gtZmlsZS11cGxvYWQvIiwic291cmNlcyI6WyJoZWxwZXJzL3Zhb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ZXR1cm4gKGNvbnRyb2w6IEFic3RyYWN0Q29udHJvbCB8IEZpbGVVcGxvYWRDb250cm9sKToge3NpemVSYW5nZTogQXJyYXk8VmFsaWRhdGlvbkVycm9ycz59ID0+IHtcclxuICAgICAgICAgICAgY29uc3QgZmlsZXM6IEFycmF5PEZpbGU+ID0gY29udHJvbC52YWx1ZTtcclxuICAgICAgICAgICAgaWYgKElzTnVsbE9yRW1wdHkoZmlsZXMpKSB7IHJldHVybiBudWxsOyB9XHJcbiAgICAgICAgICAgIGNoZWNrVmFsdWVUeXBlKGZpbGVzKTtcclxuXHJcbiAgICAgICAgICAgIGNvbnN0IHNpemVNaXNtYXRjaCA9IGZpbGVzLm1hcCgoZmlsZSkgPT4gY2hlY2tGaWxlU2l6ZShmaWxlLCBtYXhTaXplLCBtaW5TaXplKSlcclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIC5maWx0ZXIoKGVycm9yKSA9PiBlcnJvcik7XHJcblxyXG4gICAgICAgICAgICByZXR1cm4gc2l6ZU1pc21hdGNoLmxlbmd0aCA+IDAgP1xyXG4gICAgICAgICAgICAgICAgICAgIHsnc2l6ZVJhbmdlJzogc2l6ZU1pc21hdGNofSA6IG51bGw7XHJcbiAgICAgICAgfTtcclxuICAgIH1cclxuXHJcbiAgICAvKipcclxuICAgICAqIHZhbGlkYXRvciB0aGF0IHJlcXVpcmVzIGNvbnRyb2wgdG8gaGF2ZSBsaW1pdCBvbiBmaWxlcyBudW1iZXJcclxuICAgICAqIEBkeW5hbWljXHJcbiAgICAgKi9cclxuICAgIHB1YmxpYyBzdGF0aWMgZmlsZXNMaW1pdChudW1GaWxlczogbnVtYmVyKTogVmFsaWRhdG9yRm4ge1xyXG4gICAgICAgIHJldHVybiAoY29udHJvbDogQWJzdHJhY3RDb250cm9sIHwgRmlsZVVwbG9hZENvbnRyb2wpOiBWYWxpZGF0aW9uRXJyb3JzID0+IHtcclxuICAgICAgICAgICAgY29uc3QgZmlsZXM6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ZEZpbGVzfSA6IG51bGw7XHJcbiAgICAgICAgfTtcclxuICAgIH1cclxuXHJcbn1cclxuIl19 |
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,missingReturn,uselessCode} checked by tsc | ||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
@@ -5,0 +5,0 @@ /** |
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,missingReturn,uselessCode} checked by tsc | ||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
export { FileUploadControl, FileUploadValidators, FileUploadTypes, FileUploadModule } from './file-upload.module'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljX2FwaS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BpcGxhYi9uZ3gtZmlsZS11cGxvYWQvIiwic291cmNlcyI6WyJwdWJsaWNfYXBpLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFBQSwyRkFBYyxzQkFBc0IsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vZmlsZS11cGxvYWQubW9kdWxlJztcclxuIl19 |
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,missingReturn,uselessCode} checked by tsc | ||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
@@ -21,3 +21,3 @@ import { Injectable, Renderer2 } from '@angular/core'; | ||
const div = this.renderer.createElement('div'); | ||
return (('draggable' in div) || ('ondragstart' in div && 'ondrop' in div)) && FormData && !!FileReader; | ||
return (('draggable' in div) || ('ondragstart' in div && 'ondrop' in div)); | ||
} | ||
@@ -43,3 +43,7 @@ /** | ||
getFileType(file) { | ||
return Object.keys(FileUploadTypes).find((key) => FileUploadTypes[key] === file.type); | ||
return Object.keys(FileUploadTypes).find((/** | ||
* @param {?} key | ||
* @return {?} | ||
*/ | ||
(key) => FileUploadTypes[key] === file.type)); | ||
} | ||
@@ -55,7 +59,13 @@ } | ||
if (false) { | ||
/** @type {?} */ | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
FileUploadService.prototype.extensions; | ||
/** @type {?} */ | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
FileUploadService.prototype.renderer; | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmlsZS11cGxvYWQuc2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BpcGxhYi9uZ3gtZmlsZS11cGxvYWQvIiwic291cmNlcyI6WyJzZXJ2aWNlcy9maWxlLXVwbG9hZC5zZXJ2aWNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFBQSxPQUFPLEVBQUUsVUFBVSxFQUFFLFNBQVMsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUN0RCxPQUFPLEVBQUUsZUFBZSxFQUFFLE1BQU0sK0JBQStCLENBQUM7QUFHaEUsTUFBTSxPQUFPLGlCQUFpQjs7OztJQUkxQixZQUFvQixRQUFtQjtRQUFuQixhQUFRLEdBQVIsUUFBUSxDQUFXO1FBRi9CLGVBQVUsR0FBd0MsQ0FBQyxPQUFPLEVBQUUsSUFBSSxFQUFFLElBQUksRUFBRSxJQUFJLENBQUMsQ0FBQTtJQUdyRixDQUFDOzs7O0lBRU0sdUJBQXVCOztjQUNwQixHQUFHLEdBQUcsSUFBSSxDQUFDLFFBQVEsQ0FBQyxhQUFhLENBQUMsS0FBSyxDQUFDO1FBQzlDLE9BQU8sQ0FBQyxDQUFDLFdBQVcsSUFBSSxHQUFHLENBQUMsSUFBSSxDQUFDLGFBQWEsSUFBSSxHQUFHLElBQUksUUFBUSxJQUFJLEdBQUcsQ0FBQy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** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,missingReturn,uselessCode} checked by tsc | ||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
@@ -5,0 +5,0 @@ import { animate, transition, trigger, style, query, stagger } from '@angular/animations'; |
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,missingReturn,uselessCode} checked by tsc | ||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
@@ -5,0 +5,0 @@ import { animate, transition, trigger, style, query, stagger } from '@angular/animations'; |
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,missingReturn,uselessCode} checked by tsc | ||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
@@ -22,5 +22,8 @@ import { Input, ElementRef, HostListener, Renderer2, HostBinding, Inject, ViewChild, ContentChild, TemplateRef, Component } from '@angular/core'; | ||
this.subscriptions = []; | ||
this.onTouch = function () { | ||
this.onTouch = (/** | ||
* @return {?} | ||
*/ | ||
function () { | ||
_this.renderer.addClass(_this.hostElementRef.nativeElement, TOUCHED); | ||
}; | ||
}); | ||
} | ||
@@ -57,5 +60,13 @@ /** | ||
function () { | ||
this.hooks.forEach(function (hook) { return hook(); }); | ||
this.hooks.forEach((/** | ||
* @param {?} hook | ||
* @return {?} | ||
*/ | ||
function (hook) { return hook(); })); | ||
this.hooks.length = 0; | ||
this.subscriptions.forEach(function (subscription) { return subscription.unsubscribe(); }); | ||
this.subscriptions.forEach((/** | ||
* @param {?} subscription | ||
* @return {?} | ||
*/ | ||
function (subscription) { return subscription.unsubscribe(); })); | ||
this.subscriptions.length = 0; | ||
@@ -84,5 +95,7 @@ }; | ||
/** | ||
* @private | ||
* @return {?} | ||
*/ | ||
FileUploadAttributeComponent.prototype.setEvents = /** | ||
* @private | ||
* @return {?} | ||
@@ -92,24 +105,62 @@ */ | ||
var _this = this; | ||
['drag', 'dragstart', 'dragend', 'dragover', 'dragenter', 'dragleave', 'drop'].forEach(function (eventName) { | ||
_this.hooks.push(_this.renderer.listen(_this.document, eventName, function (event) { return _this.preventDragEvents(event); })); | ||
}); | ||
['dragover', 'dragenter'].forEach(function (eventName) { | ||
_this.hooks.push(_this.renderer.listen(_this.hostElementRef.nativeElement, eventName, function (event) { return _this.onDragOver(event); })); | ||
}); | ||
['dragleave', 'dragend', 'drop'].forEach(function (eventName) { | ||
_this.hooks.push(_this.renderer.listen(_this.hostElementRef.nativeElement, eventName, function (event) { | ||
['drag', 'dragstart', 'dragend', 'dragover', 'dragenter', 'dragleave', 'drop'].forEach((/** | ||
* @param {?} eventName | ||
* @return {?} | ||
*/ | ||
function (eventName) { | ||
_this.hooks.push(_this.renderer.listen(_this.document, eventName, (/** | ||
* @param {?} event | ||
* @return {?} | ||
*/ | ||
function (event) { return _this.preventDragEvents(event); }))); | ||
})); | ||
['dragover', 'dragenter'].forEach((/** | ||
* @param {?} eventName | ||
* @return {?} | ||
*/ | ||
function (eventName) { | ||
_this.hooks.push(_this.renderer.listen(_this.hostElementRef.nativeElement, eventName, (/** | ||
* @param {?} event | ||
* @return {?} | ||
*/ | ||
function (event) { return _this.onDragOver(event); }))); | ||
})); | ||
['dragleave', 'dragend', 'drop'].forEach((/** | ||
* @param {?} eventName | ||
* @return {?} | ||
*/ | ||
function (eventName) { | ||
_this.hooks.push(_this.renderer.listen(_this.hostElementRef.nativeElement, eventName, (/** | ||
* @param {?} event | ||
* @return {?} | ||
*/ | ||
function (event) { | ||
if (_this.control.disabled && eventName === 'dragleave' || eventName !== 'dragleave') { | ||
_this.onDragLeave(event); | ||
} | ||
})); | ||
}); | ||
['dragleave'].forEach(function (eventName) { | ||
_this.hooks.push(_this.renderer.listen(_this.overlay.nativeElement, eventName, function (event) { return _this.onDragLeave(event); })); | ||
}); | ||
this.subscriptions.push(this.control.statusChanges.subscribe(function (status) { return _this.checkAndMarkAsDisabled(); })); | ||
}))); | ||
})); | ||
['dragleave'].forEach((/** | ||
* @param {?} eventName | ||
* @return {?} | ||
*/ | ||
function (eventName) { | ||
_this.hooks.push(_this.renderer.listen(_this.overlay.nativeElement, eventName, (/** | ||
* @param {?} event | ||
* @return {?} | ||
*/ | ||
function (event) { return _this.onDragLeave(event); }))); | ||
})); | ||
this.subscriptions.push(this.control.statusChanges.subscribe((/** | ||
* @param {?} status | ||
* @return {?} | ||
*/ | ||
function (status) { return _this.checkAndMarkAsDisabled(); }))); | ||
}; | ||
/** | ||
* @private | ||
* @return {?} | ||
*/ | ||
FileUploadAttributeComponent.prototype.checkAndMarkAsDisabled = /** | ||
* @private | ||
* @return {?} | ||
@@ -126,2 +177,3 @@ */ | ||
/** | ||
* @private | ||
* @param {?} event | ||
@@ -131,2 +183,3 @@ * @return {?} | ||
FileUploadAttributeComponent.prototype.preventDragEvents = /** | ||
* @private | ||
* @param {?} event | ||
@@ -144,2 +197,3 @@ * @return {?} | ||
* on file over add class name | ||
* @private | ||
* @param {?} event | ||
@@ -150,2 +204,3 @@ * @return {?} | ||
* on file over add class name | ||
* @private | ||
* @param {?} event | ||
@@ -162,2 +217,3 @@ * @return {?} | ||
* on mouse out remove class name | ||
* @private | ||
* @param {?} event | ||
@@ -168,2 +224,3 @@ * @return {?} | ||
* on mouse out remove class name | ||
* @private | ||
* @param {?} event | ||
@@ -227,17 +284,35 @@ * @return {?} | ||
FileUploadAttributeComponent.prototype.templateRef; | ||
/** @type {?} */ | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
FileUploadAttributeComponent.prototype.hooks; | ||
/** @type {?} */ | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
FileUploadAttributeComponent.prototype.subscriptions; | ||
/** @type {?} */ | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
FileUploadAttributeComponent.prototype.onTouch; | ||
/** @type {?} */ | ||
FileUploadAttributeComponent.prototype.fileUploadService; | ||
/** @type {?} */ | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
FileUploadAttributeComponent.prototype.hostElementRef; | ||
/** @type {?} */ | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
FileUploadAttributeComponent.prototype.renderer; | ||
/** @type {?} */ | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
FileUploadAttributeComponent.prototype.document; | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmlsZS11cGxvYWQtYXR0ci5jb21wb25lbnQuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AaXBsYWIvbmd4LWZpbGUtdXBsb2FkLyIsInNvdXJjZXMiOlsiY29tcG9uZW50cy9maWxlLXVwbG9hZC1hdHRyLmNvbXBvbmVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0FBQUEsT0FBTyxFQUNILEtBQUssRUFFTCxVQUFVLEVBQ1YsWUFBWSxFQUNaLFNBQVMsRUFFVCxXQUFXLEVBQ1gsTUFBTSxFQUNOLFNBQVMsRUFDVCxZQUFZLEVBQ1osV0FBVyxFQUNYLFNBQVMsRUFFWixNQUFNLGVBQWUsQ0FBQztBQUN2QixPQUFPLEVBQUUsUUFBUSxFQUFFLE1BQU0saUJBQWlCLENBQUM7QUFFM0MsT0FBTyxFQUFFLGlCQUFpQixFQUFFLE1BQU0sMEJBQTBCLENBQUM7QUFDN0QsT0FBTyxFQUFFLGFBQWEsRUFBRSxNQUFNLDBCQUEwQixDQUFDO0FBQ3pELE9BQU8sRUFBRSxpQkFBaUIsRUFBRSxNQUFNLGlDQUFpQyxDQUFDO0FBQ3BFLE9BQU8sRUFBRSxRQUFRLEVBQUUsT0FBTyxFQUFFLE1BQU0seUJBQXlCLENBQUM7QUFJNUQ7SUFxREksc0NBQ1csaUJBQW9DLEVBQ25DLGNBQTBCLEVBQzFCLFFBQW1CLEVBQ0QsUUFBUTt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gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBzMC45LDAuNiwxLjUsMC42YzAuNiwwLDEuMS0wLjIsMS41LTAuNkM3MS4xLDY5LjIsNzEuMyw2OC43LDcxLjMsNjguMXogTTc1LjUsNjAuN3YxMC42YzAsMC45LTAuMywxLjYtMC45LDIuMlxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBjLTAuNiwwLjYtMS40LDAuOS0yLjIsMC45SDIzLjdjLTAuOSwwLTEuNi0wLjMtMi4yLTAuOWMtMC42LTAuNi0wLjktMS40LTAuOS0yLjJWNjAuN2MwLTAuOSwwLjMtMS42LDAuOS0yLjJcclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgYzAuNi0wLjYsMS40LTAuOSwyLjItMC45aDE0LjFjMC41LDEuMiwxLjIsMi4yLDIuMywzYzEuMSwwLjgsMi4zLDEuMiwzLjcsMS4yaDguNWMxLjMsMCwyLjYtMC40LDMuNy0xLjJjMS4xLTAuOCwxLjktMS44LDIuMy0zXHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGgxNC4xYzAuOSwwLDEuNiwwLjMsMi4yLDAuOUM3NS4yLDU5LjEsNzUuNSw1OS44LDc1LjUsNjAuN3ogTTY0LjgsMzkuM2MtMC40LDAuOS0xLDEuMy0yLDEuM2gtOC41djE0LjhjMCwwLjYtMC4yLDEuMS0wLjYsMS41XHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGMtMC40LDAuNC0wLjksMC42LTEuNSwwLjZoLTguNWMtMC42LDAtMS4xLTAuMi0xLjUtMC42Yy0wLjQtMC40LTAuNi0wLjktMC42LTEuNVY0MC42aC04LjVjLTAuOSwwLTEuNi0wLjQtMi0xLjNcclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgYy0wLjQtMC45LTAuMi0xLjYsMC41LTIuM2wxNC44LTE0LjhjMC40LTAuNCwwLjktMC42LDEuN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PiA9IG51bGw7XHJcblxyXG4gICAgcHJpdmF0ZSBob29rczogQXJyYXk8RnVuY3Rpb24+ID0gW107XHJcblxyXG4gICAgcHJpdmF0ZSBzdWJzY3JpcHRpb25zOiBBcnJheTxTdWJzY3JpcHRpb24+ID0gW107XHJcblxyXG4gICAgY29uc3RydWN0b3IoXHJcbiAgICAgICAgcHVibGljIGZpbGVVcGxvYWRTZXJ2aWNlOiBGaWxlVXBsb2FkU2VydmljZSxcclxuICAgICAgICBwcml2YXRlIGhvc3RFbGVtZW50UmVmOiBFbGVtZW50UmVmLFxyXG4gICAgICAgIHByaXZhdGUgcmVuZGVyZXI6IFJlbmRlcmVyMixcclxuICAgICAgICBASW5qZWN0KERPQ1VNRU5UKSBwcml2YXRlIGRvY3VtZW50XHJcbiAgICApIHt9XHJcblxyXG4gICAgcHVibGljIG5nT25Jbml0KCkge1xyXG4gICAgICAgIGlmIChJc051bGxPckVtcHR5KHRoaXMuY29udHJvbCkpIHtcclxuICAgICAgICAgICAgdGhpcy5jb250cm9sID0gbmV3IEZpbGVVcGxvYWRDb250cm9sKCk7XHJcbiAgICAgICAgfVxyXG4gICAgfVxyXG5cclxuICAgIHB1YmxpYyBuZ0FmdGVyVmlld0luaXQoKTogdm9pZCB7XHJcbiAgICAgICAgaWYgKHRoaXMuZmlsZVVwbG9hZFNlcnZpY2UuaXNGaWxlRHJhZ0Ryb3BBdmFpbGFibGUoKSkge1xyXG4gICAgICAgICAgICB0aGlzLnNldEV2ZW50cygpO1xyXG4gICAgICAgICAgICB0aGlzLmNoZWNrQW5kTWFya0FzRGlzYWJsZWQoKTtcclxuICAgICAgICB9XHJcbiAgICB9XHJcblxyXG4gICAgcHVibGljIG5nT25EZXN0cm95KCk6IHZvaWQge1xyXG4gICAgICAgIHRoaXMuaG9va3MuZm9yRWFjaCgoaG9vaykgPT4gaG9vaygpKTtcclxuICAgICAgICB0aGlzLmhvb2tzLmxlbmd0aCA9IDA7XHJcbiAgICAgICAgdGhpcy5zdW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ICAgICAgICAgICAgdGhpcy5ob29rcy5wdXNoKFxyXG4gICAgICAgICAgICAgICAgdGhpcy5yZW5kZXJlci5saXN0ZW4odGhpcy5ob3N0RWxlbWVudFJlZi5uYXRpdmVFbGVtZW50LCBldmVudE5hbWUsIChldmVudDogYW55KSA9PiB0aGlzLm9uRHJhZ092ZXIoZXZlbnQpKVxyXG4gICAgICAgICAgICApO1xyXG4gICAgICAgIH0pO1xyXG5cclxuICAgICAgICBbJ2RyYWdsZWF2ZScsICdkcmFnZW5kJywgJ2Ryb3AnXS5mb3JFYWNoKChldmVudE5hbWUpID0+IHtcclxuICAgICAgICAgICAgdGhpcy5ob29rcy5wdXNoKFxyXG4gICAgICAgICAgICAgICAgdGhpcy5yZW5kZXJlci5saXN0ZW4odGhpcy5ob3N0RWxlbWVudFJlZi5uYXRpdmVFbGVtZW50LCBldmVudE5hbWUsIChldmVudDogYW55KSA9PiB7XHJcbiAgICAgICAgICAgICAgICAgICAgaWYodGhpcy5jb250cm9sLmRpc2FibGVkICYmIGV2ZW50TmFtZSA9PT0gJ2RyYWdsZWF2ZScgfHwgZXZlbnROYW1lICE9PSAnZHJhZ2xlYXZlJykge1xyXG4gICAgICAgICAgICAgICAgICAgICAgICB0aGlzLm9uRHJhZ0xlYXZlKGV2ZW50KTtcclxuICAgICAgICAgICAgICAgICAgICB9XHJcbiAgICAgICAgICAgICAgICB9KVxyXG4gICAgICAgICAgICApO1xyXG4gICAgICAgIH0pO1xyXG5cclxuICAgICAgICBbJ2RyYWdsZWF2ZSddLmZvckVhY2goKGV2ZW50TmFtZSkgPT4ge1xyXG4gICAgICAgICAgICB0aGlzLmhvb2tzLnB1c2goXHJcbiAgICAgICAgICAgICAgICB0aGlzLnJlbmRlcmVyLmxpc3Rlbih0aGlzLm92ZXJsYXkubmF0aXZlRWxlbWVudCwgZXZlbnROYW1lLCAoZXZlbnQ6IGFueSkgPT4gdGhpcy5vbkRyYWdMZWF2ZShldmVudCkpXHJcbiAgICAgICAgICAg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xuICAgIH1cclxuXHJcbiAgICAvKipcclxuICAgICAqIG9uIG1vdXNlIG91dCByZW1vdmUgY2xhc3MgbmFtZVxyXG4gICAgICovXHJcbiAgICBwcml2YXRlIG9uRHJhZ0xlYXZlKGV2ZW50OiBEcmFnRXZlbnQpOiB2b2lkIHtcclxuICAgICAgICB0aGlzLnJlbmRlcmVyLnJlbW92ZUNsYXNzKHRoaXMuaG9zdEVsZW1lbnRSZWYubmF0aXZlRWxlbWVudCwgRFJBR09WRVIpO1xyXG4gICAgfVxyXG5cclxuICAgIEBIb3N0TGlzdGVuZXIoJ2Ryb3AnLCBbJyRldmVudCddKVxyXG4gICAgcHVibGljIG9uRHJvcChldmVudDogRHJhZ0V2ZW50KTogdm9pZCB7XHJcbiAgICAgICAgaWYgKHRoaXMuY29udHJvbC5kaXNhYmxlZCkge1xyXG4gICAgICAgICAgICByZXR1cm47XHJcbiAgICAgICAgfVxyXG4gICAgICAgIGNvbnN0IGZpbGVzID0gZXZlbnQuZGF0YVRyYW5zZmVyLmZpbGVzO1xyXG4gICAgICAgIHRoaXMuY29udHJvbC5hZGRGaWxlcyhmaWxlcyk7XHJcbiAgICAgICAgdGhpcy5vblRvdWNoKCk7XHJcbiAgICB9XHJcblxyXG4gICAgcHJpdmF0ZSBvblRvdWNoOiAoKSA9PiB2b2lkID0gKCkgPT4ge1xyXG4gICAgICAgIHRoaXMucmVuZGVyZXIuYWRkQ2xhc3ModGhpcy5ob3N0RWxlbWVudFJlZi5uYXRpdmVFbGVtZW50LCBUT1VDSEVEKTtcclxuICAgIH07XHJcblxyXG59Il19 | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmlsZS11cGxvYWQtYXR0ci5jb21wb25lbnQuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AaXBsYWIvbmd4LWZpbGUtdXBsb2FkLyIsInNvdXJjZXMiOlsiY29tcG9uZW50cy9maWxlLXVwbG9hZC1hdHRyLmNvbXBvbm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Gl2IGNsYXNzPVwiaWNvblwiPlxyXG4gICAgICAgICAgICAgICAgICAgICAgICA8c3ZnIHZpZXdCb3g9XCIwIDAgOTYgOTZcIj5cclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxnPlxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxwYXRoIGQ9XCJNNjIuOCw2OC4xYzAtMC42LTAuMi0xLjEtMC42LTEuNWMtMC40LTAuNC0wLjktMC42LTEuNS0wLjZzLTEuMSwwLjItMS41LDAuNlxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBjLTAuNCwwLjQtMC42LDAuOS0wLjYsMS41YzAsMC42LDAuMiwxLjEsMC42LDEuNWMwLjQsMC40LDAuOSwwLjYsMS41LDAuNnMxLjEtMC4yLDEuNS0wLjZTNjIuOCw2OC43LDYyLjgsNjguMXogTTcxLjMsNjguMVxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBjMC0wLjYtMC4yLTEuMS0wLjYtMS41Yy0wLjQtMC40LTAuOS0wLjYtMS41LTAuNmMtMC42LDAtMS4xLDAuMi0xLjUsMC42QzY3LjIsNjcsNjcsNjcuNSw2Nyw2OC4xYzAsMC42LDAuMiwxLjEsMC42LDEuNVxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBzMC45LDAuNiwxLjUsMC42YzAuNiwwLDEuMS0wLjIsMS41LTAuNkM3MS4xLDY5LjIsNzEuMyw2OC43LDcxLjMsNjguMXogTTc1LjUsNjAuN3YxMC42YzAsMC45LTAuMywxLjYtMC45LDIuMlxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBjLTAuNiwwLjYtMS40LDAuOS0yLjIsMC45SDIzLjdjLTAuOSwwLTEuNi0wLjMtMi4yLTAuOWMtMC42LTAuNi0wLjktMS40LTAuOS0yLjJWNjAuN2MwLTAuOSwwLjMtMS42LDAuOS0yLjJcclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgYzAuNi0wLjYsMS40LTAuOSwyLjItMC45aDE0LjFjMC41LDEuMiwxLjIsMi4yLDIuMywzYzEuMSwwLjgsMi4zLDEuMiwzLjcsMS4yaDguNWMxLjMsMCwyLjYtMC40LDMuNy0xLjJjMS4xLTAuOCwxLjktMS44LDIuMy0zXHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGgxNC4xYzAuOSwwLDEuNiwwLjMsMi4yLDAuOUM3NS4yLDU5LjEsNzUuNSw1OS44LDc1LjUsNjAuN3ogTTY0LjgsMzkuM2MtMC40LDAuOS0xLDEuMy0yLDEuM2gtOC41djE0LjhjMCwwLjYtMC4yLDEuMS0wLjYsMS41XHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGMtMC40LDAuNC0wLjksMC42LTEuNSwwLjZoLTguNWMtMC42LDAtMS4xLTAuMi0xLjUtMC42Yy0wLjQtMC40LTAuNi0wLjktMC42LTEuNVY0MC42aC04LjVjLTAuOSwwLTEuNi0wLjQtMi0xLjNcclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgYy0wLjQtMC45LTAuMi0xLjYsMC41LTIuM2wxNC44LTE0LjhjMC40LTAuNCwwLjktMC42LDEuNS0wLjZzMS4xLDAuMiwxLjUsMC42TDY0LjMsMzdDNjUsMzcuNyw2NS4xLDM4LjQsNjQuOCwzOS4zelwiLz5cclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvZz5cclxuICAgICAgICAgICAgICAgICAgICAgICAgPC9zdmc+XHJcbiAgICAgICAgICAgICAgICAgICAgPC9kaXY+XHJcbiAgICAgICAgICAgICAgICBcclxuICAgICAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzPVwidXBsb2FkLXRleHRcIj5cclxuICAgICAgICAgICAgICAgICAgICAgICAgPGI+RHJvcDwvYj4gaXQgaGVyZVxyXG4gICAgICAgICAgICAgICAgICAgIDwvZGl2PlxyXG4gICAgIC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bmRpbmcoJ2NsYXNzLm5nLWludmFsaWQnKVxyXG4gICAgcHVibGljIGdldCBpc0ludmFsaWQoKTogYm9vbGVhbiB7XHJcbiAgICAgICAgcmV0dXJuICF0aGlzLmNvbnRyb2wuZGlzYWJsZWQgJiYgdGhpcy5jb250cm9sLmludmFsaWQ7XHJcbiAgICB9XHJcblxyXG4gICAgcHJpdmF0ZSBzZXRFdmVudHMoKTogdm9pZCB7XHJcbiAgICAgICAgWydkcmFnJywgJ2RyYWdzdGFydCcsICdkcmFnZW5kJywgJ2RyYWdvdmVyJywgJ2RyYWdlbnRlcicsICdkcmFnbGVhdmUnLCAnZHJvcCddLmZvckVhY2goKGV2ZW50TmFtZSkgPT4ge1xyXG4gICAgICAgICAgICB0aGlzLmhvb2tzLnB1c2goXHJcbiAgICAgICAgICAgICAgICB0aGlzLnJlbmRlcmVyLmxpc3Rlbih0aGlzLmRvY3VtZW50LCBldmVudE5hbWUsIChldmVudDogYW55KSA9PiB0aGlzLnByZXZlbnREcmFnRXZlbnRzKGV2ZW50KSlcclxuICAgICAgICAgICAgKTtcclxuICAgICAgICB9KTtcclxuXHJcbiAgICAgICAgWydkcmFnb3ZlcicsICdkcmFnZW50ZXInXS5mb3JFYWNoKChldmVudE5hbWUpID0+IHtcclxuICAgICAgICAgICAgdGhpcy5ob29rcy5wdXNoKFxyXG4gICAgICAgICAgICAgICAgdGhpcy5yZW5kZXJlci5saXN0ZW4odGhpcy5ob3N0RWxlbWVudFJlZi5uYXRpdmVFbGVtZW50LCBldmVudE5hbWUsIChldmVudDogYW55KSA9PiB0aGlzLm9uRHJhZ092ZXIoZXZlbnQpKVxyXG4gICAgICAgICAgICApO1xyXG4gICAgICAgIH0pO1xyXG5cclxuICAgICAgICBbJ2RyYWdsZWF2ZScsICdkcmFnZW5kJywgJ2Ryb3AnXS5mb3JFYWNoKChldmVudE5hbWUpID0+IHtcclxuICAgICAgICAgICAgdGhpcy5ob29rcy5wdXNoKFxyXG4gICAgICAgICAgICAgICAgdGhpcy5yZW5kZXJlci5saXN0ZW4odGhpcy5ob3N0RWxlbWVudFJlZi5uYXRpdmVFbGVtZW50LCBldmVudE5hbWUsIChldmVudDogYW55KSA9PiB7XHJcbiAgICAgICAgICAgICAgICAgICAgaWYodGhpcy5jb250cm9sLmRpc2FibGVkICYmIGV2ZW50TmFtZSA9PT0gJ2RyYWdsZWF2ZScgfHwgZXZlbnROYW1lICE9PSAnZHJhZ2xlYXZlJykge1xyXG4gICAgICAgICAgICAgICAgICAgICAgICB0aGlzLm9uRHJhZ0xlYXZlKGV2ZW50KTtcclxuICAgICAgICAgICAgICAgICAgICB9XHJcbiAgICAgICAgICAgICAgICB9KVxyXG4gICAgICAgICAgICApO1xyXG4gICAgICAgIH0pO1xyXG5cclxuICAgICAgICBbJ2RyYWdsZWF2ZSddLmZvckVhY2goKGV2ZW50TmFtZSkgPT4ge1xyXG4gICAgICAgICAgICB0aGlzLmhvb2tzLnB1c2goXHJcbiAgICAgICAgICAgICAgICB0aGlzLnJlbmRlcmVyLmxpc3Rlbih0aGlzLm92ZXJsYXkubmF0aXZlRWxlbWVudCwgZXZlbnROYW1lLCAoZXZlbnQ6IGFueSkgPT4gdGhpcy5vbkRyYWdMZWF2ZShldmVudCkpXHJcbiAgICAgICAgICAgICk7XHJcbiAgICAgICAgfSk7XHJcblxyXG4gICAgICAgIHRoaXMuc3Vic2NyaXB0aW9ucy5wdXNoKFxyXG4gICAgICAgICAgICB0aGlzLmNvbnRyb2wuc3RhdHVzQ2hhbmdlcy5zdWJzY3JpYmUoKHN0YXR1cykgPT4gdGhpcy5jaGVja0FuZE1hcmtBc0Rpc2FibGVkKCkpXHJcbiAgICAgICAgKTtcclxuICAgIH1cclxuXHJcbiAgICBwcml2YXRlIGNoZWNrQW5kTWFya0FzRGlzYWJsZWQoKTogdm9pZCB7XHJcbiAgICAgICAgaWYgKHRoaXMuY29udHJvbC5kaXNhYmxlZCkge1xyXG4gICAgICAgICAgICB0aGlzLnJlbmRlcmVy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2ZW50KTogdm9pZCB7XHJcbiAgICAgICAgaWYgKHRoaXMuY29udHJvbC5kaXNhYmxlZCkge1xyXG4gICAgICAgICAgICByZXR1cm47XHJcbiAgICAgICAgfVxyXG4gICAgICAgIGNvbnN0IGZpbGVzID0gZXZlbnQuZGF0YVRyYW5zZmVyLmZpbGVzO1xyXG4gICAgICAgIHRoaXMuY29udHJvbC5hZGRGaWxlcyhmaWxlcyk7XHJcbiAgICAgICAgdGhpcy5vblRvdWNoKCk7XHJcbiAgICB9XHJcblxyXG4gICAgcHJpdmF0ZSBvblRvdWNoOiAoKSA9PiB2b2lkID0gKCkgPT4ge1xyXG4gICAgICAgIHRoaXMucmVuZGVyZXIuYWRkQ2xhc3ModGhpcy5ob3N0RWxlbWVudFJlZi5uYXRpdmVFbGVtZW50LCBUT1VDSEVEKTtcclxuICAgIH1cclxuXHJcbn1cclxuIl19 |
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,missingReturn,uselessCode} checked by tsc | ||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
@@ -75,5 +75,8 @@ import { Component, Input } from '@angular/core'; | ||
FileUploadIconComponent.prototype.fileType; | ||
/** @type {?} */ | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
FileUploadIconComponent.prototype.fileUploadService; | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmlsZS11cGxvYWQtaWNvbi5jb21wb25lbnQuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AaXBsYWIvbmd4LWZpbGUtdXBsb2FkLyIsInNvdXJjZXMiOlsiY29tcG9uZW50cy9maWxlLXVwbG9hZC1pY29uLmNvbXBvbmVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0FBQUEsT0FBTyxFQUFFLFNBQVMsRUFBRSxLQUFLLEVBQVUsTUFBTSxlQUFlL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jc3MnIHx8XHJcbiAgICAgICAgICAgICAgICAgICAgdGhpcy5maWxlVHlwZSA9PT0gJ2NzdicgfHwgdGhpcy5maWxlVHlwZSA9PT0gJ2pzJyB8fFxyXG4gICAgICAgICAgICAgICAgICAgIHRoaXMuZmlsZVR5cGUgPT09ICdwZGYnIHx8IHRoaXMuZmlsZVR5cGUgPT09ICdwcHQnIHx8XHJcbiAgICAgICAgICAgICAgICAgICAgdGhpcy5maWxlVHlwZSA9PT0gJ3hscycgfHwgdGhpcy5maWxlVHlwZSA9PT0gJ3hsc3gnIHx8XHJcbiAgICAgICAgICAgICAgICAgICAgdGhpcy5maWxlVHlwZSA9PT0gJ3htbCcgfHwgdGhpcy5maWxlVHlwZSA9PT0gJ2RvYycgfHxcclxuICAgICAgICAgICAgICAgICAgICB0aGlzLmZpbGVUeXBlID09PSAnZG9jeCc7XHJcbiAgICAgICAgICAgIGNhc2UgJ2F1ZGlvJzpcclxuICAgICAgICAgICAgICAgIHJldHVybiB0aGlzLmZpbGVUeXBlID09PSAnYWFjJyB8fCB0aGlzLmZpbGVUeXBlID09PSAnbWlkaScgfHxcclxuICAgICAgICAgICAgICAgICAgICB0aGlzLmZpbGVUeXBlID09PSAnb2dhJyB8fCB0aGlzLmZpbGVUeXBlID09PSAnd2F2JyB8fFxyXG4gICAgICAgICAgICAgICAgICAgIHRoaXMuZmlsZVR5cGUgPT09ICd3ZWJhJztcclxuICAgICAgICAgICAgY2FzZSAnaW1hZ2UnOlxyXG4gICAgICAgICAgICAgICAgcmV0dXJuIHRoaXMuZmlsZVR5cGUgPT09ICdwbmcnIHx8IHRoaXMuZmlsZVR5cGUgPT09ICdibXAnIHx8XHJcbiAgICAgICAgICAgICAgICAgICAgdGhpcy5maWxlVHlwZSA9PT0gJ2dpZicgfHwgdGhpcy5maWxlVHlwZSA9PT0gJ2pwZycgfHxcclxuICAgICAgICAgICAgICAgICAgICB0aGlzLmZpbGVUeXBlID09PSAnc3ZnJyB8fCB0aGlzLmZpbG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SA9PT0gJ3hsc3gnIHx8XHJcbiAgICAgICAgICAgICAgICAgICAgdGhpcy5maWxlVHlwZSA9PT0gJ3htbCcgfHwgdGhpcy5maWxlVHlwZSA9PT0gJ2RvYycgfHxcclxuICAgICAgICAgICAgICAgICAgICB0aGlzLmZpbGVUeXBlID09PSAnZG9jeCc7XHJcbiAgICAgICAgICAgIGNhc2UgJ2F1ZGlvJzpcclxuICAgICAgICAgICAgICAgIHJldHVybiB0aGlzLmZpbGVUeXBlID09PSAnYWFjJyB8fCB0aGlzLmZpbGVUeXBlID09PSAnbWlkaScgfHxcclxuICAgICAgICAgICAgICAgICAgICB0aGlzLmZpbGVUeXBlID09PSAnb2dhJyB8fCB0aGlzLmZpbGVUeXBlID09PSAnd2F2JyB8fFxyXG4gICAgICAgICAgICAgICAgICAgIHRoaXMuZmlsZVR5cGUgPT09ICd3ZWJhJztcclxuICAgICAgICAgICAgY2FzZSAnaW1hZ2UnOlxyXG4gICAgICAgICAgICAgICAgcmV0dXJuIHRoaXMuZmlsZVR5cGUgPT09ICdwbmcnIHx8IHRoaXMuZmlsZVR5cGUgPT09ICdibXAnIHx8XHJcbiAgICAgICAgICAgICAgICAgICAgdGhpcy5maWxlVHlwZSA9PT0gJ2dpZicgfHwgdGhpcy5maWxlVHlwZSA9PT0gJ2pwZycgfHxcclxuICAgICAgICAgICAgICAgICAgICB0aGlzLmZpbGVUeXBlID09PSAnc3ZnJyB8fCB0aGlzLmZpbGVUeXBlID09PSAnd2VicCcgfHxcclxuICAgICAgICAgICAgICAgICAgICB0aGlzLmZpbGVUeXBlID09PSAnaWNvJztcclxuICAgICAgICAgICAgY2FzZSAndmlkZW8nOlxyXG4gICAgICAgICAgICAgICAgcmV0dXJuIHRoaXMuZmlsZVR5cGUgPT09ICdhdmknIHx8IHRoaXMuZmlsZVR5cGUgPT09ICdtcGVnJyB8fFxyXG4gICAgICAgICAgICAgICAgICAgIHRoaXMuZmlsZVR5cGUgPT09ICdvZ3YnIHx8IHRoaXMuZmlsZVR5cGUgPT09ICd3ZWJtJyB8fFxyXG4gICAgICAgICAgICAgICAgICAgIHRoaXMuZmlsZVR5cGUgPT09ICczZ3AnIHx8IHRoaXMuZmlsZVR5cGUgPT09ICczZzInO1xyXG4gICAgICAgIH1cclxuICAgIH1cclxufVxyXG4iXX0= |
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,missingReturn,uselessCode} checked by tsc | ||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
@@ -60,5 +60,8 @@ import { Component, Input } from '@angular/core'; | ||
FileUploadListItemComponent.prototype.control; | ||
/** @type {?} */ | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
FileUploadListItemComponent.prototype.fileUploadService; | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmlsZS11cGxvYWQtbGlzdC1pdGVtLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BpcGxhYi9uZ3gtZmlsZS11cGxvYWQvIiwic291cmNlcyI6WyJjb21wb25lbnRzL2ZpbGUtdXBsb2FkLWxpc3QtaXRlbS5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQUUsS0FBSyxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQ2pELE9BQU8sRUFBRSxpQkFBaUIsRUFBRSxNQUFNLDRCQUE0QixDQUFDO0FBQy9ELE9BQU8sRUFBRSxpQkFBaUIsRUFBRSxNQUFNLG1DQUFtQyxDQUFDO0FBRXRFO0lBcUNJLHFDQUFvQixpQkFBb0M7UUFBcEMsc0JBQWlCLEdBQWpCLGlCQUFpQixDQUFtQjtJQUN4RCxDQUFDOzs7OztJQUVNLGdEQUFVOzs7O0lBQWpCLFVBQWtCLElBQVU7UUFDeEIsSUFBSSxDQUFD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lPC9zcGFuPlxyXG4gICAgPC9kaXY+XHJcbiAgICBgLFxyXG4gICAgc3R5bGVVcmxzOiBbYC4vZmlsZS11cGxvYWQtbGlzdC1pdGVtLmNvbXBvbmVudC5zY3NzYF1cclxufSlcclxuZXhwb3J0IGNsYXNzIEZpbGVVcGxvYWRMaXN0SXRlbUNvbXBvbmVudCB7XHJcblxyXG4gICAgQElucHV0KClcclxuICAgIHB1YmxpYyBpbmRleDogbnVtYmVyO1xyXG5cclxuICAgIEBJbnB1dCgpXHJcbiAgICBwdWJsaWMgZmlsZTogRmlsZTtcclxuXHJcbiAgICBASW5wdXQoKVxyXG4gICAgcHVibGljIGNvbnRyb2w6IEZpbGVVcGxvYWRDb250cm9sO1xyXG5cclxuICAgIGNvbnN0cnVjdG9yKHByaXZhdGUgZmlsZVVwbG9hZFNlcnZpY2U6IEZpbGVVcGxvYWRTZXJ2aWNlKSB7XHJcbiAgICB9XHJcblxyXG4gICAgcHVibGljIHJlbW92ZUZpbGUoZmlsZTogRmlsZSk6IHZvaWQge1xyXG4gICAgICAgIHRoaXMuY29udHJvbC5yZW1vdmVGaWxlKGZpbGUpO1xyXG4gICAgfVxyXG5cclxuICAgIHB1YmxpYyBjYWxjdWxhdGVTaXplKHNpemU6IG51bWJlcik6IHN0cmluZyB7XHJcbiAgICAgICByZXR1cm4gdGhpcy5maWxlVXBsb2FkU2VydmljZS5jYWxjdWxhdGVTaXplKHNpemUpO1xyXG4gICAgfVxyXG59Il19 |
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,missingReturn,uselessCode} checked by tsc | ||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
@@ -39,6 +39,12 @@ import { Component, Input, ElementRef, HostListener, Renderer2, HostBinding, Inject, TemplateRef, ViewChild, ChangeDetectionStrategy, ContentChild, forwardRef, ChangeDetectorRef } from '@angular/core'; | ||
this.subscriptions = []; | ||
this.onChange = function () { }; | ||
this.onTouch = function () { | ||
this.onChange = (/** | ||
* @return {?} | ||
*/ | ||
function () { }); | ||
this.onTouch = (/** | ||
* @return {?} | ||
*/ | ||
function () { | ||
_this.renderer.addClass(_this.hostElementRef.nativeElement, TOUCHED); | ||
}; | ||
}); | ||
} | ||
@@ -67,5 +73,13 @@ /** | ||
this.cdr.detach(); | ||
this.hooks.forEach(function (hook) { return hook(); }); | ||
this.hooks.forEach((/** | ||
* @param {?} hook | ||
* @return {?} | ||
*/ | ||
function (hook) { return hook(); })); | ||
this.hooks.length = 0; | ||
this.subscriptions.forEach(function (subscription) { return subscription.unsubscribe(); }); | ||
this.subscriptions.forEach((/** | ||
* @param {?} subscription | ||
* @return {?} | ||
*/ | ||
function (subscription) { return subscription.unsubscribe(); })); | ||
this.subscriptions.length = 0; | ||
@@ -94,5 +108,7 @@ }; | ||
/** | ||
* @private | ||
* @return {?} | ||
*/ | ||
FileUploadComponent.prototype.setEvents = /** | ||
* @private | ||
* @return {?} | ||
@@ -102,19 +118,57 @@ */ | ||
var _this = this; | ||
['drag', 'dragstart', 'dragend', 'dragover', 'dragenter', 'dragleave', 'drop'].forEach(function (eventName) { | ||
_this.hooks.push(_this.renderer.listen(_this.document, eventName, function (event) { return _this.preventDragEvents(event); })); | ||
}); | ||
['dragover', 'dragenter'].forEach(function (eventName) { | ||
_this.hooks.push(_this.renderer.listen(_this.hostElementRef.nativeElement, eventName, function (event) { return _this.onDragOver(event); })); | ||
}); | ||
['dragleave', 'dragend', 'drop'].forEach(function (eventName) { | ||
_this.hooks.push(_this.renderer.listen(_this.hostElementRef.nativeElement, eventName, function (event) { return _this.onDragLeave(event); })); | ||
}); | ||
this.subscriptions.push(this.control.statusChanges.subscribe(function (status) { return _this.checkAndMarkAsDisabled(); })); | ||
this.subscriptions.push(this.control.valueChanges.subscribe(function (files) { return _this.renderView(); })); | ||
this.subscriptions.push(this.control.listVisibilityChanges.subscribe(function (status) { return _this.toggleListVisibility(); })); | ||
['drag', 'dragstart', 'dragend', 'dragover', 'dragenter', 'dragleave', 'drop'].forEach((/** | ||
* @param {?} eventName | ||
* @return {?} | ||
*/ | ||
function (eventName) { | ||
_this.hooks.push(_this.renderer.listen(_this.document, eventName, (/** | ||
* @param {?} event | ||
* @return {?} | ||
*/ | ||
function (event) { return _this.preventDragEvents(event); }))); | ||
})); | ||
['dragover', 'dragenter'].forEach((/** | ||
* @param {?} eventName | ||
* @return {?} | ||
*/ | ||
function (eventName) { | ||
_this.hooks.push(_this.renderer.listen(_this.hostElementRef.nativeElement, eventName, (/** | ||
* @param {?} event | ||
* @return {?} | ||
*/ | ||
function (event) { return _this.onDragOver(event); }))); | ||
})); | ||
['dragleave', 'dragend', 'drop'].forEach((/** | ||
* @param {?} eventName | ||
* @return {?} | ||
*/ | ||
function (eventName) { | ||
_this.hooks.push(_this.renderer.listen(_this.hostElementRef.nativeElement, eventName, (/** | ||
* @param {?} event | ||
* @return {?} | ||
*/ | ||
function (event) { return _this.onDragLeave(event); }))); | ||
})); | ||
this.subscriptions.push(this.control.statusChanges.subscribe((/** | ||
* @param {?} status | ||
* @return {?} | ||
*/ | ||
function (status) { return _this.checkAndMarkAsDisabled(); }))); | ||
this.subscriptions.push(this.control.valueChanges.subscribe((/** | ||
* @param {?} files | ||
* @return {?} | ||
*/ | ||
function (files) { return _this.renderView(); }))); | ||
this.subscriptions.push(this.control.listVisibilityChanges.subscribe((/** | ||
* @param {?} status | ||
* @return {?} | ||
*/ | ||
function (status) { return _this.toggleListVisibility(); }))); | ||
}; | ||
/** | ||
* @private | ||
* @return {?} | ||
*/ | ||
FileUploadComponent.prototype.checkAndMarkAsDisabled = /** | ||
* @private | ||
* @return {?} | ||
@@ -133,2 +187,3 @@ */ | ||
/** | ||
* @private | ||
* @param {?} event | ||
@@ -138,2 +193,3 @@ * @return {?} | ||
FileUploadComponent.prototype.preventDragEvents = /** | ||
* @private | ||
* @param {?} event | ||
@@ -147,5 +203,7 @@ * @return {?} | ||
/** | ||
* @private | ||
* @return {?} | ||
*/ | ||
FileUploadComponent.prototype.renderView = /** | ||
* @private | ||
* @return {?} | ||
@@ -160,5 +218,7 @@ */ | ||
/** | ||
* @private | ||
* @return {?} | ||
*/ | ||
FileUploadComponent.prototype.showList = /** | ||
* @private | ||
* @return {?} | ||
@@ -172,5 +232,7 @@ */ | ||
/** | ||
* @private | ||
* @return {?} | ||
*/ | ||
FileUploadComponent.prototype.hideList = /** | ||
* @private | ||
* @return {?} | ||
@@ -182,5 +244,7 @@ */ | ||
/** | ||
* @private | ||
* @return {?} | ||
*/ | ||
FileUploadComponent.prototype.toggleListVisibility = /** | ||
* @private | ||
* @return {?} | ||
@@ -201,2 +265,3 @@ */ | ||
* on file over add class name | ||
* @private | ||
* @param {?} event | ||
@@ -207,2 +272,3 @@ * @return {?} | ||
* on file over add class name | ||
* @private | ||
* @param {?} event | ||
@@ -219,2 +285,3 @@ * @return {?} | ||
* on mouse out remove class name | ||
* @private | ||
* @param {?} event | ||
@@ -225,2 +292,3 @@ * @return {?} | ||
* on mouse out remove class name | ||
* @private | ||
* @param {?} event | ||
@@ -267,5 +335,7 @@ * @return {?} | ||
/** | ||
* @private | ||
* @return {?} | ||
*/ | ||
FileUploadComponent.prototype.clearInputEl = /** | ||
* @private | ||
* @return {?} | ||
@@ -281,2 +351,3 @@ */ | ||
* ControlValueAccessor implementation | ||
* @private | ||
* @return {?} | ||
@@ -286,2 +357,3 @@ */ | ||
* ControlValueAccessor implementation | ||
* @private | ||
* @return {?} | ||
@@ -291,3 +363,7 @@ */ | ||
var _this = this; | ||
this.subscriptions.push(this.control.valueChanges.subscribe(function (v) { return _this.onChange(v); })); | ||
this.subscriptions.push(this.control.valueChanges.subscribe((/** | ||
* @param {?} v | ||
* @return {?} | ||
*/ | ||
function (v) { return _this.onChange(v); }))); | ||
}; | ||
@@ -404,3 +480,6 @@ /** | ||
provide: NG_VALUE_ACCESSOR, | ||
useExisting: forwardRef(function () { return FileUploadComponent; }), | ||
useExisting: forwardRef((/** | ||
* @return {?} | ||
*/ | ||
function () { return FileUploadComponent; })), | ||
multi: true | ||
@@ -455,21 +534,45 @@ } | ||
FileUploadComponent.prototype.listVisible; | ||
/** @type {?} */ | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
FileUploadComponent.prototype.hooks; | ||
/** @type {?} */ | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
FileUploadComponent.prototype.subscriptions; | ||
/** @type {?} */ | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
FileUploadComponent.prototype.onChange; | ||
/** @type {?} */ | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
FileUploadComponent.prototype.onTouch; | ||
/** @type {?} */ | ||
FileUploadComponent.prototype.fileUploadService; | ||
/** @type {?} */ | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
FileUploadComponent.prototype.hostElementRef; | ||
/** @type {?} */ | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
FileUploadComponent.prototype.renderer; | ||
/** @type {?} */ | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
FileUploadComponent.prototype.document; | ||
/** @type {?} */ | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
FileUploadComponent.prototype.cdr; | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmlsZS11cGxvYWQuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6Im5nOi8vQGlwbGFiL25neC1maWxlLXVwbG9hZC8iLCJzb3VyY2VzIjpbImNvbXBvbmVudHMvZmlsZS11cGxvYWQuY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFBQSxPQUFPLEVBQ0gsU0FBUyxFQUNULEtBQUssRUFFTCxVQUFVLEVBQ1YsWUFBWSxFQUNaLFNBQVMsRUFFVCxXQUFXLEVBQ1gsTUFBTSxFQUNOLFdBQVcsRUFDWCxTQUFTLEVBQ1QsdUJ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Ym9vbGVhbiB7XHJcbiAgICAgICAgcmV0dXJuIHRoaXMuY29udHJvbC5pc0xpc3RWaXNpYmxlICYmIHRoaXMuY29udHJvbC5zaXplID4gMDtcclxuICAgIH1cclxuXHJcbiAgICBASG9zdEJpbmRpbmcoJ2NsYXNzLm5nLWludmFsaWQnKVxyXG4gICAgcHVibGljIGdldCBpc0ludmFsaWQoKTogYm9vbGVhbiB7XHJcbiAgICAgICAgcmV0dXJuICF0aGlzLmNvbnRyb2wuZGlzYWJsZWQgJiYgdGhpcy5jb250cm9sLmludmFsaWQ7XHJcbiAgICB9XHJcblxyXG4gICAgcHJpdmF0ZSBzZXRFdmVudHMoKTogdm9pZCB7XHJcbiAgICAgICAgWydkcmFnJywgJ2RyYWdzdGFydCcsICdkcmFnZW5kJywgJ2RyYWdvdmVyJywgJ2RyYWdlbnRlcicsICdkcmFnbGVhdmUnLCAnZHJvcCddLmZvckVhY2goKGV2ZW50TmFtZSkgPT4ge1xyXG4gICAgICAgICAgICB0aGlzLmhvb2tzLnB1c2goXHJcbiAgICAgICAgICAgICAgICB0aGlzLnJlbmRlcmVyLmxpc3Rlbih0aGlzLmRvY3VtZW50LCBldmVudE5hbWUsIChldmVudDogYW55KSA9PiB0aGlzLnByZXZlbnREcmFnRXZlbnRzKGV2ZW50KSlcclxuICAgICAgICAgICAgKTtcclxuICAgICAgICB9KTtcclxuXHJcbiAgICAgICAgWydkcmFnb3ZlcicsICdkcmFnZW50ZXInXS5mb3JFYWNoKChldmVudE5hbWUpID0+IHtcclxuICAgICAgICAgICAgdGhpcy5ob29rcy5wdXNoKFxyXG4gICAgICAgICAgICAgICAgdGhpcy5yZW5kZXJlci5saXN0ZW4odGhpcy5ob3N0RWxlbWVudFJlZi5uYXRpdmVFbGVtZW50LCBldmVudE5hbWUsIChldmVudDogYW55KSA9PiB0aGlzLm9uRHJhZ092ZXIoZXZlbnQpKVxyXG4gICAgICAgICAgICApO1xyXG4gICAgICAgIH0pO1xyXG5cclxuICAgICAg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W1hdGlvbkxpc3RGaW5pc2hlZChldmVudDogQW5pbWF0aW9uRXZlbnQpOiB2b2lkIHtcclxuICAgICAgICBpZiAoZXZlbnQudG9TdGF0ZSA9PT0gJ3ZvaWQnKSB7XHJcbiAgICAgICAgICAgIHRoaXMuem9vbVRleHQgPSAnem9vbUluJztcclxuICAgICAgICAgICAgdGhpcy5yZW5kZXJlci5yZW1vdmVDbGFzcyh0aGlzLmhvc3RFbGVtZW50UmVmLm5hdGl2ZUVsZW1lbnQsICdsaXN0LXZpc2libGUnKTtcclxuICAgICAgICB9XHJcbiAgICAgICAgaWYgKGV2ZW50LmZyb21TdGF0ZSA9PT0gJ3ZvaWQnKSB7XHJcbiAgICAgICAgICAgIHRoaXMuem9vbVRleHQgPSAnc3RhdGljJztcclxuICAgICAgICAgICAgdGhpcy5yZW5kZXJlci5hZGRDbGFzcyh0aGlzLmhvc3RFbGVtZW50UmVmLm5hdGl2ZUVsZW1lbnQsICdsaXN0LXZpc2libGUnKTtcclxuICAgICAgICB9XHJcbiAgICB9XHJcbn1cclxuIl19 |
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,missingReturn,uselessCode} checked by tsc | ||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
@@ -66,5 +66,7 @@ import { Directive, forwardRef, Input } from '@angular/core'; | ||
/** | ||
* @private | ||
* @return {?} | ||
*/ | ||
FileSizeValidator.prototype._createValidator = /** | ||
* @private | ||
* @return {?} | ||
@@ -90,3 +92,6 @@ */ | ||
provide: NG_VALIDATORS, | ||
useExisting: forwardRef(function () { return FileSizeValidator; }), | ||
useExisting: forwardRef((/** | ||
* @return {?} | ||
*/ | ||
function () { return FileSizeValidator; })), | ||
multi: true | ||
@@ -116,5 +121,11 @@ }], | ||
FileSizeValidator.prototype.maxsize; | ||
/** @type {?} */ | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
FileSizeValidator.prototype.validator; | ||
/** @type {?} */ | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
FileSizeValidator.prototype.onChange; | ||
@@ -176,5 +187,7 @@ } | ||
/** | ||
* @private | ||
* @return {?} | ||
*/ | ||
FilesLimitValidator.prototype._createValidator = /** | ||
* @private | ||
* @return {?} | ||
@@ -190,3 +203,6 @@ */ | ||
provide: NG_VALIDATORS, | ||
useExisting: forwardRef(function () { return FilesLimitValidator; }), | ||
useExisting: forwardRef((/** | ||
* @return {?} | ||
*/ | ||
function () { return FilesLimitValidator; })), | ||
multi: true | ||
@@ -206,5 +222,11 @@ }], | ||
FilesLimitValidator.prototype.fileslimit; | ||
/** @type {?} */ | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
FilesLimitValidator.prototype.validator; | ||
/** @type {?} */ | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
FilesLimitValidator.prototype.onChange; | ||
@@ -268,5 +290,7 @@ } | ||
/** | ||
* @private | ||
* @return {?} | ||
*/ | ||
FilesAcceptValidator.prototype._createValidator = /** | ||
* @private | ||
* @return {?} | ||
@@ -282,3 +306,6 @@ */ | ||
provide: NG_VALIDATORS, | ||
useExisting: forwardRef(function () { return FilesLimitValidator; }), | ||
useExisting: forwardRef((/** | ||
* @return {?} | ||
*/ | ||
function () { return FilesLimitValidator; })), | ||
multi: true | ||
@@ -298,7 +325,13 @@ }], | ||
FilesAcceptValidator.prototype.accept; | ||
/** @type {?} */ | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
FilesAcceptValidator.prototype.validator; | ||
/** @type {?} */ | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
FilesAcceptValidator.prototype.onChange; | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmFsaWRhdG9ycy5kaXJlY3RpdmUuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AaXBsYWIvbmd4LWZpbGUtdXBsb2FkLyIsInNvdXJ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yXG4gICAgfVxyXG59XHJcbiJdfQ== |
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,missingReturn,uselessCode} checked by tsc | ||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
@@ -72,5 +72,8 @@ /* | ||
if (false) { | ||
/** @type {?} */ | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
FileUploadModule.prototype.injector; | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmlsZS11cGxvYWQubW9kdWxlLmpzIiwic291cmNlUm9vdCI6Im5nOi8vQGlwbGFiL25neC1maWxlLXVwbG9hZC8iLCJzb3VyY2VzIjpbImZpbGUtdXBsb2FkLm1vZHVsZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7OztBQU9BLE9BQU8sRUFBRSxRQUFRLEVBQUUsUUFBUSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQ25ELE9BQU8sRUFBRSxtQkFBbUIsRUFBRSxXQUFXLEVBQUUsTUFBTSxnQkFBZ0IsQ0FBQztBQUNsRSxPQUFPLEVBQUUsWUFBWSxFQUFFLE1BQU0saUJBQWlCLENBQUM7QUFFL0MsT0FBTyxFQUFFLG1CQUFtQixFQUFFLE1BQU0sb0NBQW9DLENBQUM7QUFDekUsT0FBTyxFQUFFLDJCQUEyQixFQUFFLE1BQU0sOENBQThDLENBQUM7QUFDM0YsT0FBTyxFQUFFLHVCQUF1QixFQUFFLE1BQU0seUNBQXlDLENBQUM7QUFDbEYsT0FBTyxFQUFFLDRCQUE0QixFQUFFLE1BQU0seUNBQXlDLENBQUM7QUFFdkYsT0FBTyxFQUFFLGlCQUFpQixFQUFFLG1CQUFtQixFQUFFLG9CQUFvQixFQUFFLE1BQU0sbUNBQW1DLENBQUM7QUFFakgsT0FBTyxFQUFFLGlCQUFpQixFQUFFLE1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lbnRzOiBbXHJcbiAgICAgICAgRmlsZVVwbG9hZENvbXBvbmVudFxyXG4gICAgXVxyXG59KVxyXG5leHBvcnQgY2xhc3MgRmlsZVVwbG9hZE1vZHVsZSB7XHJcblxyXG4gICAgY29uc3RydWN0b3IocHJpdmF0ZSBpbmplY3RvcjogSW5qZWN0b3IpIHtcclxuICAgICAgICAvLyBjb25zdCBmaWxlVXBsb2FkRWxlbWVudCA9IGNyZWF0ZUN1c3RvbUVsZW1lbnQoRmlsZVVwbG9hZENvbXBvbmVudCwgeyBpbmplY3RvciB9KTtcclxuICAgICAgICAvLyBjdXN0b21FbGVtZW50cy5kZWZpbmUoJ2ZpbGUtdXBsb2FkJywgZmlsZVVwbG9hZEVsZW1lbnQpO1xyXG4gICAgfVxyXG5cclxuICAgIG5nRG9Cb290c3RyYXAoKSB7fVxyXG59XHJcbiJdfQ== |
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,missingReturn,uselessCode} checked by tsc | ||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
@@ -66,2 +66,3 @@ import * as tslib_1 from "tslib"; | ||
/** | ||
* @private | ||
* @param {?} validators | ||
@@ -71,2 +72,3 @@ * @return {?} | ||
FileUploadControl.prototype.defineValidators = /** | ||
* @private | ||
* @param {?} validators | ||
@@ -141,2 +143,3 @@ * @return {?} | ||
* when multiple files are uploaded | ||
* @private | ||
* @param {?} files | ||
@@ -149,2 +152,3 @@ * @return {?} | ||
* when multiple files are uploaded | ||
* @private | ||
* @param {?} files | ||
@@ -155,3 +159,7 @@ * @return {?} | ||
var _this = this; | ||
files.forEach(function (file) { return _this.files.add(file); }); | ||
files.forEach((/** | ||
* @param {?} file | ||
* @return {?} | ||
*/ | ||
function (file) { return _this.files.add(file); })); | ||
this.validate(); | ||
@@ -337,5 +345,7 @@ this.valueChanges.next(Array.from(this.files.values())); | ||
/** | ||
* @private | ||
* @return {?} | ||
*/ | ||
FileUploadControl.prototype.validate = /** | ||
* @private | ||
* @return {?} | ||
@@ -348,3 +358,11 @@ */ | ||
var currentState = this.valid; | ||
this.errors = this.validators.map(function (validator) { return validator(_this); }).filter(function (isInvalid) { return isInvalid; }); | ||
this.errors = this.validators.map((/** | ||
* @param {?} validator | ||
* @return {?} | ||
*/ | ||
function (validator) { return validator(_this); })).filter((/** | ||
* @param {?} isInvalid | ||
* @return {?} | ||
*/ | ||
function (isInvalid) { return isInvalid; })); | ||
if (currentState !== this.valid) { | ||
@@ -362,13 +380,31 @@ this.statusChanged.next(this.valid ? STATUS.VALID : STATUS.INVALID); | ||
if (false) { | ||
/** @type {?} */ | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
FileUploadControl.prototype.files; | ||
/** @type {?} */ | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
FileUploadControl.prototype.listVisible; | ||
/** @type {?} */ | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
FileUploadControl.prototype.status; | ||
/** @type {?} */ | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
FileUploadControl.prototype.errors; | ||
/** @type {?} */ | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
FileUploadControl.prototype.validators; | ||
/** @type {?} */ | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
FileUploadControl.prototype.statusChanged; | ||
@@ -394,2 +430,2 @@ /** | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29udHJvbC5jbGFzcy5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BpcGxhYi9uZ3gtZmlsZS11cGxvYWQvIiwic291cmNlcyI6WyJoZWxwZXJzL2NvbnRyb2wuY2xhc3MudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7QUFBQSxPQUFPLEVBQUUsZUFBZSxFQUFFLE9BQU8sRUFBYyxNQUFNLE1BQU0sQ0FBQztBQ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XG5cclxuICAgICAgICAgICAgaWYgKGN1cnJlbnRTdGF0ZSAhPT0gdGhpcy52YWxpZCkge1xyXG4gICAgICAgICAgICAgICAgdGhpcy5zdGF0dXNDaGFuZ2VkLm5leHQodGhpcy52YWxpZCA/IFNUQVRVUy5WQUxJRCA6IFNUQVRVUy5JTlZBTElEKTtcclxuICAgICAgICAgICAgfVxyXG4gICAgICAgIH0gZWxzZSB7XHJcbiAgICAgICAgICAgIHRoaXMuZXJyb3JzLmxlbmd0aCA9IDA7XHJcbiAgICAgICAgfVxyXG4gICAgfVxyXG59XHJcbiJdfQ== |
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,missingReturn,uselessCode} checked by tsc | ||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
@@ -5,0 +5,0 @@ /** @enum {number} */ |
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,missingReturn,uselessCode} checked by tsc | ||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
@@ -12,2 +12,2 @@ /** | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaGVscGVycy5jbGFzcy5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BpcGxhYi9uZ3gtZmlsZS11cGxvYWQvIiwic291cmNlcyI6WyJoZWxwZXJzL2hlbHBlcnMuY2xhc3MudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7QUFBQSxNQUFNLFVBQVUsYUFBYSxDQUFDLEtBQVU7SUFDcEMsT0FBTyxLQUFLLElBQUksSUFBSSxJQUFJLEtBQUssQ0FBQyxNQUFNLEtBQUssQ0FBQyxDQUFDO0FBQy9DLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgZnVuY3Rpb24gSXNOdWxsT3JFbXB0eSh2YWx1ZTogYW55KTogYm9vbGVhbiB7XHJcbiAgICByZXR1cm4gdmFsdWUgPT0gbnVsbCB8fCB2YWx1ZS5sZW5ndGggPT09IDA7XHJcbn0iXX0= | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaGVscGVycy5jbGFzcy5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BpcGxhYi9uZ3gtZmlsZS11cGxvYWQvIiwic291cmNlcyI6WyJoZWxwZXJzL2hlbHBlcnMuY2xhc3MudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7QUFBQSxNQUFNLFVBQVUsYUFBYSxDQUFDLEtBQVU7SUFDcEMsT0FBTyxLQUFLLElBQUksSUFBSSxJQUFJLEtBQUssQ0FBQyxNQUFNLEtBQUssQ0FBQyxDQUFDO0FBQy9DLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgZnVuY3Rpb24gSXNOdWxsT3JFbXB0eSh2YWx1ZTogYW55KTogYm9vbGVhbiB7XHJcbiAgICByZXR1cm4gdmFsdWUgPT0gbnVsbCB8fCB2YWx1ZS5sZW5ndGggPT09IDA7XHJcbn1cclxuIl19 |
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,missingReturn,uselessCode} checked by tsc | ||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
@@ -19,7 +19,13 @@ import * as tslib_1 from "tslib"; | ||
*/ | ||
var checkFileSize = function (file, maxSize, minSize) { | ||
var checkFileSize = (/** | ||
* @param {?} file | ||
* @param {?} maxSize | ||
* @param {?=} minSize | ||
* @return {?} | ||
*/ | ||
function (file, maxSize, minSize) { | ||
if (minSize === void 0) { minSize = 0; } | ||
return (!IsNullOrEmpty(maxSize) && file.size > maxSize) || file.size < minSize ? | ||
{ maxSize: maxSize, minSize: minSize, actual: file.size, file: file } : null; | ||
}; | ||
}); | ||
var ɵ0 = checkFileSize; | ||
@@ -35,3 +41,8 @@ /** @type {?} */ | ||
*/ | ||
var checkFileType = function (file, allowedTypes) { | ||
var checkFileType = (/** | ||
* @param {?} file | ||
* @param {?} allowedTypes | ||
* @return {?} | ||
*/ | ||
function (file, allowedTypes) { | ||
var e_1, _a; | ||
@@ -58,10 +69,14 @@ /** @type {?} */ | ||
return { allowedTypes: allowedTypes, actual: file.type, file: file }; | ||
}; | ||
}); | ||
var ɵ1 = checkFileType; | ||
/** @type {?} */ | ||
var checkValueType = function (value) { | ||
var checkValueType = (/** | ||
* @param {?} value | ||
* @return {?} | ||
*/ | ||
function (value) { | ||
if (!Array.isArray(value)) { | ||
throw Error("FormControl.setValue was provided with wrong argument type, " + value + " was provided instead Array<File>"); | ||
} | ||
}; | ||
}); | ||
var ɵ2 = checkValueType; | ||
@@ -94,3 +109,7 @@ // @dynamic | ||
function (maxSize) { | ||
return function (control) { | ||
return (/** | ||
* @param {?} control | ||
* @return {?} | ||
*/ | ||
function (control) { | ||
/** @type {?} */ | ||
@@ -103,7 +122,15 @@ var files = control.value; | ||
/** @type {?} */ | ||
var toLargeFiles = files.map(function (file) { return checkFileSize(file, maxSize); }) | ||
.filter(function (error) { return error; }); | ||
var toLargeFiles = files.map((/** | ||
* @param {?} file | ||
* @return {?} | ||
*/ | ||
function (file) { return checkFileSize(file, maxSize); })) | ||
.filter((/** | ||
* @param {?} error | ||
* @return {?} | ||
*/ | ||
function (error) { return error; })); | ||
return toLargeFiles.length > 0 ? | ||
{ 'fileSize': toLargeFiles } : null; | ||
}; | ||
}); | ||
}; | ||
@@ -128,3 +155,7 @@ /** | ||
var minSize = _a.minSize, maxSize = _a.maxSize; | ||
return function (control) { | ||
return (/** | ||
* @param {?} control | ||
* @return {?} | ||
*/ | ||
function (control) { | ||
/** @type {?} */ | ||
@@ -137,7 +168,15 @@ var files = control.value; | ||
/** @type {?} */ | ||
var sizeMismatch = files.map(function (file) { return checkFileSize(file, maxSize, minSize); }) | ||
.filter(function (error) { return error; }); | ||
var sizeMismatch = files.map((/** | ||
* @param {?} file | ||
* @return {?} | ||
*/ | ||
function (file) { return checkFileSize(file, maxSize, minSize); })) | ||
.filter((/** | ||
* @param {?} error | ||
* @return {?} | ||
*/ | ||
function (error) { return error; })); | ||
return sizeMismatch.length > 0 ? | ||
{ 'sizeRange': sizeMismatch } : null; | ||
}; | ||
}); | ||
}; | ||
@@ -161,3 +200,7 @@ /** | ||
function (numFiles) { | ||
return function (control) { | ||
return (/** | ||
* @param {?} control | ||
* @return {?} | ||
*/ | ||
function (control) { | ||
/** @type {?} */ | ||
@@ -171,3 +214,3 @@ var files = control.value; | ||
{ 'filesLimit': { 'max': numFiles, 'actual': files.length } } : null; | ||
}; | ||
}); | ||
}; | ||
@@ -227,3 +270,7 @@ /** | ||
function (allowedFileTypes) { | ||
return function (control) { | ||
return (/** | ||
* @param {?} control | ||
* @return {?} | ||
*/ | ||
function (control) { | ||
/** @type {?} */ | ||
@@ -236,7 +283,15 @@ var files = control.value; | ||
/** @type {?} */ | ||
var notAllowedFiles = files.map(function (file) { return checkFileType(file, allowedFileTypes); }) | ||
.filter(function (error) { return error; }); | ||
var notAllowedFiles = files.map((/** | ||
* @param {?} file | ||
* @return {?} | ||
*/ | ||
function (file) { return checkFileType(file, allowedFileTypes); })) | ||
.filter((/** | ||
* @param {?} error | ||
* @return {?} | ||
*/ | ||
function (error) { return error; })); | ||
return notAllowedFiles.length > 0 ? | ||
{ 'fileTypes': notAllowedFiles } : null; | ||
}; | ||
}); | ||
}; | ||
@@ -248,2 +303,2 @@ return FileUploadValidators; | ||
export { ɵ0, ɵ1, ɵ2 }; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmFsaWRhdG9ycy5jbGFzcy5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BpcGxhYi9uZ3gtZmlsZS11cGxvYWQvIiwic291cmNlcyI6WyJoZWxwZX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cyBjb250cm9scyB0byBoYXZlIGEgZmlsZSBtYXhpbXVtIHNpemUgbGVuZ3RoLlxyXG4gICAgICogQ29tcGFyZSB0aGUgRmlsZSBzaXplIGluIGJ5dGVzXHJcbiAgICAgKiBAZHluYW1pY1xyXG4gICAgICovXHJcbiAgICBwdWJsaWMgc3RhdGljIGZpbGVTaXplKG1heFNpemU6IG51bWJlcik6IFZhbGlkYXRvckZuIHtcclxuICAgICAgICByZXR1cm4gKGNvbnRyb2w6IEFic3RyYWN0Q29udHJvbCB8IEZpbGVVcGxvYWRDb250cm9sKToge2ZpbGVTaXplOiBBcnJheTxWYWxpZGF0aW9uRXJyb3JzPn0gPT4ge1xyXG4gICAgICAgICAgICBjb25zdCBmaWxlczogQXJyYXk8RmlsZT4gPSBjb250cm9sLnZhbHVlO1xyXG4gICAgICAgICAgICBpZiAoSXNOdWxsT3JFbXB0eShmaWxlcykpIHsgcmV0dXJuIG51bGw7IH1cclxuICAgICAgICAgICAgY2hlY2tWYWx1ZVR5cGUoZmlsZXMpO1xyXG5cclxuICAgICAgICAgICAgY29uc3QgdG9MYXJnZUZpbGVzID0gZmlsZXMubWFwKChmaWxlKSA9PiBjaGVja0ZpbGVTaXplKGZpbGUsIG1heFNpemUpKVxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgLmZpbHRlcigoZXJyb3IpID0+IGVycm9yKTtcclxuXHJcbiAgICAgICAgICAgIHJldHVybiB0b0xhcmdlRmlsZXMubGVuZ3RoID4gMCA/XHJcbiAgICAgICAgICAgICAgICAgICAgeydmaWxlU2l6ZSc6IHRvTGFyZ2VGaWxlc30gOiBudWxsO1xyXG4gICAgICAgIH07XHJcbiAgICB9XHJcblxyXG4gICAgLyoqXHJcbiAgICAgKiBDb21wYXJlIHRoZSBGaWxlIHNpemUgaW4gYnl0ZXMgd2l0aCBtYXggYW5kIG1pbiBzaXplIGxpbWl0c1xyXG4gICAgICogQGR5bmFtaWNcclxuICAgICAqL1xyXG4gICAgcHVibGljIHN0YXRpYyBzaXplUmFuZ2UoeyBtaW5TaXplLCBtYXhTaXplIH06IHsgbWluU2l6ZT86IG51bWJlcjsgbWF4U2l6ZT86IG51bWJlciB9KTogVmFsaWRhdG9yRm4ge1xyXG4gICAgICAgIHJldHVybiAoY29udHJvbDogQWJzdHJhY3RDb250cm9sIHwgRmlsZVVwbG9hZENvbnRyb2wpOiB7c2l6ZVJhbmdlOiBBcnJheTxWYWxpZGF0aW9uRXJyb3JzPn0gPT4ge1xyXG4gICAgICAgICAgICBjb25zdCBmaWxlczogQXJyYXk8RmlsZT4gPSBjb250cm9sLnZhbHVlO1xyXG4gICAgICAgICAgICBpZiAoSXNOdWxsT3JFbXB0eShmaWxlcykpIHsgcmV0dXJuIG51bGw7IH1cclxuICAgICAgICAgICAgY2hlY2tWYWx1ZVR5cGUoZmlsZXMpO1xyXG5cclxuICAgICAgICAgICAgY29uc3Qgc2l6ZU1pc21hdGNoID0gZmlsZXMubWFwKChmaWxlKSA9PiBjaGVja0ZpbGVTaXplKGZpbGUsIG1heFNpemUsIG1pblNpemUpKVxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgLmZpbHRlcigoZXJyb3IpID0+IGVycm9yKTtcclxuXHJcbiAgICAgICAgICAgIHJldHVybiBzaXplTWlzbWF0Y2gubGVuZ3RoID4gMCA/XHJcbiAgICAgICAgICAgICAgICAgICAgeydzaXplUmFuZ2UnOiBzaXplTWlzbWF0Y2h9IDogbnVsbDtcclxuICAgICAgICB9O1xyXG4gICAgfVxyXG5cclxuICAgIC8qKlxyXG4gICAgICogdmFsaWRhdG9yIHRoYXQgcmVxdWlyZXMgY29udHJvbCB0byBoYXZlIGxpbWl0IG9uIGZpbGVzIG51bWJlclxyXG4gICAgICogQGR5bmFtaWNcclxuICAgICAqL1xyXG4gICAgcHVibGljIHN0YXRpYyBmaWxlc0xpbWl0KG51bUZpbGVzOiBudW1iZXIpOiBWYWxpZGF0b3JGbiB7XH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XJnZUZpbGVzID0gZmlsZXMubWFwKChmaWxlKSA9PiBjaGVja0ZpbGVTaXplKGZpbGUsIG1heFNpemUpKVxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgLmZpbHRlcigoZXJyb3IpID0+IGVycm9yKTtcclxuXHJcbiAgICAgICAgICAgIHJldHVybiB0b0xhcmdlRmlsZXMubGVuZ3RoID4gMCA/XHJcbiAgICAgICAgICAgICAgICAgICAgeydmaWxlU2l6ZSc6IHRvTGFyZ2VGaWxlc30gOiBudWxsO1xyXG4gICAgICAgIH07XHJcbiAgICB9XHJcblxyXG4gICAgLyoqXHJcbiAgICAgKiBDb21wYXJlIHRoZSBGaWxlIHNpemUgaW4gYnl0ZXMgd2l0aCBtYXggYW5kIG1pbiBzaXplIGxpbWl0c1xyXG4gICAgICogQGR5bmFtaWNcclxuICAgICAqL1xyXG4gICAgcHVibGljIHN0YXRpYyBzaXplUmFuZ2UoeyBtaW5TaXplLCBtYXhTaXplIH06IHsgbWluU2l6ZT86IG51bWJlcjsgbWF4U2l6ZT86IG51bWJlciB9KTogVmFsaWRhdG9yRm4ge1xyXG4gICAgICAgIHJldHVybiAoY29udHJvbDogQWJzdHJhY3RDb250cm9sIHwgRmlsZVVwbG9hZENvbnRyb2wpOiB7c2l6ZVJhbmdlOiBBcnJheTxWYWxpZGF0aW9uRXJyb3JzPn0gPT4ge1xyXG4gICAgICAgICAgICBjb25zdCBmaWxlczogQXJyYXk8RmlsZT4gPSBjb250cm9sLnZhbHVlO1xyXG4gICAgICAgICAgICBpZiAoSXNOdWxsT3JFbXB0eShmaWxlcykpIHsgcmV0dXJuIG51bGw7IH1cclxuICAgICAgICAgICAgY2hlY2tWYWx1ZVR5cGUoZmlsZXMpO1xyXG5cclxuICAgICAgICAgICAgY29uc3Qgc2l6ZU1pc21hdGNoID0gZmlsZXMubWFwKChmaWxlKSA9PiBjaGVja0ZpbGVTaXplKGZpbGUsIG1heFNpemUsIG1pblNpemUpKVxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgLmZpbHRlcigoZXJyb3IpID0+IGVycm9yKTtcclxuXHJcbiAgICAgICAgICAgIHJldHVybiBzaXplTWlzbWF0Y2gubGVuZ3RoID4gMCA/XHJcbiAgICAgICAgICAgICAgICAgICAgeydzaXplUmFuZ2UnOiBzaXplTWlzbWF0Y2h9IDogbnVsbDtcclxuICAgICAgICB9O1xyXG4gICAgfVxyXG5cclxuICAgIC8qKlxyXG4gICAgICogdmFsaWRhdG9yIHRoYXQgcmVxdWlyZXMgY29udHJvbCB0byBoYXZlIGxpbWl0IG9uIGZpbGVzIG51bWJlclxyXG4gICAgICogQGR5bmFtaWNcclxuICAgICAqL1xyXG4gICAgcHVibGljIHN0YXRpYyBmaWxlc0xpbWl0KG51bUZpbGVzOiBudW1iZXIpOiBWYWxpZGF0b3JGbiB7XHJcbiAgICAgICAgcmV0dXJuIChjb250cm9sOiBBYnN0cmFjdENvbnRyb2wgfCBGaWxlVXBsb2FkQ29udHJvbCk6IFZhbGlkYXRpb25FcnJvcnMgPT4ge1xyXG4gICAgICAgICAgICBjb25zdCBmaWxlczogQXJyYXk8RmlsZT4gPSBjb250cm9sLnZhbHVlO1xyXG4gICAgICAgICAgICBpZiAoSXNOdWxsT3JFbXB0eShmaWxlcykpIHsgcmV0dXJuIG51bGw7IH1cclxuICAgICAgICAgICAgY2hlY2tWYWx1ZVR5cGUoZmlsZXMpO1xyXG5cclxuICAgICAgICAgICAgcmV0dXJuIGZpbGVzLmxlbmd0aCA+IG51bUZpbGVzID9cclxuICAgICAgICAgICAgICAgIHsnZmlsZXNMaW1pdCc6IHsnbWF4JzogbnVtRmlsZXMsICdhY3R1YWwnOiBmaWxlcy5sZW5ndGh9fSA6IG51bGw7XHJcbiAgICAgICAgfTtcclxuICAgIH1cclxuXHJcbiAgICAvKipcclxuICAgICAqIHZhbGlkYXRvciB0aGF0IHJlcXVpcmVzIGNvbnRyb2wgdG8gaGF2ZS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AgIHJldHVybiAoY29udHJvbDogQWJzdHJhY3RDb250cm9sIHwgRmlsZVVwbG9hZENvbnRyb2wpOiBWYWxpZGF0aW9uRXJyb3JzID0+IHtcclxuICAgICAgICAgICAgY29uc3QgZmlsZXM6IEFycmF5PEZpbGU+ID0gY29udHJvbC52YWx1ZTtcclxuICAgICAgICAgICAgaWYgKElzTnVsbE9yRW1wdHkoZmlsZXMpKSB7IHJldHVybiBudWxsOyB9XHJcbiAgICAgICAgICAgIGNoZWNrVmFsdWVUeXBlKGZpbGVzKTtcclxuXHJcbiAgICAgICAgICAgIGNvbnN0IG5vdEFsbG93ZWRGaWxlcyA9IGZpbGVzLm1hcCgoZmlsZSkgPT4gY2hlY2tGaWxlVHlwZShmaWxlLCBhbGxvd2VkRmlsZVR5cGVzKSlcclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIC5maWx0ZXIoKGVycm9yKSA9PiBlcnJvcik7XHJcblxyXG4gICAgICAgICAgICByZXR1cm4gbm90QWxsb3dlZEZpbGVzLmxlbmd0aCA+IDAgP1xyXG4gICAgICAgICAgICAgICAgeydmaWxlVHlwZXMnOiBub3RBbGxvd2VkRmlsZXN9IDogbnVsbDtcclxuICAgICAgICB9O1xyXG4gICAgfVxyXG5cclxufVxyXG4iXX0= |
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,missingReturn,uselessCode} checked by tsc | ||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
@@ -5,0 +5,0 @@ /** |
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,missingReturn,uselessCode} checked by tsc | ||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
export { FileUploadControl, FileUploadValidators, FileUploadTypes, FileUploadModule } from './file-upload.module'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljX2FwaS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BpcGxhYi9uZ3gtZmlsZS11cGxvYWQvIiwic291cmNlcyI6WyJwdWJsaWNfYXBpLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFBQSwyRkFBYyxzQkFBc0IsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vZmlsZS11cGxvYWQubW9kdWxlJztcclxuIl19 |
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,missingReturn,uselessCode} checked by tsc | ||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
@@ -21,3 +21,3 @@ import { Injectable, Renderer2 } from '@angular/core'; | ||
var div = this.renderer.createElement('div'); | ||
return (('draggable' in div) || ('ondragstart' in div && 'ondrop' in div)) && FormData && !!FileReader; | ||
return (('draggable' in div) || ('ondragstart' in div && 'ondrop' in div)); | ||
}; | ||
@@ -53,3 +53,7 @@ /** | ||
function (file) { | ||
return Object.keys(FileUploadTypes).find(function (key) { return FileUploadTypes[key] === file.type; }); | ||
return Object.keys(FileUploadTypes).find((/** | ||
* @param {?} key | ||
* @return {?} | ||
*/ | ||
function (key) { return FileUploadTypes[key] === file.type; })); | ||
}; | ||
@@ -67,7 +71,13 @@ FileUploadService.decorators = [ | ||
if (false) { | ||
/** @type {?} */ | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
FileUploadService.prototype.extensions; | ||
/** @type {?} */ | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
FileUploadService.prototype.renderer; | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmlsZS11cGxvYWQuc2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BpcGxhYi9uZ3gtZmlsZS11cGxvYWQvIi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biB7XHJcbiAgICAgICAgY29uc3QgZGl2ID0gdGhpcy5yZW5kZXJlci5jcmVhdGVFbGVtZW50KCdkaXYnKTtcclxuICAgICAgICByZXR1cm4gKCgnZHJhZ2dhYmxlJyBpbiBkaXYpIHx8ICgnb25kcmFnc3RhcnQnIGluIGRpdiAmJiAnb25kcm9wJyBpbiBkaXYpKSAmJiBGb3JtRGF0YSAmJiAhIUZpbGVSZWFkZXI7XHJcbiAgICB9XHJcblxyXG5cclxuICAgIHB1YmxpYyBjYWxjdWxhdGVTaXplKHNpemU6IG51bWJlciwgZXh0ZW5zaW9uSW5kZXg6IG51bWJlciA9IDApOiBzdHJpbmcge1xyXG4gICAgICAgIGlmIChpc05hTihzaXplKSkge1xyXG4gICAgICAgICAgICBzaXplID0gMDtcclxuICAgICAgICB9XHJcblxyXG4gICAgICAgIGlmIChzaXplIDwgMTAyNCkge1xyXG4gICAgICAgICAgICByZXR1cm4gYCR7TWF0aC5yb3VuZChzaXplICogMTAwKSAvIDEwMH0gJHt0aGlzLmV4dGVuc2lvbnNbZXh0ZW5zaW9uSW5kZXhdfWA7XHJcbiAgICAgICAgfVxyXG5cclxuICAgICAgICByZXR1cm4gdGhpcy5jYWxjdWxhdGVTaXplKHNpemUgLyAxMDI0LCBleHRlbnNpb25JbmRleCArIDEpO1xyXG4gICAgfVxyXG5cclxuICAgIHB1YmxpYyBnZXRGaWxlVHlwZShmaWxlOiBGaWxlKTogc3RyaW5nIHtcclxuICAgICAgICByZXR1cm4gT2JqZWN0LmtleXMoRmlsZVVwbG9hZFR5cGVzKS5maW5kKChrZXkpID0+IEZpbGVVcGxvYWRUeXBlc1trZXldID09PSBmaWxlLnR5cGUpO1xyXG4gICAgfVxyXG59Il19 | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmlsZS11cGxvYWQuc2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BpcGxhYi9uZ3gtZmlsZS11cGxvYWQ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RpdiA9IHRoaXMucmVuZGVyZXIuY3JlYXRlRWxlbWVudCgnZGl2Jyk7XHJcbiAgICAgICAgcmV0dXJuICgoJ2RyYWdnYWJsZScgaW4gZGl2KSB8fCAoJ29uZHJhZ3N0YXJ0JyBpbiBkaXYgJiYgJ29uZHJvcCcgaW4gZGl2KSk7XHJcbiAgICB9XHJcblxyXG5cclxuICAgIHB1YmxpYyBjYWxjdWxhdGVTaXplKHNpemU6IG51bWJlciwgZXh0ZW5zaW9uSW5kZXg6IG51bWJlciA9IDApOiBzdHJpbmcge1xyXG4gICAgICAgIGlmIChpc05hTihzaXplKSkge1xyXG4gICAgICAgICAgICBzaXplID0gMDtcclxuICAgICAgICB9XHJcblxyXG4gICAgICAgIGlmIChzaXplIDwgMTAyNCkge1xyXG4gICAgICAgICAgICByZXR1cm4gYCR7TWF0aC5yb3VuZChzaXplICogMTAwKSAvIDEwMH0gJHt0aGlzLmV4dGVuc2lvbnNbZXh0ZW5zaW9uSW5kZXhdfWA7XHJcbiAgICAgICAgfVxyXG5cclxuICAgICAgICByZXR1cm4gdGhpcy5jYWxjdWxhdGVTaXplKHNpemUgLyAxMDI0LCBleHRlbnNpb25JbmRleCArIDEpO1xyXG4gICAgfVxyXG5cclxuICAgIHB1YmxpYyBnZXRGaWxlVHlwZShmaWxlOiBGaWxlKTogc3RyaW5nIHtcclxuICAgICAgICByZXR1cm4gT2JqZWN0LmtleXMoRmlsZVVwbG9hZFR5cGVzKS5maW5kKChrZXkpID0+IEZpbGVVcGxvYWRUeXBlc1trZXldID09PSBmaWxlLnR5cGUpO1xyXG4gICAgfVxyXG59XHJcbiJdfQ== |
@@ -9,3 +9,3 @@ import { BehaviorSubject, Subject } from 'rxjs'; | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,missingReturn,uselessCode} checked by tsc | ||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
@@ -22,3 +22,3 @@ /** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,missingReturn,uselessCode} checked by tsc | ||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
@@ -75,2 +75,3 @@ /** @enum {number} */ | ||
/** | ||
* @private | ||
* @param {?} validators | ||
@@ -122,2 +123,3 @@ * @return {?} | ||
* when multiple files are uploaded | ||
* @private | ||
* @param {?} files | ||
@@ -127,3 +129,7 @@ * @return {?} | ||
addMultipleFiles(files) { | ||
files.forEach(file => this.files.add(file)); | ||
files.forEach((/** | ||
* @param {?} file | ||
* @return {?} | ||
*/ | ||
file => this.files.add(file))); | ||
this.validate(); | ||
@@ -240,2 +246,3 @@ this.valueChanges.next(Array.from(this.files.values())); | ||
/** | ||
* @private | ||
* @return {?} | ||
@@ -247,3 +254,11 @@ */ | ||
const currentState = this.valid; | ||
this.errors = this.validators.map((validator) => validator(this)).filter((isInvalid) => isInvalid); | ||
this.errors = this.validators.map((/** | ||
* @param {?} validator | ||
* @return {?} | ||
*/ | ||
(validator) => validator(this))).filter((/** | ||
* @param {?} isInvalid | ||
* @return {?} | ||
*/ | ||
(isInvalid) => isInvalid)); | ||
if (currentState !== this.valid) { | ||
@@ -261,3 +276,3 @@ this.statusChanged.next(this.valid ? STATUS.VALID : STATUS.INVALID); | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,missingReturn,uselessCode} checked by tsc | ||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
@@ -334,3 +349,3 @@ /** @enum {string} */ | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,missingReturn,uselessCode} checked by tsc | ||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
@@ -351,3 +366,3 @@ class FileUploadService { | ||
const div = this.renderer.createElement('div'); | ||
return (('draggable' in div) || ('ondragstart' in div && 'ondrop' in div)) && FormData && !!FileReader; | ||
return (('draggable' in div) || ('ondragstart' in div && 'ondrop' in div)); | ||
} | ||
@@ -373,3 +388,7 @@ /** | ||
getFileType(file) { | ||
return Object.keys(FileUploadTypes).find((key) => FileUploadTypes[key] === file.type); | ||
return Object.keys(FileUploadTypes).find((/** | ||
* @param {?} key | ||
* @return {?} | ||
*/ | ||
(key) => FileUploadTypes[key] === file.type)); | ||
} | ||
@@ -387,3 +406,3 @@ } | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,missingReturn,uselessCode} checked by tsc | ||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
@@ -409,3 +428,3 @@ /** @type {?} */ | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,missingReturn,uselessCode} checked by tsc | ||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
@@ -429,3 +448,3 @@ /** @type {?} */ | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,missingReturn,uselessCode} checked by tsc | ||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
@@ -464,6 +483,12 @@ /** @type {?} */ | ||
this.subscriptions = []; | ||
this.onChange = () => { }; | ||
this.onTouch = () => { | ||
this.onChange = (/** | ||
* @return {?} | ||
*/ | ||
() => { }); | ||
this.onTouch = (/** | ||
* @return {?} | ||
*/ | ||
() => { | ||
this.renderer.addClass(this.hostElementRef.nativeElement, TOUCHED); | ||
}; | ||
}); | ||
} | ||
@@ -486,5 +511,13 @@ /** | ||
this.cdr.detach(); | ||
this.hooks.forEach((hook) => hook()); | ||
this.hooks.forEach((/** | ||
* @param {?} hook | ||
* @return {?} | ||
*/ | ||
(hook) => hook())); | ||
this.hooks.length = 0; | ||
this.subscriptions.forEach((subscription) => subscription.unsubscribe()); | ||
this.subscriptions.forEach((/** | ||
* @param {?} subscription | ||
* @return {?} | ||
*/ | ||
(subscription) => subscription.unsubscribe())); | ||
this.subscriptions.length = 0; | ||
@@ -505,19 +538,57 @@ } | ||
/** | ||
* @private | ||
* @return {?} | ||
*/ | ||
setEvents() { | ||
['drag', 'dragstart', 'dragend', 'dragover', 'dragenter', 'dragleave', 'drop'].forEach((eventName) => { | ||
this.hooks.push(this.renderer.listen(this.document, eventName, (event) => this.preventDragEvents(event))); | ||
}); | ||
['dragover', 'dragenter'].forEach((eventName) => { | ||
this.hooks.push(this.renderer.listen(this.hostElementRef.nativeElement, eventName, (event) => this.onDragOver(event))); | ||
}); | ||
['dragleave', 'dragend', 'drop'].forEach((eventName) => { | ||
this.hooks.push(this.renderer.listen(this.hostElementRef.nativeElement, eventName, (event) => this.onDragLeave(event))); | ||
}); | ||
this.subscriptions.push(this.control.statusChanges.subscribe((status) => this.checkAndMarkAsDisabled())); | ||
this.subscriptions.push(this.control.valueChanges.subscribe((files) => this.renderView())); | ||
this.subscriptions.push(this.control.listVisibilityChanges.subscribe((status) => this.toggleListVisibility())); | ||
['drag', 'dragstart', 'dragend', 'dragover', 'dragenter', 'dragleave', 'drop'].forEach((/** | ||
* @param {?} eventName | ||
* @return {?} | ||
*/ | ||
(eventName) => { | ||
this.hooks.push(this.renderer.listen(this.document, eventName, (/** | ||
* @param {?} event | ||
* @return {?} | ||
*/ | ||
(event) => this.preventDragEvents(event)))); | ||
})); | ||
['dragover', 'dragenter'].forEach((/** | ||
* @param {?} eventName | ||
* @return {?} | ||
*/ | ||
(eventName) => { | ||
this.hooks.push(this.renderer.listen(this.hostElementRef.nativeElement, eventName, (/** | ||
* @param {?} event | ||
* @return {?} | ||
*/ | ||
(event) => this.onDragOver(event)))); | ||
})); | ||
['dragleave', 'dragend', 'drop'].forEach((/** | ||
* @param {?} eventName | ||
* @return {?} | ||
*/ | ||
(eventName) => { | ||
this.hooks.push(this.renderer.listen(this.hostElementRef.nativeElement, eventName, (/** | ||
* @param {?} event | ||
* @return {?} | ||
*/ | ||
(event) => this.onDragLeave(event)))); | ||
})); | ||
this.subscriptions.push(this.control.statusChanges.subscribe((/** | ||
* @param {?} status | ||
* @return {?} | ||
*/ | ||
(status) => this.checkAndMarkAsDisabled()))); | ||
this.subscriptions.push(this.control.valueChanges.subscribe((/** | ||
* @param {?} files | ||
* @return {?} | ||
*/ | ||
(files) => this.renderView()))); | ||
this.subscriptions.push(this.control.listVisibilityChanges.subscribe((/** | ||
* @param {?} status | ||
* @return {?} | ||
*/ | ||
(status) => this.toggleListVisibility()))); | ||
} | ||
/** | ||
* @private | ||
* @return {?} | ||
@@ -536,2 +607,3 @@ */ | ||
/** | ||
* @private | ||
* @param {?} event | ||
@@ -545,2 +617,3 @@ * @return {?} | ||
/** | ||
* @private | ||
* @return {?} | ||
@@ -555,2 +628,3 @@ */ | ||
/** | ||
* @private | ||
* @return {?} | ||
@@ -564,2 +638,3 @@ */ | ||
/** | ||
* @private | ||
* @return {?} | ||
@@ -571,2 +646,3 @@ */ | ||
/** | ||
* @private | ||
* @return {?} | ||
@@ -584,2 +660,3 @@ */ | ||
* on file over add class name | ||
* @private | ||
* @param {?} event | ||
@@ -593,2 +670,3 @@ * @return {?} | ||
* on mouse out remove class name | ||
* @private | ||
* @param {?} event | ||
@@ -627,2 +705,3 @@ * @return {?} | ||
/** | ||
* @private | ||
* @return {?} | ||
@@ -635,6 +714,11 @@ */ | ||
* ControlValueAccessor implementation | ||
* @private | ||
* @return {?} | ||
*/ | ||
connectToForm() { | ||
this.subscriptions.push(this.control.valueChanges.subscribe((v) => this.onChange(v))); | ||
this.subscriptions.push(this.control.valueChanges.subscribe((/** | ||
* @param {?} v | ||
* @return {?} | ||
*/ | ||
(v) => this.onChange(v)))); | ||
} | ||
@@ -718,3 +802,6 @@ /** | ||
provide: NG_VALUE_ACCESSOR, | ||
useExisting: forwardRef(() => FileUploadComponent), | ||
useExisting: forwardRef((/** | ||
* @return {?} | ||
*/ | ||
() => FileUploadComponent)), | ||
multi: true | ||
@@ -751,3 +838,3 @@ } | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,missingReturn,uselessCode} checked by tsc | ||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
@@ -816,3 +903,3 @@ class FileUploadListItemComponent { | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,missingReturn,uselessCode} checked by tsc | ||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
@@ -879,3 +966,3 @@ class FileUploadIconComponent { | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,missingReturn,uselessCode} checked by tsc | ||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
@@ -898,5 +985,8 @@ class FileUploadAttributeComponent { | ||
this.subscriptions = []; | ||
this.onTouch = () => { | ||
this.onTouch = (/** | ||
* @return {?} | ||
*/ | ||
() => { | ||
this.renderer.addClass(this.hostElementRef.nativeElement, TOUCHED); | ||
}; | ||
}); | ||
} | ||
@@ -924,5 +1014,13 @@ /** | ||
ngOnDestroy() { | ||
this.hooks.forEach((hook) => hook()); | ||
this.hooks.forEach((/** | ||
* @param {?} hook | ||
* @return {?} | ||
*/ | ||
(hook) => hook())); | ||
this.hooks.length = 0; | ||
this.subscriptions.forEach((subscription) => subscription.unsubscribe()); | ||
this.subscriptions.forEach((/** | ||
* @param {?} subscription | ||
* @return {?} | ||
*/ | ||
(subscription) => subscription.unsubscribe())); | ||
this.subscriptions.length = 0; | ||
@@ -943,24 +1041,62 @@ } | ||
/** | ||
* @private | ||
* @return {?} | ||
*/ | ||
setEvents() { | ||
['drag', 'dragstart', 'dragend', 'dragover', 'dragenter', 'dragleave', 'drop'].forEach((eventName) => { | ||
this.hooks.push(this.renderer.listen(this.document, eventName, (event) => this.preventDragEvents(event))); | ||
}); | ||
['dragover', 'dragenter'].forEach((eventName) => { | ||
this.hooks.push(this.renderer.listen(this.hostElementRef.nativeElement, eventName, (event) => this.onDragOver(event))); | ||
}); | ||
['dragleave', 'dragend', 'drop'].forEach((eventName) => { | ||
this.hooks.push(this.renderer.listen(this.hostElementRef.nativeElement, eventName, (event) => { | ||
['drag', 'dragstart', 'dragend', 'dragover', 'dragenter', 'dragleave', 'drop'].forEach((/** | ||
* @param {?} eventName | ||
* @return {?} | ||
*/ | ||
(eventName) => { | ||
this.hooks.push(this.renderer.listen(this.document, eventName, (/** | ||
* @param {?} event | ||
* @return {?} | ||
*/ | ||
(event) => this.preventDragEvents(event)))); | ||
})); | ||
['dragover', 'dragenter'].forEach((/** | ||
* @param {?} eventName | ||
* @return {?} | ||
*/ | ||
(eventName) => { | ||
this.hooks.push(this.renderer.listen(this.hostElementRef.nativeElement, eventName, (/** | ||
* @param {?} event | ||
* @return {?} | ||
*/ | ||
(event) => this.onDragOver(event)))); | ||
})); | ||
['dragleave', 'dragend', 'drop'].forEach((/** | ||
* @param {?} eventName | ||
* @return {?} | ||
*/ | ||
(eventName) => { | ||
this.hooks.push(this.renderer.listen(this.hostElementRef.nativeElement, eventName, (/** | ||
* @param {?} event | ||
* @return {?} | ||
*/ | ||
(event) => { | ||
if (this.control.disabled && eventName === 'dragleave' || eventName !== 'dragleave') { | ||
this.onDragLeave(event); | ||
} | ||
})); | ||
}); | ||
['dragleave'].forEach((eventName) => { | ||
this.hooks.push(this.renderer.listen(this.overlay.nativeElement, eventName, (event) => this.onDragLeave(event))); | ||
}); | ||
this.subscriptions.push(this.control.statusChanges.subscribe((status) => this.checkAndMarkAsDisabled())); | ||
}))); | ||
})); | ||
['dragleave'].forEach((/** | ||
* @param {?} eventName | ||
* @return {?} | ||
*/ | ||
(eventName) => { | ||
this.hooks.push(this.renderer.listen(this.overlay.nativeElement, eventName, (/** | ||
* @param {?} event | ||
* @return {?} | ||
*/ | ||
(event) => this.onDragLeave(event)))); | ||
})); | ||
this.subscriptions.push(this.control.statusChanges.subscribe((/** | ||
* @param {?} status | ||
* @return {?} | ||
*/ | ||
(status) => this.checkAndMarkAsDisabled()))); | ||
} | ||
/** | ||
* @private | ||
* @return {?} | ||
@@ -977,2 +1113,3 @@ */ | ||
/** | ||
* @private | ||
* @param {?} event | ||
@@ -987,2 +1124,3 @@ * @return {?} | ||
* on file over add class name | ||
* @private | ||
* @param {?} event | ||
@@ -996,2 +1134,3 @@ * @return {?} | ||
* on mouse out remove class name | ||
* @private | ||
* @param {?} event | ||
@@ -1075,3 +1214,3 @@ * @return {?} | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,missingReturn,uselessCode} checked by tsc | ||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
@@ -1082,6 +1221,12 @@ /** | ||
*/ | ||
const checkFileSize = (file, maxSize, minSize = 0) => { | ||
const checkFileSize = (/** | ||
* @param {?} file | ||
* @param {?} maxSize | ||
* @param {?=} minSize | ||
* @return {?} | ||
*/ | ||
(file, maxSize, minSize = 0) => { | ||
return (!IsNullOrEmpty(maxSize) && file.size > maxSize) || file.size < minSize ? | ||
{ maxSize, minSize, actual: file.size, file } : null; | ||
}; | ||
}); | ||
/** @type {?} */ | ||
@@ -1096,3 +1241,8 @@ const FILE_EXT_REG = /(^[.]\w*)$/m; | ||
*/ | ||
const checkFileType = (file, allowedTypes) => { | ||
const checkFileType = (/** | ||
* @param {?} file | ||
* @param {?} allowedTypes | ||
* @return {?} | ||
*/ | ||
(file, allowedTypes) => { | ||
/** @type {?} */ | ||
@@ -1108,9 +1258,13 @@ const fileExtension = `.${file.name.split('.').pop()}`; | ||
return { allowedTypes, actual: file.type, file }; | ||
}; | ||
}); | ||
/** @type {?} */ | ||
const checkValueType = (value) => { | ||
const checkValueType = (/** | ||
* @param {?} value | ||
* @return {?} | ||
*/ | ||
(value) => { | ||
if (!Array.isArray(value)) { | ||
throw Error(`FormControl.setValue was provided with wrong argument type, ${value} was provided instead Array<File>`); | ||
} | ||
}; | ||
}); | ||
// @dynamic | ||
@@ -1126,3 +1280,7 @@ class FileUploadValidators { | ||
static fileSize(maxSize) { | ||
return (control) => { | ||
return (/** | ||
* @param {?} control | ||
* @return {?} | ||
*/ | ||
(control) => { | ||
/** @type {?} */ | ||
@@ -1135,7 +1293,15 @@ const files = control.value; | ||
/** @type {?} */ | ||
const toLargeFiles = files.map((file) => checkFileSize(file, maxSize)) | ||
.filter((error) => error); | ||
const toLargeFiles = files.map((/** | ||
* @param {?} file | ||
* @return {?} | ||
*/ | ||
(file) => checkFileSize(file, maxSize))) | ||
.filter((/** | ||
* @param {?} error | ||
* @return {?} | ||
*/ | ||
(error) => error)); | ||
return toLargeFiles.length > 0 ? | ||
{ 'fileSize': toLargeFiles } : null; | ||
}; | ||
}); | ||
} | ||
@@ -1149,3 +1315,7 @@ /** | ||
static sizeRange({ minSize, maxSize }) { | ||
return (control) => { | ||
return (/** | ||
* @param {?} control | ||
* @return {?} | ||
*/ | ||
(control) => { | ||
/** @type {?} */ | ||
@@ -1158,7 +1328,15 @@ const files = control.value; | ||
/** @type {?} */ | ||
const sizeMismatch = files.map((file) => checkFileSize(file, maxSize, minSize)) | ||
.filter((error) => error); | ||
const sizeMismatch = files.map((/** | ||
* @param {?} file | ||
* @return {?} | ||
*/ | ||
(file) => checkFileSize(file, maxSize, minSize))) | ||
.filter((/** | ||
* @param {?} error | ||
* @return {?} | ||
*/ | ||
(error) => error)); | ||
return sizeMismatch.length > 0 ? | ||
{ 'sizeRange': sizeMismatch } : null; | ||
}; | ||
}); | ||
} | ||
@@ -1172,3 +1350,7 @@ /** | ||
static filesLimit(numFiles) { | ||
return (control) => { | ||
return (/** | ||
* @param {?} control | ||
* @return {?} | ||
*/ | ||
(control) => { | ||
/** @type {?} */ | ||
@@ -1182,3 +1364,3 @@ const files = control.value; | ||
{ 'filesLimit': { 'max': numFiles, 'actual': files.length } } : null; | ||
}; | ||
}); | ||
} | ||
@@ -1204,3 +1386,7 @@ /** | ||
static accept(allowedFileTypes) { | ||
return (control) => { | ||
return (/** | ||
* @param {?} control | ||
* @return {?} | ||
*/ | ||
(control) => { | ||
/** @type {?} */ | ||
@@ -1213,7 +1399,15 @@ const files = control.value; | ||
/** @type {?} */ | ||
const notAllowedFiles = files.map((file) => checkFileType(file, allowedFileTypes)) | ||
.filter((error) => error); | ||
const notAllowedFiles = files.map((/** | ||
* @param {?} file | ||
* @return {?} | ||
*/ | ||
(file) => checkFileType(file, allowedFileTypes))) | ||
.filter((/** | ||
* @param {?} error | ||
* @return {?} | ||
*/ | ||
(error) => error)); | ||
return notAllowedFiles.length > 0 ? | ||
{ 'fileTypes': notAllowedFiles } : null; | ||
}; | ||
}); | ||
} | ||
@@ -1224,3 +1418,3 @@ } | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,missingReturn,uselessCode} checked by tsc | ||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
@@ -1270,2 +1464,3 @@ /** | ||
/** | ||
* @private | ||
* @return {?} | ||
@@ -1294,3 +1489,6 @@ */ | ||
provide: NG_VALIDATORS, | ||
useExisting: forwardRef(() => FileSizeValidator), | ||
useExisting: forwardRef((/** | ||
* @return {?} | ||
*/ | ||
() => FileSizeValidator)), | ||
multi: true | ||
@@ -1350,2 +1548,3 @@ }], | ||
/** | ||
* @private | ||
* @return {?} | ||
@@ -1362,3 +1561,6 @@ */ | ||
provide: NG_VALIDATORS, | ||
useExisting: forwardRef(() => FilesLimitValidator), | ||
useExisting: forwardRef((/** | ||
* @return {?} | ||
*/ | ||
() => FilesLimitValidator)), | ||
multi: true | ||
@@ -1414,2 +1616,3 @@ }], | ||
/** | ||
* @private | ||
* @return {?} | ||
@@ -1426,3 +1629,6 @@ */ | ||
provide: NG_VALIDATORS, | ||
useExisting: forwardRef(() => FilesLimitValidator), | ||
useExisting: forwardRef((/** | ||
* @return {?} | ||
*/ | ||
() => FilesLimitValidator)), | ||
multi: true | ||
@@ -1439,3 +1645,3 @@ }], | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,missingReturn,uselessCode} checked by tsc | ||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
@@ -1491,3 +1697,3 @@ class FileUploadModule { | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,missingReturn,uselessCode} checked by tsc | ||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
@@ -1497,3 +1703,3 @@ | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,missingReturn,uselessCode} checked by tsc | ||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
@@ -1500,0 +1706,0 @@ |
@@ -6,3 +6,3 @@ { | ||
"bugs": "https://github.com/pIvan/file-upload/issues", | ||
"version": "1.1.9", | ||
"version": "1.1.10", | ||
"author": "Ivan Pintar", | ||
@@ -28,42 +28,39 @@ "license": "MIT", | ||
}, | ||
"peerDependencies": { | ||
"core-js": "^2.5.4", | ||
"zone.js": "^0.8.26" | ||
}, | ||
"peerDependencies": {}, | ||
"devDependencies": { | ||
"@angular/animations": "^7.1.4", | ||
"@angular/common": "^7.1.4", | ||
"@angular/compiler": "^7.1.4", | ||
"@angular/core": "^7.1.4", | ||
"@angular/forms": "^7.1.4", | ||
"@angular/http": "^7.1.4", | ||
"@angular/platform-browser": "^7.1.4", | ||
"@angular/platform-browser-dynamic": "^7.1.4", | ||
"@angular/router": "^7.1.4", | ||
"core-js": "^2.5.4", | ||
"rxjs": "^6.3.3", | ||
"zone.js": "^0.8.26", | ||
"@angular/compiler-cli": "^7.1.4", | ||
"@angular-devkit/build-angular": "~0.6.8", | ||
"typescript": "~3.1.6", | ||
"@angular/cli": "~7.1.4", | ||
"@angular/language-service": "^7.1.4", | ||
"@types/jasmine": "~2.8.6", | ||
"@angular-devkit/build-angular": "~0.13.3", | ||
"@angular/animations": "^7.2.7", | ||
"@angular/cli": "~7.3.3", | ||
"@angular/common": "^7.2.7", | ||
"@angular/compiler": "^7.2.7", | ||
"@angular/compiler-cli": "^7.2.7", | ||
"@angular/core": "^7.2.7", | ||
"@angular/forms": "^7.2.7", | ||
"@angular/http": "^7.2.7", | ||
"@angular/language-service": "^7.2.7", | ||
"@angular/platform-browser": "^7.2.7", | ||
"@angular/platform-browser-dynamic": "^7.2.7", | ||
"@angular/router": "^7.2.7", | ||
"@types/jasmine": "~3.3.9", | ||
"@types/jasminewd2": "~2.0.3", | ||
"@types/node": "~8.9.4", | ||
"codelyzer": "~4.2.1", | ||
"jasmine-core": "~2.99.1", | ||
"@types/node": "~11.9.5", | ||
"bootstrap": "4.3.1", | ||
"codelyzer": "~4.5.0", | ||
"core-js": "^2.6.5", | ||
"google-code-prettify": "1.0.5", | ||
"jasmine-core": "~3.3.0", | ||
"jasmine-spec-reporter": "~4.2.1", | ||
"karma": "~1.7.1", | ||
"karma": "~4.0.1", | ||
"karma-chrome-launcher": "~2.2.0", | ||
"karma-coverage-istanbul-reporter": "~2.0.0", | ||
"karma-jasmine": "~1.1.1", | ||
"karma-jasmine-html-reporter": "^0.2.2", | ||
"protractor": "~5.3.0", | ||
"ts-node": "~5.0.1", | ||
"tslint": "~5.9.1", | ||
"ng-packagr": "4.4.5", | ||
"tsickle": "^0.33.1", | ||
"bootstrap": "4.0.0-alpha.6", | ||
"google-code-prettify": "1.0.5" | ||
"karma-coverage-istanbul-reporter": "~2.0.5", | ||
"karma-jasmine": "~2.0.1", | ||
"karma-jasmine-html-reporter": "^1.4.0", | ||
"ng-packagr": "^4.7.1", | ||
"protractor": "~5.4.2", | ||
"rxjs": "^6.4.0", | ||
"ts-node": "~8.0.2", | ||
"tsickle": "^0.34.3", | ||
"tslint": "~5.13.0", | ||
"typescript": "^3.2.4", | ||
"zone.js": "^0.8.29" | ||
}, | ||
@@ -70,0 +67,0 @@ "dependencies": { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1017443
1
10822