@iplab/ngx-file-upload
Advanced tools
Comparing version 1.1.10 to 1.2.0
@@ -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},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 M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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,n,i,o,r){"use strict";function s(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var i,o,r=n.call(t),s=[];try{for(;(void 0===e||0<e--)&&!(i=r.next()).done;)s.push(i.value)}catch(a){o={error:a}}finally{try{i&&!i.done&&(n=r["return"])&&n.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="click",p="focus",h="blur",u=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.eventsChanged=new e.Subject,this.statusChanges=this.statusChanged.asObservable(),this.valueChanges=new e.BehaviorSubject([]),this.listVisibilityChanges=new e.BehaviorSubject(this.listVisible),this.eventsChanges=this.eventsChanged.asObservable(),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 n(){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.click=function(){return this.eventsChanged.next(c),this},t.prototype.focus=function(){return this.eventsChanged.next(p),this},t.prototype.blur=function(){return this.eventsChanged.next(h),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}(),d={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"},f=function(){function t(t){this.renderer=t,this.extensions=["B","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(d).find(function(t){return d[t]===e.type})},t.decorators=[{type:o.Injectable}],t.ctorParameters=function(){return[{type:o.Renderer2}]},t}(),g=n.trigger("insertAnimation",[n.transition("* => *",[n.query(":leave",[n.stagger(30,[n.animate(".3s",n.style({opacity:0}))])],{optional:!0}),n.query(":enter",[n.style({opacity:0}),n.stagger(30,[n.animate(".3s",n.style({opacity:1}))])],{optional:!0})])]),v=n.trigger("zoomAnimation",[n.transition("static => zoomOut",[n.animate(250,n.style({transform:"translate(-50%, -50%) scale(2, 2)",opacity:0}))]),n.transition("static => zoomIn",[n.query(":self",[n.style({transform:"translate(-50%, -50%) scale(.2, .2)",opacity:0,top:"50%",left:"50%",margin:0}),n.stagger(50,[n.animate(250,n.style({transform:"translate(-50%, -50%) scale(1, 1)",opacity:1}))])])])]),m="dragover",y="ng-touched",b=function(){function t(t,e,n,i,o){var r=this;this.fileUploadService=t,this.hostElementRef=e,this.renderer=n,this.document=i,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,y)}}return t.prototype.ngOnInit=function(){a(this.control)&&(this.control=new u),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()})),this.subscriptions.push(this.control.eventsChanges.subscribe(function(t){return e.triggerEvent(t)}))},t.prototype.triggerEvent=function(t){"function"==typeof this.label.nativeElement[t]&&this.label.nativeElement[t]()},t.prototype.onKeyDown=function(t){13!==t.keyCode&&32!==t.keyCode||(t.preventDefault(),this.control.click())},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,m)},t.prototype.onDragLeave=function(t){this.renderer.removeClass(this.hostElementRef.nativeElement,m)},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:not([simple])",template:'<label #labelRef class="upload-input" tabindex="0" (keydown)="onKeyDown($event)" [@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" tabindex="-1" 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:[f,{provide:r.NG_VALUE_ACCESSOR,useExisting:o.forwardRef(function(){return t}),multi:!0}],changeDetection:o.ChangeDetectionStrategy.OnPush,animations:[v,g],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%);outline:0}: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:focus,:host(:not(.disabled)) .upload-input:hover{color:#80a9d2}:host(.dragover:not(.disabled)) .icon svg,:host(:not(.disabled)) .upload-input:focus 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:f},{type:o.ElementRef},{type:o.Renderer2},{type:undefined,decorators:[{type:o.Inject,args:[i.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"]}],label:[{type:o.ViewChild,args:["labelRef"]}],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(){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}.file-info{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.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:f}]},t.propDecorators={index:[{type:o.Input}],file:[{type:o.Input}],control:[{type:o.Input}]},t}(),C=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.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,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 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:f}]},t.propDecorators={file:[{type:o.Input}]},t}(),z=function(){function t(t,e,n,i){var o=this;this.fileUploadService=t,this.hostElementRef=e,this.renderer=n,this.document=i,this.control=null,this.templateRef=null,this.hooks=[],this.subscriptions=[],this.onTouch=function(){o.renderer.addClass(o.hostElementRef.nativeElement,y)}}return t.prototype.ngOnInit=function(){a(this.control)&&(this.control=new u)},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 n=this;["drag","dragstart","dragend","dragover","dragenter","dragleave","drop"].forEach(function(t){n.hooks.push(n.renderer.listen(n.document,t,function(t){return n.preventDragEvents(t)}))}),["dragover","dragenter"].forEach(function(t){n.hooks.push(n.renderer.listen(n.hostElementRef.nativeElement,t,function(t){return n.onDragOver(t)}))}),["dragleave","dragend","drop"].forEach(function(e){n.hooks.push(n.renderer.listen(n.hostElementRef.nativeElement,e,function(t){(n.control.disabled&&"dragleave"===e||"dragleave"!==e)&&n.onDragLeave(t)}))}),["dragleave"].forEach(function(t){n.hooks.push(n.renderer.listen(n.overlay.nativeElement,t,function(t){return n.onDragLeave(t)}))}),this.subscriptions.push(this.control.statusChanges.subscribe(function(t){return n.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,m)},t.prototype.onDragLeave=function(t){this.renderer.removeClass(this.hostElementRef.nativeElement,m)},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:[f],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:f},{type:o.ElementRef},{type:o.Renderer2},{type:undefined,decorators:[{type:o.Inject,args:[i.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}(),D=function(){function t(t,e,n,i){var o=this;this.fileUploadService=t,this.hostElementRef=e,this.renderer=n,this.cdr=i,this.control=null,this.buttonRef=null,this.placeholderRef=null,this.subscriptions=[],this.onChange=function(){},this.onTouch=function(){o.renderer.addClass(o.hostElementRef.nativeElement,y)}}return t.prototype.ngOnInit=function(){a(this.control)&&(this.control=new u),this.setEvents(),this.checkAndMarkAsDisabled(),this.connectToForm()},t.prototype.ngOnDestroy=function(){this.cdr.detach(),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;this.subscriptions.push(this.control.statusChanges.subscribe(function(t){return e.checkAndMarkAsDisabled()})),this.subscriptions.push(this.control.eventsChanges.subscribe(function(t){return e.triggerEvent(t)}))},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.onInputChange=function(t){var e=t.target;this.control.disabled||this.control.setValue(Array.from(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.triggerEvent=function(t){"function"==typeof this.label.nativeElement[t]&&this.label.nativeElement[t]()},t.prototype.onKeyDown=function(t){13!==t.keyCode&&32!==t.keyCode||(t.preventDefault(),this.control.click())},t.decorators=[{type:o.Component,args:[{selector:"file-upload[simple]",template:'<div class="upload-text">\r\n <ng-container *ngTemplateOutlet="placeholderRef ? placeholderRef : defaultPlaceholderTemplate; context: { control: control }"></ng-container>\r\n\r\n <ng-template #defaultPlaceholderTemplate>\r\n <ng-container *ngIf="control.size > 0; else emptyList">\r\n <ng-template ngFor let-file let-i="index" [ngForOf]="control.valueChanges | async">\r\n <span class="file-name">{{ file.name }}</span>\r\n </ng-template>\r\n </ng-container>\r\n \r\n <ng-template #emptyList>\r\n Select a file...\r\n </ng-template>\r\n </ng-template>\r\n</div>\r\n\r\n<label #labelRef class="upload-button" tabindex="0" (keydown)="onKeyDown($event)">\r\n <ng-container *ngTemplateOutlet="buttonRef ? buttonRef : defaultButtonTemplate; context: { control: control }"></ng-container>\r\n\r\n <ng-template #defaultButtonTemplate>\r\n <div class="button">\r\n <div class="icon">\r\n <svg vi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n \r\n <span class="button-text">Browse</span>\r\n </div>\r\n </ng-template>\r\n\r\n <input #inputRef type="file" class="files-input" tabindex="-1" (change)="onInputChange($event)">\r\n</label>',providers:[f,{provide:r.NG_VALUE_ACCESSOR,useExisting:o.forwardRef(function(){return t}),multi:!0}],changeDetection:o.ChangeDetectionStrategy.OnPush,styles:[":host,:host>*{box-sizing:border-box}:host{display:flex;line-height:1.5;color:#555;background-color:#fff;border:1px solid #ddd;border-radius:4px;box-shadow:inset 0 4px 7px rgba(0,0,0,.05)}:host(.disabled){opacity:.5}.files-input{width:.1px;height:.1px;opacity:0;position:absolute;left:-100%;top:-100%;overflow:hidden}.icon{height:24px;width:24px;display:inline-block}.icon svg{fill:#555}.upload-button{cursor:pointer;display:block;padding:2px 4px;background-color:#eee;border-left:1px solid #ddd;border-radius:0 4px 4px 0;min-width:100px;color:#555;margin:0;position:relative;outline:0}.upload-text{display:block;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;width:100%;padding:5px 10px;font-size:14px;height:30px}.button-text{vertical-align:middle;padding-left:10px}:host(.disabled) .upload-button{cursor:not-allowed}:host(:not(.disabled)) .upload-button:focus,:host(:not(.disabled)) .upload-button:hover{color:#80a9d2}:host(:not(.disabled)) .upload-button:focus svg,:host(:not(.disabled)) .upload-button:hover svg{fill:#80a9d2}"]}]}],t.ctorParameters=function(){return[{type:f},{type:o.ElementRef},{type:o.Renderer2},{type:o.ChangeDetectorRef}]},t.propDecorators={control:[{type:o.Input}],buttonRef:[{type:o.ContentChild,args:["button"]}],placeholderRef:[{type:o.ContentChild,args:["placeholder"]}],input:[{type:o.ViewChild,args:["inputRef"]}],label:[{type:o.ViewChild,args:["labelRef"]}],hasFiles:[{type:o.HostBinding,args:["class.has-files"]}],isInvalid:[{type:o.HostBinding,args:["class.ng-invalid"]}]},t}(),w=function(t,e,n){return void 0===n&&(n=0),!a(e)&&t.size>e||t.size<n?{maxSize:e,minSize:n,actual:t.size,file:t}:null},E=/(^[.]\w*)$/m,V=function(t,e){var n,i,o="."+t.name.split(".").pop();try{for(var r=function l(t){var e="function"==typeof Symbol&&t[Symbol.iterator],n=0;return e?e.call(t):{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}}}(e),s=r.next();!s.done;s=r.next()){var a=s.value;if(E.test(a)?a===o:new RegExp(a).test(t.type))return null}}catch(c){n={error:c}}finally{try{s&&!s.done&&(i=r["return"])&&i.call(r)}finally{if(n)throw n.error}}return{allowedTypes:e,actual:t.type,file:t}},A=function(t){if(!Array.isArray(t))throw Error("FormControl.setValue was provided with wrong argument type, "+t+" was provided instead Array<File>")},I=function(){function t(){}return t.fileSize=function(i){return function(t){var e=t.value;if(a(e))return null;A(e);var n=e.map(function(t){return w(t,i)}).filter(function(t){return t});return 0<n.length?{fileSize:n}:null}},t.sizeRange=function(t){var i=t.minSize,o=t.maxSize;return function(t){var e=t.value;if(a(e))return null;A(e);var n=e.map(function(t){return w(t,o,i)}).filter(function(t){return t});return 0<n.length?{sizeRange:n}:null}},t.filesLimit=function(n){return function(t){var e=t.value;return a(e)?null:(A(e),e.length>n?{filesLimit:{max:n,actual:e.length}}:null)}},t.accept=function(i){return function(t){var e=t.value;if(a(e))return null;A(e);var n=e.map(function(t){return V(t,i)}).filter(function(t){return t});return 0<n.length?{fileTypes:n}:null}},t}(),S=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=I.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}(),T=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=I.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}(),k=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=I.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 T}),multi:!0}],host:{"[attr.accept]":"accept ? accept : null"}}]}],t.propDecorators={accept:[{type:o.Input}]},t}(),R=function(){function t(t){this.injector=t}return t.prototype.ngDoBootstrap=function(){},t.decorators=[{type:o.NgModule,args:[{imports:[i.CommonModule,r.ReactiveFormsModule,r.FormsModule],declarations:[b,x,C,z,S,T,k,D],exports:[b,z,S,T,k,D],entryComponents:[b]}]}],t.ctorParameters=function(){return[{type:o.Injector}]},t}();t.FileUploadControl=u,t.FileUploadValidators=I,t.FileUploadTypes=d,t.FileUploadModule=R,t.ɵd=g,t.ɵc=v,t.ɵg=z,t.ɵf=C,t.ɵe=x,t.ɵa=b,t.ɵk=D,t.ɵh=S,t.ɵj=k,t.ɵi=T,t.ɵb=f,Object.defineProperty(t,"__esModule",{value:!0})}); | ||
//# sourceMappingURL=iplab-ngx-file-upload.umd.min.js.map |
@@ -18,2 +18,3 @@ import { OnInit, ElementRef, Renderer2, OnDestroy, TemplateRef, ChangeDetectorRef } from '@angular/core'; | ||
input: ElementRef<HTMLInputElement>; | ||
label: ElementRef<HTMLLabelElement>; | ||
templateContext: { | ||
@@ -34,2 +35,4 @@ $implicit: boolean; | ||
private setEvents; | ||
private triggerEvent; | ||
onKeyDown(event: KeyboardEvent): void; | ||
private checkAndMarkAsDisabled; | ||
@@ -36,0 +39,0 @@ private preventDragEvents; |
@@ -55,3 +55,3 @@ /** | ||
`, | ||
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}"] | ||
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}.file-info{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.remove-btn{font-size:12px;cursor:pointer}.remove-btn svg{display:inline-block;vertical-align:-20%;height:18px;width:18px}"] | ||
}] } | ||
@@ -58,0 +58,0 @@ ]; |
@@ -150,7 +150,32 @@ /** | ||
(status) => this.toggleListVisibility()))); | ||
this.subscriptions.push(this.control.eventsChanges.subscribe((/** | ||
* @param {?} event | ||
* @return {?} | ||
*/ | ||
(event) => this.triggerEvent(event)))); | ||
} | ||
/** | ||
* @private | ||
* @param {?} event | ||
* @return {?} | ||
*/ | ||
triggerEvent(event) { | ||
if (typeof this.label.nativeElement[event] === 'function') { | ||
this.label.nativeElement[event](); | ||
} | ||
} | ||
/** | ||
* @param {?} event | ||
* @return {?} | ||
*/ | ||
onKeyDown(event) { | ||
if (event.keyCode === 13 || event.keyCode === 32) { | ||
event.preventDefault(); | ||
this.control.click(); | ||
} | ||
} | ||
/** | ||
* @private | ||
* @return {?} | ||
*/ | ||
checkAndMarkAsDisabled() { | ||
@@ -347,4 +372,4 @@ if (this.control.disabled) { | ||
{ type: 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>", | ||
selector: `file-upload:not([simple])`, | ||
template: "<label #labelRef class=\"upload-input\" tabindex=\"0\" (keydown)=\"onKeyDown($event)\" [@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\" tabindex=\"-1\" 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: [ | ||
@@ -366,3 +391,3 @@ FileUploadService, | ||
], | ||
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}"] | ||
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%);outline:0}: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:focus,:host(:not(.disabled)) .upload-input:hover{color:#80a9d2}:host(.dragover:not(.disabled)) .icon svg,:host(:not(.disabled)) .upload-input:focus 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}"] | ||
}] } | ||
@@ -383,2 +408,3 @@ ]; | ||
input: [{ type: ViewChild, args: ['inputRef',] }], | ||
label: [{ type: ViewChild, args: ['labelRef',] }], | ||
hasFiles: [{ type: HostBinding, args: ['class.has-files',] }], | ||
@@ -398,2 +424,4 @@ isInvalid: [{ type: HostBinding, args: ['class.ng-invalid',] }], | ||
/** @type {?} */ | ||
FileUploadComponent.prototype.label; | ||
/** @type {?} */ | ||
FileUploadComponent.prototype.templateContext; | ||
@@ -450,2 +478,2 @@ /** | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmlsZS11cGxvYWQuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6Im5nOi8vQGlwbGFiL25neC1maWxlLXVwbG9hZC8iLCJzb3VyY2VzIjpbImNvbXBvbmVudHMvZmlsZS11cGxvYWQuY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFBQSxPQUFPLEVBQ0gsU0FBUyxFQUNULEtBQUssRUFFTCxVQUFVLEVBQ1YsWUFBWSxFQUNaLFNBQVMsRUFFVCxXQUFXLEVBQ1gsTUFBTSxFQUNOLFdBQVcsRUFDW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Ghpcy5jb250cm9sLnNpemUgPiAwKSB7XHJcbiAgICAgICAgICAgIHRoaXMuc2hvd0xpc3QoKTtcclxuICAgICAgICB9IGVsc2Uge1xyXG4gICAgICAgICAgICB0aGlzLmhpZGVMaXN0KCk7XHJcbiAgICAgICAgfVxyXG5cclxuICAgICAgICBpZiAoZXZlbnQuZnJvbVN0YXRlID09PSAnc3RhdGljJyAmJiBldmVudC50b1N0YXRlID09PSAnem9vbU91dCcpIHtcclxuICAgICAgICAgICAgdGhpcy5yZW5kZXJlci5hZGRDbGFzcyh0aGlzLmhvc3RFbGVtZW50UmVmLm5hdGl2ZUVsZW1lbnQsICdoaWRlLXRleHQnKTtcclxuICAgICAgICB9IGVsc2Uge1xyXG4gICAgICAgICAgICB0aGlzLnJlbmRlcmVyLnJlbW92ZUNsYXNzKHRoaXMuaG9zdEVsZW1lbnRSZWYubmF0aXZlRWxlbWVudCwgJ2hpZGUtdGV4dCcpO1xyXG4gICAgICAgIH1cclxuXHJcbiAgICAgICAgaWYoZXZlbnQudG9TdGF0ZSA9PT0gJ3pvb21JbicpIHtcclxuICAgICAgICAgICAgdGhpcy56b29tVGV4dCA9ICdzdGF0aWMnO1xyXG4gICAgICAgIH1cclxuICAgIH1cclxuXHJcbiAgICBwdWJsaWMgYW5pbWF0aW9uTGlzdEZpbmlzaGVkKGV2ZW50OiBBbmltYXRpb25FdmVudCk6IHZvaWQge1xyXG4gICAgICAgIGlmIChldmVudC50b1N0YXRlID09PSAndm9pZCcpIHtcclxuICAgICAgICAgICAgdGhpcy56b29tVGV4dCA9ICd6b29tSW4nO1xyXG4gICAgICAgICAgICB0aGlzLnJlbmRlcmVyLnJlbW92ZUNsYXNzKHRoaXMuaG9zdEVsZW1lbnRSZWYubmF0aXZlRWxlbWVudCwgJ2xpc3QtdmlzaWJsZScpO1xyXG4gICAgICAgIH1cclxuICAgICAgICBpZiAoZXZlbnQuZnJvbVN0YXRlID09PSAndm9pZCcpIHtcclxuICAgICAgICAgICAgdGhp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cmV0dXJuIHRoaXMuY29udHJvbC5pc0xpc3RWaXNpYmxlICYmIHRoaXMuY29udHJvbC5zaXplID4gMDtcclxuICAgIH1cclxuXHJcbiAgICBASG9zdEJpbmRpbmcoJ2NsYXNzLm5nLWludmFsaWQnKVxyXG4gICAgcHVibGljIGdldCBpc0ludmFsaWQoKTogYm9vbGVhbiB7XHJcbiAgICAgICAgcmV0dXJuICF0aGlzLmNvbnRyb2wuZGlzYWJsZWQgJiYgdGhpcy5jb250cm9sLmludmFsaWQ7XHJcbiAgICB9XHJcblxyXG4gICAgcHJpdmF0ZSBzZXRFdmVudHMoKTogdm9pZCB7XHJcbiAgICAgICAgWydkcmFnJywgJ2RyYWdzdGFydCcsICdkcmFnZW5kJywgJ2RyYWdvdmVyJywgJ2RyYWdlbnRlcicsICdkcmFnbGVhdmUnLCAnZHJvcCddLmZvckVhY2goKGV2ZW50TmFtZSkgPT4ge1xyXG4gICAgICAgICAgICB0aGlzLmhvb2tzLnB1c2goXHJcbiAgICAgICAgICAgICAgICB0aGlzLnJlbmRlcmVyLmxpc3Rlbih0aGlzLmRvY3VtZW50LCBldmVudE5hbWUsIChldmVudDogYW55KSA9PiB0aGlzLnByZXZlbnREcmFnRXZlbnRzKGV2ZW50KSlcclxuICAgICAgICAgICAgKTtcclxuICAgICAgICB9KTtcclxuXHJcbiAgICAgICAgWydkcmFnb3ZlcicsICdkcmFnZW50ZXInXS5mb3JFYWNoKChldmVudE5hbWUpID0+IHtcclxuICAgICAgICAgICAgdGhpcy5ob29rcy5wdXNoKFxyXG4gICAgICAgICAgICAgICAgdGhpcy5yZW5kZXJlci5saXN0ZW4odGhpcy5ob3N0RWxlbWVudFJlZi5uYXRpdmVFbGVtZW50LCBldmVudE5hbWUsIChldmVudDogYW55KSA9PiB0aGlzLm9uRHJhZ092ZXIoZXZlbnQpKVxyXG4gICAgICAgICAgICApO1xyXG4gICAgICAgIH0pO1xyXG5cclxuICAgICAgICBbJ2RyYWdsZWF2ZScsICdkcmF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d2b2lkJykge1xyXG4gICAgICAgICAgICB0aGlzLnpvb21UZXh0ID0gJ3N0YXRpYyc7XHJcbiAgICAgICAgICAgIHRoaXMucmVuZGVyZXIuYWRkQ2xhc3ModGhpcy5ob3N0RWxlbWVudFJlZi5uYXRpdmVFbGVtZW50LCAnbGlzdC12aXNpYmxlJyk7XHJcbiAgICAgICAgfVxyXG4gICAgfVxyXG59XHJcbiJdfQ== |
@@ -19,2 +19,3 @@ /** | ||
import { FileUploadAttributeComponent } from './components/file-upload-attr.component'; | ||
import { SimpleFileUploadComponent } from './components/simple-file-upload.component'; | ||
import { FileSizeValidator, FilesLimitValidator, FilesAcceptValidator } from './directives/validators.directive'; | ||
@@ -52,3 +53,4 @@ export { FileUploadControl } from './helpers/control.class'; | ||
FilesLimitValidator, | ||
FilesAcceptValidator | ||
FilesAcceptValidator, | ||
SimpleFileUploadComponent | ||
], | ||
@@ -60,3 +62,4 @@ exports: [ | ||
FilesLimitValidator, | ||
FilesAcceptValidator | ||
FilesAcceptValidator, | ||
SimpleFileUploadComponent | ||
], | ||
@@ -79,2 +82,2 @@ entryComponents: [ | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmlsZS11cGxvYWQubW9kdWxlLmpzIiwic291cmNlUm9vdCI6Im5nOi8vQGlwbGFiL25neC1maWxlLXVwbG9hZC8iLCJzb3VyY2VzIjpbImZpbGUtdXBsb2FkLm1vZHVsZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7OztBQU9BLE9BQU8sRUFBRSxRQUFRLEVBQUUsUUFBUSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQ25ELE9BQU8sRUFBRSxtQkFBbUIsRUFBRSxXQUFXLEVBQUUsTUFBTSxnQkFBZ0IsQ0FBQztBQUNsRSxPQUFPLEVBQUUsWUFBWSxFQUFFLE1BQU0saUJBQWlCLENBQUM7QUFFL0MsT0FBTyxFQUFFLG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 |
@@ -17,2 +17,9 @@ /** | ||
STATUS[STATUS.DISABLED] = 'DISABLED'; | ||
/** @enum {string} */ | ||
const FileEvent = { | ||
click: 'click', | ||
focus: 'focus', | ||
blur: 'blur', | ||
}; | ||
export { FileEvent }; | ||
export class FileUploadControl { | ||
@@ -29,2 +36,3 @@ /** | ||
this.statusChanged = new Subject(); | ||
this.eventsChanged = new Subject(); | ||
/** | ||
@@ -45,2 +53,6 @@ * track status `VALID`, `INVALID` or `DISABLED` | ||
this.listVisibilityChanges = new BehaviorSubject(this.listVisible); | ||
/** | ||
* emit an event every time user programmatically ask for certain event | ||
*/ | ||
this.eventsChanges = this.eventsChanged.asObservable(); | ||
this.defineValidators(validators); | ||
@@ -229,2 +241,29 @@ } | ||
/** | ||
* @template THIS | ||
* @this {THIS} | ||
* @return {THIS} | ||
*/ | ||
click() { | ||
(/** @type {?} */ (this)).eventsChanged.next(FileEvent.click); | ||
return (/** @type {?} */ (this)); | ||
} | ||
/** | ||
* @template THIS | ||
* @this {THIS} | ||
* @return {THIS} | ||
*/ | ||
focus() { | ||
(/** @type {?} */ (this)).eventsChanged.next(FileEvent.focus); | ||
return (/** @type {?} */ (this)); | ||
} | ||
/** | ||
* @template THIS | ||
* @this {THIS} | ||
* @return {THIS} | ||
*/ | ||
blur() { | ||
(/** @type {?} */ (this)).eventsChanged.next(FileEvent.blur); | ||
return (/** @type {?} */ (this)); | ||
} | ||
/** | ||
* @private | ||
@@ -287,2 +326,7 @@ * @return {?} | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
FileUploadControl.prototype.eventsChanged; | ||
/** | ||
* track status `VALID`, `INVALID` or `DISABLED` | ||
@@ -305,3 +349,8 @@ * @type {?} | ||
FileUploadControl.prototype.listVisibilityChanges; | ||
/** | ||
* emit an event every time user programmatically ask for certain event | ||
* @type {?} | ||
*/ | ||
FileUploadControl.prototype.eventsChanges; | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaW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ycztcclxuICAgIH1cclxuXHJcbiAgICAvKipcclxuICAgICAqIG51bWJlciBvZiB1cGxvYWRlZCBmaWxlc1xyXG4gICAgICovXHJcbiAgICBwdWJsaWMgZ2V0IHNpemUoKTogbnVtYmVyIHtcclxuICAgICAgICByZXR1cm4gdGhpcy5maWxlcy5zaXplO1xyXG4gICAgfVxyXG5cclxuICAgIC8qKlxyXG4gICAgICogcmV0dXJuIGxpc3Qgb2YgRmlsZXNcclxuICAgICAqL1xyXG4gICAgcHVibGljIGdldCB2YWx1ZSgpOiBBcnJheTxGaWxlPiB7XHJcbiAgICAgICAgcmV0dXJuIEFycmF5LmZyb20odGhpcy5maWxlcy52YWx1ZXMoKSk7XHJcbiAgICB9XHJcblxyXG4gICAgcHVibGljIHNldFZhbHVlKGZpbGVzOiBBcnJheTxGaWxlPik6IHRoaXMge1xyXG4gICAgICAgIHRoaXMuZmlsZXMuY2xlYXIoKTtcclxuXHJcbiAgICAgICAgaWYgKGZpbGVzIGluc3RhbmNlb2YgQXJyYXkpIHtcclxuICAgICAgICAgICAgdGhpcy5hZGRNdWx0aXBsZUZpbGVzKGZpbGVzKTtcclxuICAgICAgICB9IGVsc2Uge1xyXG4gICAgICAgICAgICB0aHJvdyBFcnJvcihgRm9ybUNvbnRyb2wuc2V0VmFsdWUgd2FzIHByb3ZpZGVkIHdpdGggd3JvbmcgYXJndW1lbnQgdHlwZSwgJHtmaWxlc30gd2FzIHByb3ZpZGVkIGluc3RlYWQgQXJyYXk8RmlsZT5gKTtcclxuICAgICAgICB9XHJcblxyXG4gICAgICAgIHJldHVybiB0aGlzO1xyXG4gICAgfVxyXG5cclxuICAgIC8qKlxyXG4gICAgICogcmVzZXQgdGhlIGNvbnRyb2xcclxuICAgICAqL1xyXG4gICAgcHVibGljIGNsZWFyKCk6IHRoaXMge1xyXG4gICAgICAgIHRoaXMuZmlsZXMuY2xlYXIoKTtcclxuICAgICAgICB0aGlzLnZhbGlkYXRlKCk7XHJcbiAgICAgICAgdGhp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RJU0FCTEVEIDogU1RBVFVTLlZBTElEO1xyXG4gICAgICAgIHRoaXMudmFsaWRhdGUoKTtcclxuICAgICAgICB0aGlzLnN0YXR1c0NoYW5nZWQubmV4dCh0aGlzLnN0YXR1cyk7XHJcbiAgICAgICAgcmV0dXJuIHRoaXM7XHJcbiAgICB9XHJcblxyXG4gICAgcHJpdmF0ZSB2YWxpZGF0ZSgpOiB2b2lkIHtcclxuICAgICAgICBpZiAodGhpcy5zdGF0dXMgIT09IFNUQVRVUy5ESVNBQkxFRCkge1xyXG4gICAgICAgICAgICBjb25zdCBjdXJyZW50U3RhdGUgPSB0aGlzLnZhbGlkO1xyXG4gICAgICAgICAgICB0aGlzLmVycm9ycyA9IHRoaXMudmFsaWRhdG9ycy5tYXAoKHZhbGlkYXRvcikgPT4gdmFsaWRhdG9yKHRoaXMpKS5maWx0ZXIoKGlzSW52YWxpZCkgPT4gaXNJbnZhbGlkKTtcclxuXHJcbiAgICAgICAgICAgIGlmIChjdXJyZW50U3RhdGUgIT09IHRoaXMudmFsaWQpIHtcclxuICAgICAgICAgICAgICAgIHRoaXMuc3RhdHVzQ2hhbmdlZC5uZXh0KHRoaXMudmFsaWQgPyBTVEFUVVMuVkFMSUQgOiBTVEFUVVMuSU5WQUxJRCk7XHJcbiAgICAgICAgICAgIH1cclxuICAgICAgICB9IGVsc2Uge1xyXG4gICAgICAgICAgICB0aGlzLmVycm9ycy5sZW5ndGggPSAwO1xyXG4gICAgICAgIH1cclxuICAgIH1cclxufVxyXG4iXX0= | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29udHJvbC5jbGFzcy5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BpcGxhYi9uZ3gtZmlsZS11cGxvYWQvIiwic291cmNlcyI6WyJoZWxwZXJzL2NvbnRyb2wuY2xhc3MudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQUFBLE9BQU8sRUFBRSxlQUFlLE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LlZBTElEIDogU1RBVFVTLklOVkFMSUQpO1xyXG4gICAgICAgICAgICB9XHJcbiAgICAgICAgfSBlbHNlIHtcclxuICAgICAgICAgICAgdGhpcy5lcnJvcnMubGVuZ3RoID0gMDtcclxuICAgICAgICB9XHJcbiAgICB9XHJcbn1cclxuIl19 |
@@ -15,4 +15,5 @@ /** | ||
export { FileUploadComponent as ɵa } from './components/file-upload.component'; | ||
export { SimpleFileUploadComponent as ɵk } from './components/simple-file-upload.component'; | ||
export { FileSizeValidator as ɵh, FilesAcceptValidator as ɵj, FilesLimitValidator as ɵi } from './directives/validators.directive'; | ||
export { FileUploadService as ɵb } from './services/file-upload.service'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaXBsYWItbmd4LWZpbGUtdXBsb2FkLmpzIiwic291cmNlUm9vdCI6Im5nOi8vQGlwbGFiL25neC1maWxlLXVwbG9hZC8iLCJzb3VyY2VzIjpbImlwbGFiLW5neC1maWxlLXVwbG9hZC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7O0FBSUEsMkZBQWMsY0FBYyxDQUFDO0FBRTdCLE9BQU8sRUFBQyxlQUFlLElBQUksRUFBRSxFQUFDLE1BQU0sK0JBQStCLENBQUM7QUFDcEUsT0FBTyxFQUFDLGFBQWEsSUFBSSxFQUFFLEVBQUMsTUFBTSw2QkFBNkIsQ0FBQztBQUNoRSxPQUFPLEVBQUMsNEJBQTRCLElBQUksRUFBRSxFQUFDLE1BQU0seUNBQXlDLENBQUM7QUFDM0YsT0FBTyxFQUFDLHVCQUF1QixJQUFJLEVBQUUsRUFBQyxNQUFNLHlDQUF5QyxDQUFDO0FBQ3RGLE9BQU8sRUFBQywyQkFBMkIsSUFBSSxFQUFFLEVBQUMsTUFBTSw4Q0FBOEMsQ0FBQztBQUMvRixPQUFPLEVBQUMsbUJBQW1CLElBQUksRUFBRSxFQUFDLE1BQU0sb0NBQW9DLENBQUM7QUF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0b3IgYXMgybVoLEZpbGVzQWNjZXB0VmFsaWRhdG9yIGFzIMm1aixGaWxlc0xpbWl0VmFsaWRhdG9yIGFzIMm1aX0gZnJvbSAnLi9kaXJlY3RpdmVzL3ZhbGlkYXRvcnMuZGlyZWN0aXZlJztcbmV4cG9ydCB7RmlsZVVwbG9hZFNlcnZpY2UgYXMgybVifSBmcm9tICcuL3NlcnZpY2VzL2ZpbGUtdXBsb2FkLnNlcnZpY2UnOyJdfQ== |
@@ -13,3 +13,3 @@ /** | ||
this.renderer = renderer; | ||
this.extensions = ['bytes', 'KB', 'MB', 'GB']; | ||
this.extensions = ['B', 'KB', 'MB', 'GB']; | ||
} | ||
@@ -69,2 +69,2 @@ /** | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmlsZS11cGxvYWQuc2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BpcGxhYi9uZ3gtZmlsZS11cGxvYWQvIiwic291cmNlcyI6WyJzZXJ2aWNlcy9maWxlLXVwbG9hZC5zZXJ2aWNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFBQSxPQUFPLEVBQUUsVUFBVSxFQUFFLFNBQVMsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUN0RCxPQUFPLEVBQUUsZUFBZSxFQUFFLE1BQU0sK0JBQStCLENBQUM7QUFHaEUsTUFBTSxPQUFPLGlCQUFpQjs7OztJQUkxQixZQUFvQixRQUFtQjtRQUFuQixhQUFRLEdBQVIsUUFBUSxDQUFXO1FBRi9CLGVBQVUsR0FBd0MsQ0FBQyxPQUFPLEVBQUUsSUFBSSxFQUFFLElBQUksRUFBRSxJQUFJLENBQUMsQ0FBQztJQUd0RixDQUFDOzs7O0lBRU0sdUJBQXVCOztjQUNwQixHQUFHLEdBQUcsSUFBSSxDQUFDLFFBQVEsQ0FBQyxhQUFhLENBQUMsS0FBSyxDQUFDO1FBQzlDLE9B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XNba2V5XSA9PT0gZmlsZS50eXBlKTtcclxuICAgIH1cclxufVxyXG4iXX0= |
@@ -38,3 +38,3 @@ /** | ||
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}"] | ||
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}.file-info{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.remove-btn{font-size:12px;cursor:pointer}.remove-btn svg{display:inline-block;vertical-align:-20%;height:18px;width:18px}"] | ||
}] } | ||
@@ -41,0 +41,0 @@ ]; |
@@ -163,7 +163,41 @@ /** | ||
function (status) { return _this.toggleListVisibility(); }))); | ||
this.subscriptions.push(this.control.eventsChanges.subscribe((/** | ||
* @param {?} event | ||
* @return {?} | ||
*/ | ||
function (event) { return _this.triggerEvent(event); }))); | ||
}; | ||
/** | ||
* @private | ||
* @param {?} event | ||
* @return {?} | ||
*/ | ||
FileUploadComponent.prototype.triggerEvent = /** | ||
* @private | ||
* @param {?} event | ||
* @return {?} | ||
*/ | ||
function (event) { | ||
if (typeof this.label.nativeElement[event] === 'function') { | ||
this.label.nativeElement[event](); | ||
} | ||
}; | ||
/** | ||
* @param {?} event | ||
* @return {?} | ||
*/ | ||
FileUploadComponent.prototype.onKeyDown = /** | ||
* @param {?} event | ||
* @return {?} | ||
*/ | ||
function (event) { | ||
if (event.keyCode === 13 || event.keyCode === 32) { | ||
event.preventDefault(); | ||
this.control.click(); | ||
} | ||
}; | ||
/** | ||
* @private | ||
* @return {?} | ||
*/ | ||
FileUploadComponent.prototype.checkAndMarkAsDisabled = /** | ||
@@ -457,4 +491,4 @@ * @private | ||
{ type: 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>", | ||
selector: "file-upload:not([simple])", | ||
template: "<label #labelRef class=\"upload-input\" tabindex=\"0\" (keydown)=\"onKeyDown($event)\" [@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\" tabindex=\"-1\" 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: [ | ||
@@ -476,3 +510,3 @@ FileUploadService, | ||
], | ||
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}"] | ||
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%);outline:0}: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:focus,:host(:not(.disabled)) .upload-input:hover{color:#80a9d2}:host(.dragover:not(.disabled)) .icon svg,:host(:not(.disabled)) .upload-input:focus 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}"] | ||
}] } | ||
@@ -493,2 +527,3 @@ ]; | ||
input: [{ type: ViewChild, args: ['inputRef',] }], | ||
label: [{ type: ViewChild, args: ['labelRef',] }], | ||
hasFiles: [{ type: HostBinding, args: ['class.has-files',] }], | ||
@@ -511,2 +546,4 @@ isInvalid: [{ type: HostBinding, args: ['class.ng-invalid',] }], | ||
/** @type {?} */ | ||
FileUploadComponent.prototype.label; | ||
/** @type {?} */ | ||
FileUploadComponent.prototype.templateContext; | ||
@@ -563,2 +600,2 @@ /** | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmlsZS11cGxvYWQuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6Im5nOi8vQGlwbGFiL25neC1maWxlLXVwbG9hZC8iLCJzb3VyY2VzIjpbImNvbXBvbmVudHMvZmlsZS11cGxvYWQuY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFBQSxPQUFPLEVBQ0gsU0FBUyxFQUNULEtBQUssRUFFTCxVQUFVLEVBQ1YsWUFBWSxFQUNaLFNBQVMsRUFFVCxXQUFXLEVBQ1gsTUFBTSxFQUNOLFdBQVcsRUFDWCxTQUFTLEVBQ1QsdUJBQXVCLEVBQ3ZCLFlBQVksRUFDWixVQUFVLEVBQ1YsaUJBQWlCLEVBQ3BCLE1BQU0sZUFBZSxDQUFDO0FBQ3ZCLE9BQU8sRUFBRSxRQUFRLEVBQUUsTUFBTSxpQkFBaUIsQ0FBQztBQUMzQyxPQUFPLEVBQUUsaUJBQWlCLEVBQXdCLE1BQU0sZ0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4gMDtcclxuICAgIH1cclxuXHJcbiAgICBASG9zdEJpbmRpbmcoJ2NsYXNzLm5nLWludmFsaWQnKVxyXG4gICAgcHVibGljIGdldCBpc0ludmFsaWQoKTogYm9vbGVhbiB7XHJcbiAgICAgICAgcmV0dXJuICF0aGlzLmNvbnRyb2wuZGlzYWJsZWQgJiYgdGhpcy5jb250cm9sLmludmFsaWQ7XHJcbiAgICB9XHJcblxyXG4gICAgcHJpdmF0ZSBzZXRFdmVudHMoKTogdm9pZCB7XHJcbiAgICAgICAgWydkcmFnJywgJ2RyYWdzdGFydCcsICdkcmFnZW5kJywgJ2RyYWdvdmVyJywgJ2RyYWdlbnRlcicsICdkcmFnbGVhdmUnLCAnZHJvcCddLmZvckVhY2goKGV2ZW50TmFtZSkgPT4ge1xyXG4gICAgICAgICAgICB0aGlzLmhvb2tzLnB1c2goXHJcbiAgICAgICAgICAgICAgICB0aGlzLnJlbmRlcmVyLmxpc3Rlbih0aGlzLmRvY3VtZW50LCBldmVudE5hbWUsIChldmVudDogYW55KSA9PiB0aGlzLnByZXZlbnREcmFnRXZlbnRzKGV2ZW50KSlcclxuICAgICAgICAgICAgKTtcclxuICAgICAgICB9KTtcclxuXHJcbiAgICAgICAgWydkcmFnb3ZlcicsICdkcmFnZW50ZXInXS5mb3JFYWNoKChldmVudE5hbWUpID0+IHtcclxuICAgICAgICAgICAgdGhpcy5ob29rcy5wdXNoKFxyXG4gICAgICAgICAgICAgICAgdGhpcy5yZW5kZXJlci5saXN0ZW4odGhpcy5ob3N0RWxlbWVudFJlZi5uYXRpdmVFbGVtZW50LCBldmVudE5hbWUsIChldmVudDogYW55KSA9PiB0aGlzLm9uRHJhZ092ZXIoZXZlbnQpKVxyXG4gICAgICAgICAgICApO1xyXG4gICAgICAgIH0pO1xyXG5cclxuICAgICAgICBbJ2RyYWdsZWF2ZScsICdkcmFnZW5kJywgJ2Ryb3AnXS5mb3JFYWNoKChldmVudE5hbWUpID0+IHtcclxuICAgICAgICAgICAgdG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XG4gICAgICAgIGV2ZW50LnN0b3BQcm9wYWdhdGlvbigpO1xyXG4gICAgfVxyXG5cclxuICAgIHByaXZhdGUgcmVuZGVyVmlldygpOiB2b2lkIHtcclxuICAgICAgICBpZiAoIXRoaXMubGlzdFZpc2libGUpIHtcclxuICAgICAgICAgICAgdGhpcy56b29tVGV4dCA9IHRoaXMuY29udHJvbC5pc0xpc3RWaXNpYmxlICYmIHRoaXMuY29udHJvbC5zaXplID4gMCA/ICd6b29tT3V0JyA6ICdzdGF0aWMnO1xyXG4gICAgICAgIH1cclxuICAgICAgICB0aGlzLmNkci5tYXJrRm9yQ2hlY2soKTtcclxuICAgIH1cclxuXHJcbiAgICBwcml2YXRlIHNob3dMaXN0KCk6IHZvaWQge1xyXG4gICAgICAgIGlmICh0aGlzLnpvb21UZXh0ICE9PSAnc3RhdGljJykge1xyXG4gICAgICAgICAgICB0aGlzLmxpc3RWaXNpYmxlID0gdHJ1ZTtcclxuICAgICAgICB9XHJcbiAgICB9XHJcblxyXG4gICAgcHJpdmF0ZSBoaWRlTGlzdCgpOiB2b2lkIHtcclxuICAgICAgICB0aGlzLmxpc3RWaXNpYmxlID0gZmFsc2U7XHJcbiAgICB9XHJcblxyXG4gICAgcHJpdmF0ZSB0b2dnbGVMaXN0VmlzaWJpbGl0eSgpOiB2b2lkIHtcclxuICAgICAgICB0aGlzLmxpc3RWaXNpYmxlID0gdGhpcy5jb250cm9sLmlzTGlzdFZpc2libGUgJiYgdGhpcy5jb250cm9sLnNpemUgPiAwO1xyXG4gICAgICAgIGlmICh0aGlzLmxpc3RWaXNpYmxlKSB7XHJcbiAgICAgICAgICAgIHRoaXMucmVuZGVyZXIuYWRkQ2xhc3ModGhpcy5ob3N0RWxlbWVudFJlZi5uYXRpdmVFbGVtZW50LCAnbGlzdC12aXNpYmxlJyk7XHJcbiAgICAgICAgICAgIHRoaXMuem9vbVRleHQgPSAnc3RhdGljJztcclxuICAgICAgICB9XHJcbiAgICAgICAgdGhpcy5jZHI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UTUxJbnB1dEVsZW1lbnQ7XHJcblxyXG4gICAgICAgIGlmICghdGhpcy5jb250cm9sLmRpc2FibGVkKSB7XHJcbiAgICAgICAgICAgIHRoaXMuY29udHJvbC5hZGRGaWxlcyhpbnB1dC5maWxlcyk7XHJcbiAgICAgICAgfVxyXG4gICAgICAgIHRoaXMuY2xlYXJJbnB1dEVsKCk7XHJcbiAgICAgICAgdGhpcy5vblRvdWNoKCk7XHJcbiAgICB9XHJcblxyXG4gICAgcHJpdmF0ZSBjbGVhcklucHV0RWwoKTogdm9pZCB7XHJcbiAgICAgICAgdGhpcy5pbnB1dC5uYXRpdmVFbGVtZW50LnZhbHVlID0gbnVsbDtcclxuICAgIH1cclxuXHJcbiAgICAvKipcclxuICAgICAqIENvbnRyb2xWYWx1ZUFjY2Vzc29yIGltcGxlbWVudGF0aW9uXHJcbiAgICAgKi9cclxuICAgIHByaXZhdGUgY29ubmVjdFRvRm9ybSgpOiB2b2lkIHtcclxuICAgICAgICB0aGlzLnN1YnNjcmlwdGlvbnMucHVzaChcclxuICAgICAgICAgICAgdGhpcy5jb250cm9sLnZhbHVlQ2hhbmdlcy5zdWJzY3JpYmUoKHYpID0+IHRoaXMub25DaGFuZ2UodikpXHJcbiAgICAgICAgKTtcclxuICAgIH1cclxuXHJcbiAgICAgLyoqXHJcbiAgICAgICogbW9kZWwgLT4gdmlldyBjaGFuZ2VzXHJcbiAgICAgICovXHJcbiAgICBwdWJsaWMgd3JpdGVWYWx1ZShmaWxlczogYW55KTogdm9pZCB7XHJcbiAgICAgICAgaWYgKGZpbGVzICE9IG51bGwpIHtcclxuICAgICAgICAgICAgdGhpcy5jb250cm9sLnNldFZhbHVlKGZpbGVzKTtcclxuICAgICAgICB9XHJcbiAgICB9XHJcblxyXG4gICAgcHJpdmF0ZSBvbkNoYW5nZTogKHY6IEFycmF5PEZpbGU+KSA9PiB2b2lkID0gKCkgPT4ge307XHJcblxyXG4gICAgLyoqXHJcbiAgICAgKiByZWdpc3RlciBm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/** | ||
import { FileUploadAttributeComponent } from './components/file-upload-attr.component'; | ||
import { SimpleFileUploadComponent } from './components/simple-file-upload.component'; | ||
import { FileSizeValidator, FilesLimitValidator, FilesAcceptValidator } from './directives/validators.directive'; | ||
@@ -51,3 +52,4 @@ export { FileUploadControl } from './helpers/control.class'; | ||
FilesLimitValidator, | ||
FilesAcceptValidator | ||
FilesAcceptValidator, | ||
SimpleFileUploadComponent | ||
], | ||
@@ -59,3 +61,4 @@ exports: [ | ||
FilesLimitValidator, | ||
FilesAcceptValidator | ||
FilesAcceptValidator, | ||
SimpleFileUploadComponent | ||
], | ||
@@ -81,2 +84,2 @@ entryComponents: [ | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmlsZS11cGxvYWQubW9kdWxlLmpzIiwic291cmNlUm9vdCI6Im5nOi8vQGlwbGFiL25neC1maWxlLXVwbG9hZC8iLCJzb3VyY2VzIjpbImZpbGUtdXBsb2FkLm1vZHVsZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7OztBQU9BLE9BQU8sRUFBRSxRQUFRLEVBQUUsUUFBUSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQ25ELE9BQU8sRUFBRSxtQkFBbUIsRUFBRSxXQUFXLEVBQUUsTUFBTSxnQkFBZ0IsQ0FBQztBQUNsRSxPQUFPLEVBQUUsWUFBWSxFQUFFLE1BQU0saUJBQWlCLENBQUM7QUFFL0MsT0FBTyxFQUFFLG1CQUFtQixFQUFFLE1BQU0sb0NBQW9DLENBQUM7QUFDekUsT0FBTyxFQUFFLDJCQUEyQixFQUFFLE1BQU0sOENBQThDLENBQUM7QUFDM0YsT0FBTyxFQUFFLHVCQUF1QixFQUFFLE1BQU0seUNBQXlDLENBQUM7QUFDbEYsT0FBTyxFQUFFLDRCQUE0QixFQUFFLE1BQU0seUNBQXlDLENBQUM7QUFFdkYsT0FBTyxFQUFFLGlCQUFpQix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xyXG4gICAgICAgIEZpbGVzQWNjZXB0VmFsaWRhdG9yLFxyXG5cclxuICAgICAgICBTaW1wbGVGaWxlVXBsb2FkQ29tcG9uZW50XHJcbiAgICBdLFxyXG4gICAgZXhwb3J0czogW1xyXG4gICAgICAgIEZpbGVVcGxvYWRDb21wb25lbnQsXHJcbiAgICAgICAgRmlsZVVwbG9hZEF0dHJpYnV0ZUNvbXBvbmVudCxcclxuXHJcbiAgICAgICAgRmlsZVNpemVWYWxpZGF0b3IsXHJcbiAgICAgICAgRmlsZXNMaW1pdFZhbGlkYXRvcixcclxuICAgICAgICBGaWxlc0FjY2VwdFZhbGlkYXRvcixcclxuXHJcbiAgICAgICAgU2ltcGxlRmlsZVVwbG9hZENvbXBvbmVudFxyXG4gICAgXSxcclxuICAgIGVudHJ5Q29tcG9uZW50czogW1xyXG4gICAgICAgIEZpbGVVcGxvYWRDb21wb25lbnRcclxuICAgIF1cclxufSlcclxuZXhwb3J0IGNsYXNzIEZpbGVVcGxvYWRNb2R1bGUge1xyXG5cclxuICAgIGNvbnN0cnVjdG9yKHByaXZhdGUgaW5qZWN0b3I6IEluamVjdG9yKSB7XHJcbiAgICAgICAgLy8gY29uc3QgZmlsZVVwbG9hZEVsZW1lbnQgPSBjcmVhdGVDdXN0b21FbGVtZW50KEZpbGVVcGxvYWRDb21wb25lbnQsIHsgaW5qZWN0b3IgfSk7XHJcbiAgICAgICAgLy8gY3VzdG9tRWxlbWVudHMuZGVmaW5lKCdmaWxlLXVwbG9hZCcsIGZpbGVVcGxvYWRFbGVtZW50KTtcclxuICAgIH1cclxuXHJcbiAgICBuZ0RvQm9vdHN0cmFwKCkge31cclxufVxyXG4iXX0= |
@@ -18,2 +18,9 @@ /** | ||
STATUS[STATUS.DISABLED] = 'DISABLED'; | ||
/** @enum {string} */ | ||
var FileEvent = { | ||
click: 'click', | ||
focus: 'focus', | ||
blur: 'blur', | ||
}; | ||
export { FileEvent }; | ||
var FileUploadControl = /** @class */ (function () { | ||
@@ -27,2 +34,3 @@ function FileUploadControl(validators) { | ||
this.statusChanged = new Subject(); | ||
this.eventsChanged = new Subject(); | ||
/** | ||
@@ -43,2 +51,6 @@ * track status `VALID`, `INVALID` or `DISABLED` | ||
this.listVisibilityChanges = new BehaviorSubject(this.listVisible); | ||
/** | ||
* emit an event every time user programmatically ask for certain event | ||
*/ | ||
this.eventsChanges = this.eventsChanged.asObservable(); | ||
this.defineValidators(validators); | ||
@@ -343,2 +355,44 @@ } | ||
/** | ||
* @template THIS | ||
* @this {THIS} | ||
* @return {THIS} | ||
*/ | ||
FileUploadControl.prototype.click = /** | ||
* @template THIS | ||
* @this {THIS} | ||
* @return {THIS} | ||
*/ | ||
function () { | ||
(/** @type {?} */ (this)).eventsChanged.next(FileEvent.click); | ||
return (/** @type {?} */ (this)); | ||
}; | ||
/** | ||
* @template THIS | ||
* @this {THIS} | ||
* @return {THIS} | ||
*/ | ||
FileUploadControl.prototype.focus = /** | ||
* @template THIS | ||
* @this {THIS} | ||
* @return {THIS} | ||
*/ | ||
function () { | ||
(/** @type {?} */ (this)).eventsChanged.next(FileEvent.focus); | ||
return (/** @type {?} */ (this)); | ||
}; | ||
/** | ||
* @template THIS | ||
* @this {THIS} | ||
* @return {THIS} | ||
*/ | ||
FileUploadControl.prototype.blur = /** | ||
* @template THIS | ||
* @this {THIS} | ||
* @return {THIS} | ||
*/ | ||
function () { | ||
(/** @type {?} */ (this)).eventsChanged.next(FileEvent.blur); | ||
return (/** @type {?} */ (this)); | ||
}; | ||
/** | ||
* @private | ||
@@ -408,2 +462,7 @@ * @return {?} | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
FileUploadControl.prototype.eventsChanged; | ||
/** | ||
* track status `VALID`, `INVALID` or `DISABLED` | ||
@@ -426,3 +485,8 @@ * @type {?} | ||
FileUploadControl.prototype.listVisibilityChanges; | ||
/** | ||
* emit an event every time user programmatically ask for certain event | ||
* @type {?} | ||
*/ | ||
FileUploadControl.prototype.eventsChanges; | ||
} |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AgICAgICAgIGlmIChjdXJyZW50U3RhdGUgIT09IHRoaXMudmFsaWQpIHtcclxuICAgICAgICAgICAgICAgIHRoaXMuc3RhdHVzQ2hhbmdlZC5uZXh0KHRoaXMudmFsaWQgPyBTVEFUVVMuVkFMSUQgOiBTVEFUVVMuSU5WQUxJRCk7XHJcbiAgICAgICAgICAgIH1cclxuICAgICAgICB9IGVsc2Uge1xyXG4gICAgICAgICAgICB0aGlzLmVycm9ycy5sZW5ndGggPSAwO1xyXG4gICAgICAgIH1cclxuICAgIH1cclxufVxyXG4iXX0= |
@@ -15,4 +15,5 @@ /** | ||
export { FileUploadComponent as ɵa } from './components/file-upload.component'; | ||
export { SimpleFileUploadComponent as ɵk } from './components/simple-file-upload.component'; | ||
export { FileSizeValidator as ɵh, FilesAcceptValidator as ɵj, FilesLimitValidator as ɵi } from './directives/validators.directive'; | ||
export { FileUploadService as ɵb } from './services/file-upload.service'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaXBsYWItbmd4LWZpbGUtdXBsb2FkLmpzIiwic291cmNlUm9vdCI6Im5nOi8vQGlwbGFiL25neC1maWxlLXVwbG9hZC8iLCJzb3VyY2VzIjpbImlwbGFiLW5neC1maWxlLXVwbG9hZC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7O0FBSUEsMkZBQWMsY0FBYyxDQUFDO0FBRTdCLE9BQU8sRUFBQyxlQUFlLElBQUksRUFBRSxFQUFDLE1BQU0sK0JBQStCLENBQUM7QUFDcEUsT0FBTyxFQUFDLGFBQWEsSUFBSSxFQUFFLEVBQUMsTUFBTSw2QkFBNkIsQ0FBQztBQUNoRSxPQUFPLEVBQUMsNEJBQTRCLElBQUksRUFBRSxFQUFDLE1BQU0seUNBQXlDLENBQUM7QUFDM0YsT0FBTyxFQUFDLHVCQUF1QixJQUFJLEVBQUUsRUFBQyxNQUFNLHlDQUF5QyxDQUFDO0FBQ3RGLE9BQU8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2ltcGxlRmlsZVVwbG9hZENvbXBvbmVudCBhcyDJtWt9IGZyb20gJy4vY29tcG9uZW50cy9zaW1wbGUtZmlsZS11cGxvYWQuY29tcG9uZW50JztcbmV4cG9ydCB7RmlsZVNpemVWYWxpZGF0b3IgYXMgybVoLEZpbGVzQWNjZXB0VmFsaWRhdG9yIGFzIMm1aixGaWxlc0xpbWl0VmFsaWRhdG9yIGFzIMm1aX0gZnJvbSAnLi9kaXJlY3RpdmVzL3ZhbGlkYXRvcnMuZGlyZWN0aXZlJztcbmV4cG9ydCB7RmlsZVVwbG9hZFNlcnZpY2UgYXMgybVifSBmcm9tICcuL3NlcnZpY2VzL2ZpbGUtdXBsb2FkLnNlcnZpY2UnOyJdfQ== |
@@ -10,3 +10,3 @@ /** | ||
this.renderer = renderer; | ||
this.extensions = ['bytes', 'KB', 'MB', 'GB']; | ||
this.extensions = ['B', 'KB', 'MB', 'GB']; | ||
} | ||
@@ -81,2 +81,2 @@ /** | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmlsZS11cGxvYWQuc2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BpcGxhYi9uZ3gtZmlsZS11cGxvYWQvIiwic291cmNlcyI6WyJzZXJ2aWNlcy9maWxlLXVwbG9hZC5zZXJ2aWNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFBQSxPQUFPLEVBQUUsVUFBVSxFQUFFLFNBQVMsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUN0RCxPQUFPLEVBQUUsZUFBZSxFQUFFLE1BQU0sK0JBQStCLENBQUM7QUFFaEU7SUFLSSwyQkFBb0IsUUFBbUI7UUFBbkIsYUFBUSxHQUFSLFFBQVEsQ0FBVztRQUYvQixlQUFVLEdBQXdDLENBQUMsT0FBTyxFQUFFLElBQUksRUFBRSxJQUFJLEVBQUUsSUFBSSxDQUFDLENBQUM7SUFHdEYsQ0F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ZSAqIDEwMCkgLyAxMDB9ICR7dGhpcy5leHRlbnNpb25zW2V4dGVuc2lvbkluZGV4XX1gO1xyXG4gICAgICAgIH1cclxuXHJcbiAgICAgICAgcmV0dXJuIHRoaXMuY2FsY3VsYXRlU2l6ZShzaXplIC8gMTAyNCwgZXh0ZW5zaW9uSW5kZXggKyAxKTtcclxuICAgIH1cclxuXHJcbiAgICBwdWJsaWMgZ2V0RmlsZVR5cGUoZmlsZTogRmlsZSk6IHN0cmluZyB7XHJcbiAgICAgICAgcmV0dXJuIE9iamVjdC5rZXlzKEZpbGVVcGxvYWRUeXBlcykuZmluZCgoa2V5KSA9PiBGaWxlVXBsb2FkVHlwZXNba2V5XSA9PT0gZmlsZS50eXBlKTtcclxuICAgIH1cclxufVxyXG4iXX0= |
@@ -8,2 +8,7 @@ import { BehaviorSubject, Observable } from 'rxjs'; | ||
} | ||
export declare enum FileEvent { | ||
click = "click", | ||
focus = "focus", | ||
blur = "blur" | ||
} | ||
export declare class FileUploadControl { | ||
@@ -16,2 +21,3 @@ private files; | ||
private statusChanged; | ||
private eventsChanged; | ||
/** | ||
@@ -32,2 +38,6 @@ * track status `VALID`, `INVALID` or `DISABLED` | ||
readonly listVisibilityChanges: BehaviorSubject<boolean>; | ||
/** | ||
* emit an event every time user programmatically ask for certain event | ||
*/ | ||
readonly eventsChanges: Observable<FileEvent>; | ||
constructor(validators?: ValidatorFn | Array<ValidatorFn>); | ||
@@ -69,3 +79,6 @@ /** | ||
disable(isDisabled?: boolean): this; | ||
click(): this; | ||
focus(): this; | ||
blur(): this; | ||
private validate; | ||
} |
@@ -11,3 +11,4 @@ /** | ||
export { FileUploadComponent as ɵa } from './components/file-upload.component'; | ||
export { SimpleFileUploadComponent as ɵk } from './components/simple-file-upload.component'; | ||
export { FileSizeValidator as ɵh, FilesAcceptValidator as ɵj, FilesLimitValidator as ɵi } from './directives/validators.directive'; | ||
export { FileUploadService as ɵb } from './services/file-upload.service'; |
@@ -1,1 +0,1 @@ | ||
{"__symbolic":"module","version":4,"metadata":{"FileUploadModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":22,"character":1},"arguments":[{"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":24,"character":8},{"__symbolic":"reference","module":"@angular/forms","name":"ReactiveFormsModule","line":25,"character":8},{"__symbolic":"reference","module":"@angular/forms","name":"FormsModule","line":26,"character":8}],"declarations":[{"__symbolic":"reference","name":"ɵa"},{"__symbolic":"reference","name":"ɵe"},{"__symbolic":"reference","name":"ɵf"},{"__symbolic":"reference","name":"ɵg"},{"__symbolic":"reference","name":"ɵh"},{"__symbolic":"reference","name":"ɵi"},{"__symbolic":"reference","name":"ɵj"}],"exports":[{"__symbolic":"reference","name":"ɵa"},{"__symbolic":"reference","name":"ɵg"},{"__symbolic":"reference","name":"ɵh"},{"__symbolic":"reference","name":"ɵi"},{"__symbolic":"reference","name":"ɵj"}],"entryComponents":[{"__symbolic":"reference","name":"ɵa"}]}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"Injector","line":53,"character":34}]}],"ngDoBootstrap":[{"__symbolic":"method"}]}},"FileUploadControl":{"__symbolic":"class","members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"ValidatorFn"}]}],"setValidators":[{"__symbolic":"method"}],"defineValidators":[{"__symbolic":"method"}],"addFile":[{"__symbolic":"method"}],"removeFile":[{"__symbolic":"method"}],"addFiles":[{"__symbolic":"method"}],"addMultipleFiles":[{"__symbolic":"method"}],"getError":[{"__symbolic":"method"}],"setValue":[{"__symbolic":"method"}],"clear":[{"__symbolic":"method"}],"setListVisibility":[{"__symbolic":"method"}],"enable":[{"__symbolic":"method"}],"disable":[{"__symbolic":"method"}],"validate":[{"__symbolic":"method"}]}},"FileUploadValidators":{"__symbolic":"class","members":{},"statics":{"fileSize":{"__symbolic":"function","parameters":["maxSize"],"value":{"__symbolic":"error","message":"Lambda not supported","line":55,"character":15,"module":"./helpers/validators.class"}},"sizeRange":{"__symbolic":"function","parameters":["minSize","maxSize"],"value":{"__symbolic":"error","message":"Lambda not supported","line":73,"character":15,"module":"./helpers/validators.class"}},"filesLimit":{"__symbolic":"function","parameters":["numFiles"],"value":{"__symbolic":"error","message":"Lambda not supported","line":91,"character":15,"module":"./helpers/validators.class"}},"accept":{"__symbolic":"function","parameters":["allowedFileTypes"],"value":{"__symbolic":"error","message":"Lambda not supported","line":118,"character":15,"module":"./helpers/validators.class"}}}},"ValidationErrors":{"__symbolic":"interface"},"ValidatorFn":{"__symbolic":"interface"},"FileUploadTypes":{"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"},"ɵa":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":31,"character":1},"arguments":[{"selector":"file-upload","providers":[{"__symbolic":"reference","name":"ɵb"},{"provide":{"__symbolic":"reference","module":"@angular/forms","name":"NG_VALUE_ACCESSOR","line":38,"character":21},"useExisting":{"__symbolic":"reference","name":"ɵa"},"multi":true}],"changeDetection":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectionStrategy","line":43,"character":21},"member":"OnPush"},"animations":[{"__symbolic":"reference","name":"ɵc"},{"__symbolic":"reference","name":"ɵd"}],"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>","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}"]}]}],"members":{"control":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":51,"character":5}}]}],"templateRef":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChild","line":54,"character":5},"arguments":["placeholder"]}]}],"listItem":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChild","line":57,"character":5},"arguments":["item"]}]}],"input":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild","line":60,"character":5},"arguments":["inputRef"]}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[null,null,null,[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":80,"character":9},"arguments":[{"__symbolic":"reference","module":"@angular/common","name":"DOCUMENT","line":80,"character":16}]}],null],"parameters":[{"__symbolic":"reference","name":"ɵb"},{"__symbolic":"reference","module":"@angular/core","name":"ElementRef","line":78,"character":32},{"__symbolic":"reference","module":"@angular/core","name":"Renderer2","line":79,"character":26},null,{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectorRef","line":81,"character":21}]}],"ngOnInit":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}],"hasFiles":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding","line":102,"character":5},"arguments":["class.has-files"]}]}],"isInvalid":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding","line":107,"character":5},"arguments":["class.ng-invalid"]}]}],"setEvents":[{"__symbolic":"method"}],"checkAndMarkAsDisabled":[{"__symbolic":"method"}],"preventDragEvents":[{"__symbolic":"method"}],"renderView":[{"__symbolic":"method"}],"showList":[{"__symbolic":"method"}],"hideList":[{"__symbolic":"method"}],"toggleListVisibility":[{"__symbolic":"method"}],"onDragOver":[{"__symbolic":"method"}],"onDragLeave":[{"__symbolic":"method"}],"onDrop":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostListener","line":199,"character":5},"arguments":["drop",["$event"]]}]}],"onInputChange":[{"__symbolic":"method"}],"clearInputEl":[{"__symbolic":"method"}],"connectToForm":[{"__symbolic":"method"}],"writeValue":[{"__symbolic":"method"}],"registerOnChange":[{"__symbolic":"method"}],"registerOnTouched":[{"__symbolic":"method"}],"setDisabledState":[{"__symbolic":"method"}],"zoomAnimationDone":[{"__symbolic":"method"}],"animationListFinished":[{"__symbolic":"method"}]}},"ɵb":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":3,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"Renderer2","line":8,"character":34}]}],"isFileDragDropAvailable":[{"__symbolic":"method"}],"calculateSize":[{"__symbolic":"method"}],"getFileType":[{"__symbolic":"method"}]}},"ɵc":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"trigger","line":4,"character":0},"arguments":["zoomAnimation",[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"transition","line":5,"character":4},"arguments":["static => zoomOut",[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"animate","line":6,"character":8},"arguments":[250,{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"style","line":6,"character":21},"arguments":[{"transform":"translate(-50%, -50%) scale(2, 2)","opacity":0}]}]}]]},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"transition","line":8,"character":4},"arguments":["static => zoomIn",[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"query","line":9,"character":8},"arguments":[":self",[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"style","line":10,"character":12},"arguments":[{"transform":"translate(-50%, -50%) scale(.2, .2)","opacity":0,"top":"50%","left":"50%","margin":0}]},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"stagger","line":11,"character":12},"arguments":[50,[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"animate","line":12,"character":16},"arguments":[250,{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"style","line":12,"character":29},"arguments":[{"transform":"translate(-50%, -50%) scale(1, 1)","opacity":1}]}]}]]}]]}]]}]]},"ɵd":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"trigger","line":4,"character":0},"arguments":["insertAnimation",[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"transition","line":5,"character":4},"arguments":["* => *",[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"query","line":6,"character":8},"arguments":[":leave",[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"stagger","line":7,"character":12},"arguments":[30,[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"animate","line":8,"character":16},"arguments":[".3s",{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"style","line":8,"character":31},"arguments":[{"opacity":0}]}]}]]}],{"optional":true}]},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"query","line":11,"character":8},"arguments":[":enter",[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"style","line":12,"character":12},"arguments":[{"opacity":0}]},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"stagger","line":13,"character":12},"arguments":[30,[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"animate","line":14,"character":16},"arguments":[".3s",{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"style","line":14,"character":31},"arguments":[{"opacity":1}]}]}]]}],{"optional":true}]}]]}]]},"ɵe":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":4,"character":1},"arguments":[{"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}"]}]}],"members":{"index":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":32,"character":5}}]}],"file":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":35,"character":5}}]}],"control":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":38,"character":5}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"ɵb"}]}],"removeFile":[{"__symbolic":"method"}],"calculateSize":[{"__symbolic":"method"}]}},"ɵf":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":4,"character":1},"arguments":[{"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=\"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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}"]}]}],"members":{"file":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":11,"character":5}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"ɵb"}]}],"ngOnInit":[{"__symbolic":"method"}],"isIcon":[{"__symbolic":"method"}]}},"ɵg":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":24,"character":1},"arguments":[{"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":[{"__symbolic":"reference","name":"ɵb"}],"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}"]}]}],"members":{"control":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":64,"character":5}}]}],"overlay":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild","line":67,"character":5},"arguments":["overlay"]}]}],"templateRef":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChild","line":70,"character":5},"arguments":["placeholder"]}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[null,null,null,[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":81,"character":9},"arguments":[{"__symbolic":"reference","module":"@angular/common","name":"DOCUMENT","line":81,"character":16}]}]],"parameters":[{"__symbolic":"reference","name":"ɵb"},{"__symbolic":"reference","module":"@angular/core","name":"ElementRef","line":79,"character":32},{"__symbolic":"reference","module":"@angular/core","name":"Renderer2","line":80,"character":26},null]}],"ngOnInit":[{"__symbolic":"method"}],"ngAfterViewInit":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}],"hasFiles":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding","line":104,"character":5},"arguments":["class.has-files"]}]}],"isInvalid":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding","line":109,"character":5},"arguments":["class.ng-invalid"]}]}],"setEvents":[{"__symbolic":"method"}],"checkAndMarkAsDisabled":[{"__symbolic":"method"}],"preventDragEvents":[{"__symbolic":"method"}],"onDragOver":[{"__symbolic":"method"}],"onDragLeave":[{"__symbolic":"method"}],"onDrop":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostListener","line":175,"character":5},"arguments":["drop",["$event"]]}]}]}},"ɵh":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":19,"character":1},"arguments":[{"selector":"[filesize][formControlName],[filesize][formControl],[filesize][ngModel],\n [minsize][formControlName],[minsize][formControl],[minsize][ngModel],\n [maxsize][formControlName],[maxsize][formControl],[maxsize][ngModel]","providers":[{"provide":{"__symbolic":"reference","module":"@angular/forms","name":"NG_VALIDATORS","line":24,"character":17},"useExisting":{"__symbolic":"reference","name":"ɵh"},"multi":true}],"host":{"[attr.filesize]":"filesize ? filesize : null","[attr.minsize]":"minsize ? minsize : null","[attr.maxsize]":"maxsize ? maxsize : null","$quoted$":["[attr.filesize]","[attr.minsize]","[attr.maxsize]"]}}]}],"members":{"filesize":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":36,"character":5}}]}],"minsize":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":39,"character":5}}]}],"maxsize":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":42,"character":5}}]}],"ngOnChanges":[{"__symbolic":"method"}],"validate":[{"__symbolic":"method"}],"registerOnValidatorChange":[{"__symbolic":"method"}],"_createValidator":[{"__symbolic":"method"}]}},"ɵi":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":95,"character":1},"arguments":[{"selector":"[fileslimit][formControlName],[fileslimit][formControl],[fileslimit][ngModel]","providers":[{"provide":{"__symbolic":"reference","module":"@angular/forms","name":"NG_VALIDATORS","line":98,"character":17},"useExisting":{"__symbolic":"reference","name":"ɵi"},"multi":true}],"host":{"[attr.fileslimit]":"fileslimit ? fileslimit : null","$quoted$":["[attr.fileslimit]"]}}]}],"members":{"fileslimit":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":106,"character":5}}]}],"ngOnChanges":[{"__symbolic":"method"}],"validate":[{"__symbolic":"method"}],"registerOnValidatorChange":[{"__symbolic":"method"}],"_createValidator":[{"__symbolic":"method"}]}},"ɵj":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":150,"character":1},"arguments":[{"selector":"[accept][formControlName],[accept][formControl],[accept][ngModel]","providers":[{"provide":{"__symbolic":"reference","module":"@angular/forms","name":"NG_VALIDATORS","line":153,"character":17},"useExisting":{"__symbolic":"reference","name":"ɵi"},"multi":true}],"host":{"[attr.accept]":"accept ? accept : null","$quoted$":["[attr.accept]"]}}]}],"members":{"accept":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":161,"character":5}}]}],"ngOnChanges":[{"__symbolic":"method"}],"validate":[{"__symbolic":"method"}],"registerOnValidatorChange":[{"__symbolic":"method"}],"_createValidator":[{"__symbolic":"method"}]}}},"origins":{"FileUploadModule":"./file-upload.module","FileUploadControl":"./helpers/control.class","FileUploadValidators":"./helpers/validators.class","ValidationErrors":"./helpers/validators.class","ValidatorFn":"./helpers/validators.class","FileUploadTypes":"./helpers/file-types.class","ɵa":"./components/file-upload.component","ɵb":"./services/file-upload.service","ɵc":"./animations/zoom.animation","ɵd":"./animations/insert.animation","ɵe":"./components/file-upload-list-item.component","ɵf":"./components/file-upload-icon.component","ɵg":"./components/file-upload-attr.component","ɵh":"./directives/validators.directive","ɵi":"./directives/validators.directive","ɵj":"./directives/validators.directive"},"importAs":"@iplab/ngx-file-upload"} | ||
{"__symbolic":"module","version":4,"metadata":{"FileUploadModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":23,"character":1},"arguments":[{"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":25,"character":8},{"__symbolic":"reference","module":"@angular/forms","name":"ReactiveFormsModule","line":26,"character":8},{"__symbolic":"reference","module":"@angular/forms","name":"FormsModule","line":27,"character":8}],"declarations":[{"__symbolic":"reference","name":"ɵa"},{"__symbolic":"reference","name":"ɵe"},{"__symbolic":"reference","name":"ɵf"},{"__symbolic":"reference","name":"ɵg"},{"__symbolic":"reference","name":"ɵh"},{"__symbolic":"reference","name":"ɵi"},{"__symbolic":"reference","name":"ɵj"},{"__symbolic":"reference","name":"ɵk"}],"exports":[{"__symbolic":"reference","name":"ɵa"},{"__symbolic":"reference","name":"ɵg"},{"__symbolic":"reference","name":"ɵh"},{"__symbolic":"reference","name":"ɵi"},{"__symbolic":"reference","name":"ɵj"},{"__symbolic":"reference","name":"ɵk"}],"entryComponents":[{"__symbolic":"reference","name":"ɵa"}]}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"Injector","line":58,"character":34}]}],"ngDoBootstrap":[{"__symbolic":"method"}]}},"FileUploadControl":{"__symbolic":"class","members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"ValidatorFn"}]}],"setValidators":[{"__symbolic":"method"}],"defineValidators":[{"__symbolic":"method"}],"addFile":[{"__symbolic":"method"}],"removeFile":[{"__symbolic":"method"}],"addFiles":[{"__symbolic":"method"}],"addMultipleFiles":[{"__symbolic":"method"}],"getError":[{"__symbolic":"method"}],"setValue":[{"__symbolic":"method"}],"clear":[{"__symbolic":"method"}],"setListVisibility":[{"__symbolic":"method"}],"enable":[{"__symbolic":"method"}],"disable":[{"__symbolic":"method"}],"click":[{"__symbolic":"method"}],"focus":[{"__symbolic":"method"}],"blur":[{"__symbolic":"method"}],"validate":[{"__symbolic":"method"}]}},"FileUploadValidators":{"__symbolic":"class","members":{},"statics":{"fileSize":{"__symbolic":"function","parameters":["maxSize"],"value":{"__symbolic":"error","message":"Lambda not supported","line":55,"character":15,"module":"./helpers/validators.class"}},"sizeRange":{"__symbolic":"function","parameters":["minSize","maxSize"],"value":{"__symbolic":"error","message":"Lambda not supported","line":73,"character":15,"module":"./helpers/validators.class"}},"filesLimit":{"__symbolic":"function","parameters":["numFiles"],"value":{"__symbolic":"error","message":"Lambda not supported","line":91,"character":15,"module":"./helpers/validators.class"}},"accept":{"__symbolic":"function","parameters":["allowedFileTypes"],"value":{"__symbolic":"error","message":"Lambda not supported","line":118,"character":15,"module":"./helpers/validators.class"}}}},"ValidationErrors":{"__symbolic":"interface"},"ValidatorFn":{"__symbolic":"interface"},"FileUploadTypes":{"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"},"ɵa":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":31,"character":1},"arguments":[{"selector":"file-upload:not([simple])","providers":[{"__symbolic":"reference","name":"ɵb"},{"provide":{"__symbolic":"reference","module":"@angular/forms","name":"NG_VALUE_ACCESSOR","line":38,"character":21},"useExisting":{"__symbolic":"reference","name":"ɵa"},"multi":true}],"changeDetection":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectionStrategy","line":43,"character":21},"member":"OnPush"},"animations":[{"__symbolic":"reference","name":"ɵc"},{"__symbolic":"reference","name":"ɵd"}],"template":"<label #labelRef class=\"upload-input\" tabindex=\"0\" (keydown)=\"onKeyDown($event)\" [@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\" tabindex=\"-1\" 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>","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%);outline:0}: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:focus,:host(:not(.disabled)) .upload-input:hover{color:#80a9d2}:host(.dragover:not(.disabled)) .icon svg,:host(:not(.disabled)) .upload-input:focus 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}"]}]}],"members":{"control":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":51,"character":5}}]}],"templateRef":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChild","line":54,"character":5},"arguments":["placeholder"]}]}],"listItem":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChild","line":57,"character":5},"arguments":["item"]}]}],"input":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild","line":60,"character":5},"arguments":["inputRef"]}]}],"label":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild","line":63,"character":5},"arguments":["labelRef"]}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[null,null,null,[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":83,"character":9},"arguments":[{"__symbolic":"reference","module":"@angular/common","name":"DOCUMENT","line":83,"character":16}]}],null],"parameters":[{"__symbolic":"reference","name":"ɵb"},{"__symbolic":"reference","module":"@angular/core","name":"ElementRef","line":81,"character":32},{"__symbolic":"reference","module":"@angular/core","name":"Renderer2","line":82,"character":26},null,{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectorRef","line":84,"character":21}]}],"ngOnInit":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}],"hasFiles":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding","line":105,"character":5},"arguments":["class.has-files"]}]}],"isInvalid":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding","line":110,"character":5},"arguments":["class.ng-invalid"]}]}],"setEvents":[{"__symbolic":"method"}],"triggerEvent":[{"__symbolic":"method"}],"onKeyDown":[{"__symbolic":"method"}],"checkAndMarkAsDisabled":[{"__symbolic":"method"}],"preventDragEvents":[{"__symbolic":"method"}],"renderView":[{"__symbolic":"method"}],"showList":[{"__symbolic":"method"}],"hideList":[{"__symbolic":"method"}],"toggleListVisibility":[{"__symbolic":"method"}],"onDragOver":[{"__symbolic":"method"}],"onDragLeave":[{"__symbolic":"method"}],"onDrop":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostListener","line":219,"character":5},"arguments":["drop",["$event"]]}]}],"onInputChange":[{"__symbolic":"method"}],"clearInputEl":[{"__symbolic":"method"}],"connectToForm":[{"__symbolic":"method"}],"writeValue":[{"__symbolic":"method"}],"registerOnChange":[{"__symbolic":"method"}],"registerOnTouched":[{"__symbolic":"method"}],"setDisabledState":[{"__symbolic":"method"}],"zoomAnimationDone":[{"__symbolic":"method"}],"animationListFinished":[{"__symbolic":"method"}]}},"ɵb":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":3,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"Renderer2","line":8,"character":34}]}],"isFileDragDropAvailable":[{"__symbolic":"method"}],"calculateSize":[{"__symbolic":"method"}],"getFileType":[{"__symbolic":"method"}]}},"ɵc":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"trigger","line":4,"character":0},"arguments":["zoomAnimation",[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"transition","line":5,"character":4},"arguments":["static => zoomOut",[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"animate","line":6,"character":8},"arguments":[250,{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"style","line":6,"character":21},"arguments":[{"transform":"translate(-50%, -50%) scale(2, 2)","opacity":0}]}]}]]},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"transition","line":8,"character":4},"arguments":["static => zoomIn",[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"query","line":9,"character":8},"arguments":[":self",[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"style","line":10,"character":12},"arguments":[{"transform":"translate(-50%, -50%) scale(.2, .2)","opacity":0,"top":"50%","left":"50%","margin":0}]},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"stagger","line":11,"character":12},"arguments":[50,[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"animate","line":12,"character":16},"arguments":[250,{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"style","line":12,"character":29},"arguments":[{"transform":"translate(-50%, -50%) scale(1, 1)","opacity":1}]}]}]]}]]}]]}]]},"ɵd":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"trigger","line":4,"character":0},"arguments":["insertAnimation",[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"transition","line":5,"character":4},"arguments":["* => *",[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"query","line":6,"character":8},"arguments":[":leave",[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"stagger","line":7,"character":12},"arguments":[30,[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"animate","line":8,"character":16},"arguments":[".3s",{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"style","line":8,"character":31},"arguments":[{"opacity":0}]}]}]]}],{"optional":true}]},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"query","line":11,"character":8},"arguments":[":enter",[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"style","line":12,"character":12},"arguments":[{"opacity":0}]},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"stagger","line":13,"character":12},"arguments":[30,[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"animate","line":14,"character":16},"arguments":[".3s",{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"style","line":14,"character":31},"arguments":[{"opacity":1}]}]}]]}],{"optional":true}]}]]}]]},"ɵe":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":4,"character":1},"arguments":[{"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}.file-info{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.remove-btn{font-size:12px;cursor:pointer}.remove-btn svg{display:inline-block;vertical-align:-20%;height:18px;width:18px}"]}]}],"members":{"index":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":32,"character":5}}]}],"file":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":35,"character":5}}]}],"control":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":38,"character":5}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"ɵb"}]}],"removeFile":[{"__symbolic":"method"}],"calculateSize":[{"__symbolic":"method"}]}},"ɵf":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":4,"character":1},"arguments":[{"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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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}"]}]}],"members":{"file":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":11,"character":5}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"ɵb"}]}],"ngOnInit":[{"__symbolic":"method"}],"isIcon":[{"__symbolic":"method"}]}},"ɵg":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":24,"character":1},"arguments":[{"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":[{"__symbolic":"reference","name":"ɵb"}],"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}"]}]}],"members":{"control":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":64,"character":5}}]}],"overlay":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild","line":67,"character":5},"arguments":["overlay"]}]}],"templateRef":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChild","line":70,"character":5},"arguments":["placeholder"]}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[null,null,null,[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":81,"character":9},"arguments":[{"__symbolic":"reference","module":"@angular/common","name":"DOCUMENT","line":81,"character":16}]}]],"parameters":[{"__symbolic":"reference","name":"ɵb"},{"__symbolic":"reference","module":"@angular/core","name":"ElementRef","line":79,"character":32},{"__symbolic":"reference","module":"@angular/core","name":"Renderer2","line":80,"character":26},null]}],"ngOnInit":[{"__symbolic":"method"}],"ngAfterViewInit":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}],"hasFiles":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding","line":104,"character":5},"arguments":["class.has-files"]}]}],"isInvalid":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding","line":109,"character":5},"arguments":["class.ng-invalid"]}]}],"setEvents":[{"__symbolic":"method"}],"checkAndMarkAsDisabled":[{"__symbolic":"method"}],"preventDragEvents":[{"__symbolic":"method"}],"onDragOver":[{"__symbolic":"method"}],"onDragLeave":[{"__symbolic":"method"}],"onDrop":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostListener","line":175,"character":5},"arguments":["drop",["$event"]]}]}]}},"ɵh":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":19,"character":1},"arguments":[{"selector":"[filesize][formControlName],[filesize][formControl],[filesize][ngModel],\n [minsize][formControlName],[minsize][formControl],[minsize][ngModel],\n [maxsize][formControlName],[maxsize][formControl],[maxsize][ngModel]","providers":[{"provide":{"__symbolic":"reference","module":"@angular/forms","name":"NG_VALIDATORS","line":24,"character":17},"useExisting":{"__symbolic":"reference","name":"ɵh"},"multi":true}],"host":{"[attr.filesize]":"filesize ? filesize : null","[attr.minsize]":"minsize ? minsize : null","[attr.maxsize]":"maxsize ? maxsize : null","$quoted$":["[attr.filesize]","[attr.minsize]","[attr.maxsize]"]}}]}],"members":{"filesize":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":36,"character":5}}]}],"minsize":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":39,"character":5}}]}],"maxsize":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":42,"character":5}}]}],"ngOnChanges":[{"__symbolic":"method"}],"validate":[{"__symbolic":"method"}],"registerOnValidatorChange":[{"__symbolic":"method"}],"_createValidator":[{"__symbolic":"method"}]}},"ɵi":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":95,"character":1},"arguments":[{"selector":"[fileslimit][formControlName],[fileslimit][formControl],[fileslimit][ngModel]","providers":[{"provide":{"__symbolic":"reference","module":"@angular/forms","name":"NG_VALIDATORS","line":98,"character":17},"useExisting":{"__symbolic":"reference","name":"ɵi"},"multi":true}],"host":{"[attr.fileslimit]":"fileslimit ? fileslimit : null","$quoted$":["[attr.fileslimit]"]}}]}],"members":{"fileslimit":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":106,"character":5}}]}],"ngOnChanges":[{"__symbolic":"method"}],"validate":[{"__symbolic":"method"}],"registerOnValidatorChange":[{"__symbolic":"method"}],"_createValidator":[{"__symbolic":"method"}]}},"ɵj":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":150,"character":1},"arguments":[{"selector":"[accept][formControlName],[accept][formControl],[accept][ngModel]","providers":[{"provide":{"__symbolic":"reference","module":"@angular/forms","name":"NG_VALIDATORS","line":153,"character":17},"useExisting":{"__symbolic":"reference","name":"ɵi"},"multi":true}],"host":{"[attr.accept]":"accept ? accept : null","$quoted$":["[attr.accept]"]}}]}],"members":{"accept":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":161,"character":5}}]}],"ngOnChanges":[{"__symbolic":"method"}],"validate":[{"__symbolic":"method"}],"registerOnValidatorChange":[{"__symbolic":"method"}],"_createValidator":[{"__symbolic":"method"}]}},"ɵk":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":23,"character":1},"arguments":[{"selector":"file-upload[simple]","providers":[{"__symbolic":"reference","name":"ɵb"},{"provide":{"__symbolic":"reference","module":"@angular/forms","name":"NG_VALUE_ACCESSOR","line":30,"character":21},"useExisting":{"__symbolic":"reference","name":"ɵk"},"multi":true}],"changeDetection":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectionStrategy","line":35,"character":21},"member":"OnPush"},"template":"<div class=\"upload-text\">\r\n <ng-container *ngTemplateOutlet=\"placeholderRef ? placeholderRef : defaultPlaceholderTemplate; context: { control: control }\"></ng-container>\r\n\r\n <ng-template #defaultPlaceholderTemplate>\r\n <ng-container *ngIf=\"control.size > 0; else emptyList\">\r\n <ng-template ngFor let-file let-i=\"index\" [ngForOf]=\"control.valueChanges | async\">\r\n <span class=\"file-name\">{{ file.name }}</span>\r\n </ng-template>\r\n </ng-container>\r\n \r\n <ng-template #emptyList>\r\n Select a file...\r\n </ng-template>\r\n </ng-template>\r\n</div>\r\n\r\n<label #labelRef class=\"upload-button\" tabindex=\"0\" (keydown)=\"onKeyDown($event)\">\r\n <ng-container *ngTemplateOutlet=\"buttonRef ? buttonRef : defaultButtonTemplate; context: { control: control }\"></ng-container>\r\n\r\n <ng-template #defaultButtonTemplate>\r\n <div class=\"button\">\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 <span class=\"button-text\">Browse</span>\r\n </div>\r\n </ng-template>\r\n\r\n <input #inputRef type=\"file\" class=\"files-input\" tabindex=\"-1\" (change)=\"onInputChange($event)\">\r\n</label>","styles":[":host,:host>*{box-sizing:border-box}:host{display:flex;line-height:1.5;color:#555;background-color:#fff;border:1px solid #ddd;border-radius:4px;box-shadow:inset 0 4px 7px rgba(0,0,0,.05)}:host(.disabled){opacity:.5}.files-input{width:.1px;height:.1px;opacity:0;position:absolute;left:-100%;top:-100%;overflow:hidden}.icon{height:24px;width:24px;display:inline-block}.icon svg{fill:#555}.upload-button{cursor:pointer;display:block;padding:2px 4px;background-color:#eee;border-left:1px solid #ddd;border-radius:0 4px 4px 0;min-width:100px;color:#555;margin:0;position:relative;outline:0}.upload-text{display:block;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;width:100%;padding:5px 10px;font-size:14px;height:30px}.button-text{vertical-align:middle;padding-left:10px}:host(.disabled) .upload-button{cursor:not-allowed}:host(:not(.disabled)) .upload-button:focus,:host(:not(.disabled)) .upload-button:hover{color:#80a9d2}:host(:not(.disabled)) .upload-button:focus svg,:host(:not(.disabled)) .upload-button:hover svg{fill:#80a9d2}"]}]}],"members":{"control":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":39,"character":5}}]}],"buttonRef":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChild","line":42,"character":5},"arguments":["button"]}]}],"placeholderRef":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChild","line":45,"character":5},"arguments":["placeholder"]}]}],"input":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild","line":48,"character":5},"arguments":["inputRef"]}]}],"label":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild","line":51,"character":5},"arguments":["labelRef"]}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"ɵb"},{"__symbolic":"reference","module":"@angular/core","name":"ElementRef","line":58,"character":32},{"__symbolic":"reference","module":"@angular/core","name":"Renderer2","line":59,"character":26},{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectorRef","line":60,"character":21}]}],"ngOnInit":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}],"hasFiles":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding","line":79,"character":5},"arguments":["class.has-files"]}]}],"isInvalid":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding","line":84,"character":5},"arguments":["class.ng-invalid"]}]}],"setEvents":[{"__symbolic":"method"}],"checkAndMarkAsDisabled":[{"__symbolic":"method"}],"onInputChange":[{"__symbolic":"method"}],"clearInputEl":[{"__symbolic":"method"}],"connectToForm":[{"__symbolic":"method"}],"writeValue":[{"__symbolic":"method"}],"registerOnChange":[{"__symbolic":"method"}],"registerOnTouched":[{"__symbolic":"method"}],"setDisabledState":[{"__symbolic":"method"}],"triggerEvent":[{"__symbolic":"method"}],"onKeyDown":[{"__symbolic":"method"}]}}},"origins":{"FileUploadModule":"./file-upload.module","FileUploadControl":"./helpers/control.class","FileUploadValidators":"./helpers/validators.class","ValidationErrors":"./helpers/validators.class","ValidatorFn":"./helpers/validators.class","FileUploadTypes":"./helpers/file-types.class","ɵa":"./components/file-upload.component","ɵb":"./services/file-upload.service","ɵc":"./animations/zoom.animation","ɵd":"./animations/insert.animation","ɵe":"./components/file-upload-list-item.component","ɵf":"./components/file-upload-icon.component","ɵg":"./components/file-upload-attr.component","ɵh":"./directives/validators.directive","ɵi":"./directives/validators.directive","ɵj":"./directives/validators.directive","ɵk":"./components/simple-file-upload.component"},"importAs":"@iplab/ngx-file-upload"} |
@@ -6,3 +6,3 @@ { | ||
"bugs": "https://github.com/pIvan/file-upload/issues", | ||
"version": "1.1.10", | ||
"version": "1.2.0", | ||
"author": "Ivan Pintar", | ||
@@ -9,0 +9,0 @@ "license": "MIT", |
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 too big to display
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
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
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
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
1190178
60
12799
38