angular2-image-upload
Advanced tools
Comparing version 0.6.3 to 0.6.4
@@ -27,4 +27,3 @@ import { EventEmitter, OnInit } from '@angular/core'; | ||
showFileTooLargeMessage: boolean; | ||
private fileCounter; | ||
private pendingFilesCounter; | ||
fileCounter: number; | ||
isFileOver: boolean; | ||
@@ -35,2 +34,4 @@ buttonCaption: string; | ||
supportedExtensions: string[]; | ||
private pendingFilesCounter; | ||
private inputElement; | ||
constructor(imageService: ImageService); | ||
@@ -37,0 +38,0 @@ ngOnInit(): void; |
@@ -25,3 +25,2 @@ "use strict"; | ||
this.fileCounter = 0; | ||
this.pendingFilesCounter = 0; | ||
this.isFileOver = false; | ||
@@ -31,2 +30,3 @@ this.buttonCaption = 'Select Images'; | ||
this.supportedExtensions = ['image/*']; | ||
this.pendingFilesCounter = 0; | ||
} | ||
@@ -55,2 +55,3 @@ ImageUploadComponent.prototype.ngOnInit = function () { | ||
this.fileCounter--; | ||
this.inputElement.nativeElement.value = ''; | ||
this.onRemove.emit(file); | ||
@@ -61,2 +62,3 @@ }; | ||
this.fileCounter = 0; | ||
this.inputElement.nativeElement.value = ''; | ||
}; | ||
@@ -121,4 +123,4 @@ ImageUploadComponent.prototype.fileOver = function (isOver) { | ||
selector: 'image-upload', | ||
template: "\n <div class=\"image-upload\"\n fileDrop\n [accept]=\"supportedExtensions\"\n (isFileOver)=\"fileOver($event)\"\n (fileDrop)=\"fileChange($event)\"\n [ngClass]=\"{'file-is-over': isFileOver}\"\n >\n <div class=\"file-upload hr-inline-group\">\n <label class=\"upload button\">\n <span [innerText]=\"buttonCaption\"></span>\n <input\n type=\"file\"\n [accept]=\"supportedExtensions\"\n multiple (change)=\"fileChange(input.files)\"\n #input>\n </label>\n <label *ngIf=\"fileCounter > 0\" class=\"clear button\" (click)=\"deleteAll()\">\n <span [innerText]=\"'Clear'\"></span>\n </label>\n\n <div class=\"drag-box-message\" [innerText]=\"dropBoxMessage\"></div>\n </div>\n\n <p class=\"file-too-large\" *ngIf=\"showFileTooLargeMessage\" [innerText]=\"fileTooLargeMessage\">\n </p>\n\n <div *ngIf=\"preview\" class=\"image-container hr-inline-group\">\n <div\n class=\"image\"\n *ngFor=\"let file of files\"\n [ngStyle]=\"{'background-image': 'url('+ file.src +')'}\"\n >\n <div *ngIf=\"file.pending\" class=\"loading-overlay\">\n <div class=\"spinningCircle\"></div>\n </div>\n <div *ngIf=\"!file.pending\" class=\"x-mark\" (click)=\"deleteFile(file)\">\n <span class=\"close\"></span>\n </div>\n </div>\n </div>\n </div>", | ||
styles: ["\n .image-upload {\n --common-radius: 3px;\n --active-color: #33CC99;\n position: relative;\n border-radius: var(--common-radius);\n border: #d0d0d0 dashed 1px;\n font-family: sans-serif;\n }\n\n .file-is-over {\n border-color: var(--active-color);\n border-style: solid;\n }\n\n .hr-inline-group:after {\n display: table;\n clear: both;\n content: \"\";\n }\n\n .file-upload {\n padding: 16px;\n background-color: #f8f8f8;\n }\n\n .drag-box-message {\n float: left;\n display: inline-block;\n margin-left: 12px;\n padding-top: 14px;\n color: #9b9b9b;\n font-weight: 600;\n }\n\n label.button input[type=file] {\n display: none;\n position: fixed;\n top: -99999px;\n }\n\n .clear{\n background-color: #FF0000;\n } \n\n .button {\n cursor: pointer;\n padding: 10px;\n color: white;\n font-size: 1.25em;\n font-weight: 500;\n text-transform: uppercase;\n display: inline-block;\n float: left;\n -webkit-box-shadow: 2px 2px 4px 0px rgba(148, 148, 148, 0.6);\n -moz-box-shadow: 2px 2px 4px 0px rgba(148, 148, 148, 0.6);\n box-shadow: 2px 2px 4px 0px rgba(148, 148, 148, 0.6);\n }\n\n .button:active span {\n position: relative;\n display: block;\n top: 1px;\n }\n\n .upload{\n background-color: var(--active-color);\n }\n\n .image-container {\n background-color: #fdfdfd;\n padding: 0 10px 0 10px;\n }\n\n .image {\n float: left;\n display: inline-block;\n margin: 6px;\n width: 86px;\n height: 86px;\n background: center center no-repeat;\n background-size: contain;\n position: relative;\n }\n\n .x-mark {\n width: 20px;\n height: 20px;\n text-align: center;\n cursor: pointer;\n border-radius: 2px;\n float: right;\n background-color: black;\n opacity: .7;\n color: white;\n margin: 2px;\n }\n\n .close {\n width: 20px;\n height: 20px;\n opacity: .7;\n position: relative;\n padding-right: 3px;\n }\n\n .x-mark:hover .close {\n opacity: 1;\n }\n\n .close:before, .close:after {\n border-radius: 2px;\n position: absolute;\n content: '';\n height: 16px;\n width: 2px;\n top: 2px;\n background-color: #FFFFFF;\n }\n\n .close:before {\n transform: rotate(45deg);\n }\n\n .close:after {\n transform: rotate(-45deg);\n }\n\n .loading-overlay {\n position: absolute;\n top: 0;\n left: 0;\n bottom: 0;\n right: 0;\n background-color: black;\n opacity: .7;\n }\n\n .spinningCircle {\n height: 30px;\n width: 30px;\n margin: auto;\n position: absolute;\n top: 0;\n left: 0;\n bottom: 0;\n right: 0;\n border-radius: 50%;\n border: 3px solid rgba(255, 255, 255, 0);\n border-top: 3px solid white;\n border-right: 3px solid white;\n -webkit-animation: spinner 2s infinite cubic-bezier(0.085, 0.625, 0.855, 0.360);\n animation: spinner 2s infinite cubic-bezier(0.085, 0.625, 0.855, 0.360);\n }\n\n .file-too-large {\n color: red;\n padding: 0 15px;\n }\n\n @-webkit-keyframes spinner {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n }\n\n @keyframes spinner {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n\n }\n }"] | ||
template: "\n <div class=\"image-upload\"\n fileDrop\n [accept]=\"supportedExtensions\"\n (isFileOver)=\"fileOver($event)\"\n (fileDrop)=\"fileChange($event)\"\n [ngClass]=\"{'file-is-over': isFileOver}\"\n >\n <div class=\"file-upload hr-inline-group\">\n <label class=\"upload button\">\n <span [innerText]=\"buttonCaption\"></span>\n <input\n type=\"file\"\n [accept]=\"supportedExtensions\"\n multiple (change)=\"fileChange(input.files)\"\n #input>\n </label>\n <label *ngIf=\"fileCounter > 0\" class=\"clear button\" (click)=\"deleteAll()\">\n <span [innerText]=\"'Clear'\"></span>\n </label>\n\n <div class=\"drag-box-message\" [innerText]=\"dropBoxMessage\"></div>\n </div>\n\n <p class=\"file-too-large\" *ngIf=\"showFileTooLargeMessage\" [innerText]=\"fileTooLargeMessage\">\n </p>\n\n <div *ngIf=\"preview\" class=\"image-container hr-inline-group\">\n <div\n class=\"image\"\n *ngFor=\"let file of files\"\n [ngStyle]=\"{'background-image': 'url('+ file.src +')'}\"\n >\n <div *ngIf=\"file.pending\" class=\"loading-overlay\">\n <div class=\"spinningCircle\"></div>\n </div>\n <div *ngIf=\"!file.pending\" class=\"x-mark\" (click)=\"deleteFile(file)\">\n <span class=\"close\"></span>\n </div>\n </div>\n </div>\n </div>\n ", | ||
styles: ["\n .image-upload {\n --common-radius: 3px;\n --active-color: #33CC99;\n position: relative;\n border-radius: var(--common-radius);\n border: #d0d0d0 dashed 1px;\n font-family: sans-serif;\n }\n\n .file-is-over {\n border-color: var(--active-color);\n border-style: solid;\n }\n\n .hr-inline-group:after {\n display: table;\n clear: both;\n content: \"\";\n }\n\n .file-upload {\n padding: 16px;\n background-color: #f8f8f8;\n }\n\n .drag-box-message {\n float: left;\n display: inline-block;\n margin-left: 12px;\n padding-top: 14px;\n color: #9b9b9b;\n font-weight: 600;\n }\n\n label.button input[type=file] {\n display: none;\n position: fixed;\n top: -99999px;\n }\n\n .clear {\n background-color: #FF0000;\n }\n\n .button {\n cursor: pointer;\n padding: 10px;\n color: white;\n font-size: 1.25em;\n font-weight: 500;\n text-transform: uppercase;\n display: inline-block;\n float: left;\n -webkit-box-shadow: 2px 2px 4px 0px rgba(148, 148, 148, 0.6);\n -moz-box-shadow: 2px 2px 4px 0px rgba(148, 148, 148, 0.6);\n box-shadow: 2px 2px 4px 0px rgba(148, 148, 148, 0.6);\n }\n\n .button:active span {\n position: relative;\n display: block;\n top: 1px;\n }\n\n .upload {\n background-color: var(--active-color);\n }\n\n .image-container {\n background-color: #fdfdfd;\n padding: 0 10px 0 10px;\n }\n\n .image {\n float: left;\n display: inline-block;\n margin: 6px;\n width: 86px;\n height: 86px;\n background: center center no-repeat;\n background-size: contain;\n position: relative;\n }\n\n .x-mark {\n width: 20px;\n height: 20px;\n text-align: center;\n cursor: pointer;\n border-radius: 2px;\n float: right;\n background-color: black;\n opacity: .7;\n color: white;\n margin: 2px;\n }\n\n .close {\n width: 20px;\n height: 20px;\n opacity: .7;\n position: relative;\n padding-right: 3px;\n }\n\n .x-mark:hover .close {\n opacity: 1;\n }\n\n .close:before, .close:after {\n border-radius: 2px;\n position: absolute;\n content: '';\n height: 16px;\n width: 2px;\n top: 2px;\n background-color: #FFFFFF;\n }\n\n .close:before {\n transform: rotate(45deg);\n }\n\n .close:after {\n transform: rotate(-45deg);\n }\n\n .loading-overlay {\n position: absolute;\n top: 0;\n left: 0;\n bottom: 0;\n right: 0;\n background-color: black;\n opacity: .7;\n }\n\n .spinningCircle {\n height: 30px;\n width: 30px;\n margin: auto;\n position: absolute;\n top: 0;\n left: 0;\n bottom: 0;\n right: 0;\n border-radius: 50%;\n border: 3px solid rgba(255, 255, 255, 0);\n border-top: 3px solid white;\n border-right: 3px solid white;\n -webkit-animation: spinner 2s infinite cubic-bezier(0.085, 0.625, 0.855, 0.360);\n animation: spinner 2s infinite cubic-bezier(0.085, 0.625, 0.855, 0.360);\n }\n\n .file-too-large {\n color: red;\n padding: 0 15px;\n }\n\n @-webkit-keyframes spinner {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n }\n\n @keyframes spinner {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n\n }\n }\n "] | ||
},] }, | ||
@@ -144,4 +146,5 @@ ]; | ||
'supportedExtensions': [{ type: core_1.Input, args: ['extensions',] },], | ||
'inputElement': [{ type: core_1.ViewChild, args: ['input',] },], | ||
}; | ||
exports.ImageUploadComponent = ImageUploadComponent; | ||
//# sourceMappingURL=image-upload.component.js.map |
@@ -1,1 +0,1 @@ | ||
[{"__symbolic":"module","version":3,"metadata":{"FileHolder":{"__symbolic":"class","members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"string"},{"__symbolic":"error","message":"Could not resolve type","line":7,"character":47,"context":{"typeName":"File"}}]}]}},"ImageUploadComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"image-upload","template":"\n <div class=\"image-upload\"\n fileDrop\n [accept]=\"supportedExtensions\"\n (isFileOver)=\"fileOver($event)\"\n (fileDrop)=\"fileChange($event)\"\n [ngClass]=\"{'file-is-over': isFileOver}\"\n >\n <div class=\"file-upload hr-inline-group\">\n <label class=\"upload button\">\n <span [innerText]=\"buttonCaption\"></span>\n <input\n type=\"file\"\n [accept]=\"supportedExtensions\"\n multiple (change)=\"fileChange(input.files)\"\n #input>\n </label>\n <label *ngIf=\"fileCounter > 0\" class=\"clear button\" (click)=\"deleteAll()\">\n <span [innerText]=\"'Clear'\"></span>\n </label>\n\n <div class=\"drag-box-message\" [innerText]=\"dropBoxMessage\"></div>\n </div>\n\n <p class=\"file-too-large\" *ngIf=\"showFileTooLargeMessage\" [innerText]=\"fileTooLargeMessage\">\n </p>\n\n <div *ngIf=\"preview\" class=\"image-container hr-inline-group\">\n <div\n class=\"image\"\n *ngFor=\"let file of files\"\n [ngStyle]=\"{'background-image': 'url('+ file.src +')'}\"\n >\n <div *ngIf=\"file.pending\" class=\"loading-overlay\">\n <div class=\"spinningCircle\"></div>\n </div>\n <div *ngIf=\"!file.pending\" class=\"x-mark\" (click)=\"deleteFile(file)\">\n <span class=\"close\"></span>\n </div>\n </div>\n </div>\n </div>","styles":["\n .image-upload {\n --common-radius: 3px;\n --active-color: #33CC99;\n position: relative;\n border-radius: var(--common-radius);\n border: #d0d0d0 dashed 1px;\n font-family: sans-serif;\n }\n\n .file-is-over {\n border-color: var(--active-color);\n border-style: solid;\n }\n\n .hr-inline-group:after {\n display: table;\n clear: both;\n content: \"\";\n }\n\n .file-upload {\n padding: 16px;\n background-color: #f8f8f8;\n }\n\n .drag-box-message {\n float: left;\n display: inline-block;\n margin-left: 12px;\n padding-top: 14px;\n color: #9b9b9b;\n font-weight: 600;\n }\n\n label.button input[type=file] {\n display: none;\n position: fixed;\n top: -99999px;\n }\n\n .clear{\n background-color: #FF0000;\n } \n\n .button {\n cursor: pointer;\n padding: 10px;\n color: white;\n font-size: 1.25em;\n font-weight: 500;\n text-transform: uppercase;\n display: inline-block;\n float: left;\n -webkit-box-shadow: 2px 2px 4px 0px rgba(148, 148, 148, 0.6);\n -moz-box-shadow: 2px 2px 4px 0px rgba(148, 148, 148, 0.6);\n box-shadow: 2px 2px 4px 0px rgba(148, 148, 148, 0.6);\n }\n\n .button:active span {\n position: relative;\n display: block;\n top: 1px;\n }\n\n .upload{\n background-color: var(--active-color);\n }\n\n .image-container {\n background-color: #fdfdfd;\n padding: 0 10px 0 10px;\n }\n\n .image {\n float: left;\n display: inline-block;\n margin: 6px;\n width: 86px;\n height: 86px;\n background: center center no-repeat;\n background-size: contain;\n position: relative;\n }\n\n .x-mark {\n width: 20px;\n height: 20px;\n text-align: center;\n cursor: pointer;\n border-radius: 2px;\n float: right;\n background-color: black;\n opacity: .7;\n color: white;\n margin: 2px;\n }\n\n .close {\n width: 20px;\n height: 20px;\n opacity: .7;\n position: relative;\n padding-right: 3px;\n }\n\n .x-mark:hover .close {\n opacity: 1;\n }\n\n .close:before, .close:after {\n border-radius: 2px;\n position: absolute;\n content: '';\n height: 16px;\n width: 2px;\n top: 2px;\n background-color: #FFFFFF;\n }\n\n .close:before {\n transform: rotate(45deg);\n }\n\n .close:after {\n transform: rotate(-45deg);\n }\n\n .loading-overlay {\n position: absolute;\n top: 0;\n left: 0;\n bottom: 0;\n right: 0;\n background-color: black;\n opacity: .7;\n }\n\n .spinningCircle {\n height: 30px;\n width: 30px;\n margin: auto;\n position: absolute;\n top: 0;\n left: 0;\n bottom: 0;\n right: 0;\n border-radius: 50%;\n border: 3px solid rgba(255, 255, 255, 0);\n border-top: 3px solid white;\n border-right: 3px solid white;\n -webkit-animation: spinner 2s infinite cubic-bezier(0.085, 0.625, 0.855, 0.360);\n animation: spinner 2s infinite cubic-bezier(0.085, 0.625, 0.855, 0.360);\n }\n\n .file-too-large {\n color: red;\n padding: 0 15px;\n }\n\n @-webkit-keyframes spinner {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n }\n\n @keyframes spinner {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n\n }\n }"]}]}],"members":{"max":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"url":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"headers":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"preview":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"maxFileSize":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"withCredentials":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"partName":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"isPending":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"onFileUploadFinish":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"onRemove":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"buttonCaption":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"dropBoxMessage":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"fileTooLargeMessage":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"supportedExtensions":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"},"arguments":["extensions"]}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"../image.service","name":"ImageService"}]}],"ngOnInit":[{"__symbolic":"method"}],"fileChange":[{"__symbolic":"method"}],"deleteFile":[{"__symbolic":"method"}],"deleteAll":[{"__symbolic":"method"}],"fileOver":[{"__symbolic":"method"}],"uploadFiles":[{"__symbolic":"method"}],"onResponse":[{"__symbolic":"method"}],"uploadSingleFile":[{"__symbolic":"method"}],"countRemainingSlots":[{"__symbolic":"method"}]}}}},{"__symbolic":"module","version":1,"metadata":{"FileHolder":{"__symbolic":"class","members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"string"},{"__symbolic":"error","message":"Could not resolve type","line":7,"character":47,"context":{"typeName":"File"}}]}]}},"ImageUploadComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"image-upload","template":"\n <div class=\"image-upload\"\n fileDrop\n [accept]=\"supportedExtensions\"\n (isFileOver)=\"fileOver($event)\"\n (fileDrop)=\"fileChange($event)\"\n [ngClass]=\"{'file-is-over': isFileOver}\"\n >\n <div class=\"file-upload hr-inline-group\">\n <label class=\"upload button\">\n <span [innerText]=\"buttonCaption\"></span>\n <input\n type=\"file\"\n [accept]=\"supportedExtensions\"\n multiple (change)=\"fileChange(input.files)\"\n #input>\n </label>\n <label *ngIf=\"fileCounter > 0\" class=\"clear button\" (click)=\"deleteAll()\">\n <span [innerText]=\"'Clear'\"></span>\n </label>\n\n <div class=\"drag-box-message\" [innerText]=\"dropBoxMessage\"></div>\n </div>\n\n <p class=\"file-too-large\" *ngIf=\"showFileTooLargeMessage\" [innerText]=\"fileTooLargeMessage\">\n </p>\n\n <div *ngIf=\"preview\" class=\"image-container hr-inline-group\">\n <div\n class=\"image\"\n *ngFor=\"let file of files\"\n [ngStyle]=\"{'background-image': 'url('+ file.src +')'}\"\n >\n <div *ngIf=\"file.pending\" class=\"loading-overlay\">\n <div class=\"spinningCircle\"></div>\n </div>\n <div *ngIf=\"!file.pending\" class=\"x-mark\" (click)=\"deleteFile(file)\">\n <span class=\"close\"></span>\n </div>\n </div>\n </div>\n </div>","styles":["\n .image-upload {\n --common-radius: 3px;\n --active-color: #33CC99;\n position: relative;\n border-radius: var(--common-radius);\n border: #d0d0d0 dashed 1px;\n font-family: sans-serif;\n }\n\n .file-is-over {\n border-color: var(--active-color);\n border-style: solid;\n }\n\n .hr-inline-group:after {\n display: table;\n clear: both;\n content: \"\";\n }\n\n .file-upload {\n padding: 16px;\n background-color: #f8f8f8;\n }\n\n .drag-box-message {\n float: left;\n display: inline-block;\n margin-left: 12px;\n padding-top: 14px;\n color: #9b9b9b;\n font-weight: 600;\n }\n\n label.button input[type=file] {\n display: none;\n position: fixed;\n top: -99999px;\n }\n\n .clear{\n background-color: #FF0000;\n } \n\n .button {\n cursor: pointer;\n padding: 10px;\n color: white;\n font-size: 1.25em;\n font-weight: 500;\n text-transform: uppercase;\n display: inline-block;\n float: left;\n -webkit-box-shadow: 2px 2px 4px 0px rgba(148, 148, 148, 0.6);\n -moz-box-shadow: 2px 2px 4px 0px rgba(148, 148, 148, 0.6);\n box-shadow: 2px 2px 4px 0px rgba(148, 148, 148, 0.6);\n }\n\n .button:active span {\n position: relative;\n display: block;\n top: 1px;\n }\n\n .upload{\n background-color: var(--active-color);\n }\n\n .image-container {\n background-color: #fdfdfd;\n padding: 0 10px 0 10px;\n }\n\n .image {\n float: left;\n display: inline-block;\n margin: 6px;\n width: 86px;\n height: 86px;\n background: center center no-repeat;\n background-size: contain;\n position: relative;\n }\n\n .x-mark {\n width: 20px;\n height: 20px;\n text-align: center;\n cursor: pointer;\n border-radius: 2px;\n float: right;\n background-color: black;\n opacity: .7;\n color: white;\n margin: 2px;\n }\n\n .close {\n width: 20px;\n height: 20px;\n opacity: .7;\n position: relative;\n padding-right: 3px;\n }\n\n .x-mark:hover .close {\n opacity: 1;\n }\n\n .close:before, .close:after {\n border-radius: 2px;\n position: absolute;\n content: '';\n height: 16px;\n width: 2px;\n top: 2px;\n background-color: #FFFFFF;\n }\n\n .close:before {\n transform: rotate(45deg);\n }\n\n .close:after {\n transform: rotate(-45deg);\n }\n\n .loading-overlay {\n position: absolute;\n top: 0;\n left: 0;\n bottom: 0;\n right: 0;\n background-color: black;\n opacity: .7;\n }\n\n .spinningCircle {\n height: 30px;\n width: 30px;\n margin: auto;\n position: absolute;\n top: 0;\n left: 0;\n bottom: 0;\n right: 0;\n border-radius: 50%;\n border: 3px solid rgba(255, 255, 255, 0);\n border-top: 3px solid white;\n border-right: 3px solid white;\n -webkit-animation: spinner 2s infinite cubic-bezier(0.085, 0.625, 0.855, 0.360);\n animation: spinner 2s infinite cubic-bezier(0.085, 0.625, 0.855, 0.360);\n }\n\n .file-too-large {\n color: red;\n padding: 0 15px;\n }\n\n @-webkit-keyframes spinner {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n }\n\n @keyframes spinner {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n\n }\n }"]}]}],"members":{"max":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"url":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"headers":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"preview":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"maxFileSize":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"withCredentials":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"partName":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"isPending":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"onFileUploadFinish":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"onRemove":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"buttonCaption":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"dropBoxMessage":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"fileTooLargeMessage":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"supportedExtensions":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"},"arguments":["extensions"]}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"../image.service","name":"ImageService"}]}],"ngOnInit":[{"__symbolic":"method"}],"fileChange":[{"__symbolic":"method"}],"deleteFile":[{"__symbolic":"method"}],"deleteAll":[{"__symbolic":"method"}],"fileOver":[{"__symbolic":"method"}],"uploadFiles":[{"__symbolic":"method"}],"onResponse":[{"__symbolic":"method"}],"uploadSingleFile":[{"__symbolic":"method"}],"countRemainingSlots":[{"__symbolic":"method"}]}}}}] | ||
[{"__symbolic":"module","version":3,"metadata":{"FileHolder":{"__symbolic":"class","members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"string"},{"__symbolic":"error","message":"Could not resolve type","line":7,"character":47,"context":{"typeName":"File"}}]}]}},"ImageUploadComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"image-upload","template":"\n <div class=\"image-upload\"\n fileDrop\n [accept]=\"supportedExtensions\"\n (isFileOver)=\"fileOver($event)\"\n (fileDrop)=\"fileChange($event)\"\n [ngClass]=\"{'file-is-over': isFileOver}\"\n >\n <div class=\"file-upload hr-inline-group\">\n <label class=\"upload button\">\n <span [innerText]=\"buttonCaption\"></span>\n <input\n type=\"file\"\n [accept]=\"supportedExtensions\"\n multiple (change)=\"fileChange(input.files)\"\n #input>\n </label>\n <label *ngIf=\"fileCounter > 0\" class=\"clear button\" (click)=\"deleteAll()\">\n <span [innerText]=\"'Clear'\"></span>\n </label>\n\n <div class=\"drag-box-message\" [innerText]=\"dropBoxMessage\"></div>\n </div>\n\n <p class=\"file-too-large\" *ngIf=\"showFileTooLargeMessage\" [innerText]=\"fileTooLargeMessage\">\n </p>\n\n <div *ngIf=\"preview\" class=\"image-container hr-inline-group\">\n <div\n class=\"image\"\n *ngFor=\"let file of files\"\n [ngStyle]=\"{'background-image': 'url('+ file.src +')'}\"\n >\n <div *ngIf=\"file.pending\" class=\"loading-overlay\">\n <div class=\"spinningCircle\"></div>\n </div>\n <div *ngIf=\"!file.pending\" class=\"x-mark\" (click)=\"deleteFile(file)\">\n <span class=\"close\"></span>\n </div>\n </div>\n </div>\n </div>\n ","styles":["\n .image-upload {\n --common-radius: 3px;\n --active-color: #33CC99;\n position: relative;\n border-radius: var(--common-radius);\n border: #d0d0d0 dashed 1px;\n font-family: sans-serif;\n }\n\n .file-is-over {\n border-color: var(--active-color);\n border-style: solid;\n }\n\n .hr-inline-group:after {\n display: table;\n clear: both;\n content: \"\";\n }\n\n .file-upload {\n padding: 16px;\n background-color: #f8f8f8;\n }\n\n .drag-box-message {\n float: left;\n display: inline-block;\n margin-left: 12px;\n padding-top: 14px;\n color: #9b9b9b;\n font-weight: 600;\n }\n\n label.button input[type=file] {\n display: none;\n position: fixed;\n top: -99999px;\n }\n\n .clear {\n background-color: #FF0000;\n }\n\n .button {\n cursor: pointer;\n padding: 10px;\n color: white;\n font-size: 1.25em;\n font-weight: 500;\n text-transform: uppercase;\n display: inline-block;\n float: left;\n -webkit-box-shadow: 2px 2px 4px 0px rgba(148, 148, 148, 0.6);\n -moz-box-shadow: 2px 2px 4px 0px rgba(148, 148, 148, 0.6);\n box-shadow: 2px 2px 4px 0px rgba(148, 148, 148, 0.6);\n }\n\n .button:active span {\n position: relative;\n display: block;\n top: 1px;\n }\n\n .upload {\n background-color: var(--active-color);\n }\n\n .image-container {\n background-color: #fdfdfd;\n padding: 0 10px 0 10px;\n }\n\n .image {\n float: left;\n display: inline-block;\n margin: 6px;\n width: 86px;\n height: 86px;\n background: center center no-repeat;\n background-size: contain;\n position: relative;\n }\n\n .x-mark {\n width: 20px;\n height: 20px;\n text-align: center;\n cursor: pointer;\n border-radius: 2px;\n float: right;\n background-color: black;\n opacity: .7;\n color: white;\n margin: 2px;\n }\n\n .close {\n width: 20px;\n height: 20px;\n opacity: .7;\n position: relative;\n padding-right: 3px;\n }\n\n .x-mark:hover .close {\n opacity: 1;\n }\n\n .close:before, .close:after {\n border-radius: 2px;\n position: absolute;\n content: '';\n height: 16px;\n width: 2px;\n top: 2px;\n background-color: #FFFFFF;\n }\n\n .close:before {\n transform: rotate(45deg);\n }\n\n .close:after {\n transform: rotate(-45deg);\n }\n\n .loading-overlay {\n position: absolute;\n top: 0;\n left: 0;\n bottom: 0;\n right: 0;\n background-color: black;\n opacity: .7;\n }\n\n .spinningCircle {\n height: 30px;\n width: 30px;\n margin: auto;\n position: absolute;\n top: 0;\n left: 0;\n bottom: 0;\n right: 0;\n border-radius: 50%;\n border: 3px solid rgba(255, 255, 255, 0);\n border-top: 3px solid white;\n border-right: 3px solid white;\n -webkit-animation: spinner 2s infinite cubic-bezier(0.085, 0.625, 0.855, 0.360);\n animation: spinner 2s infinite cubic-bezier(0.085, 0.625, 0.855, 0.360);\n }\n\n .file-too-large {\n color: red;\n padding: 0 15px;\n }\n\n @-webkit-keyframes spinner {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n }\n\n @keyframes spinner {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n\n }\n }\n "]}]}],"members":{"max":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"url":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"headers":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"preview":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"maxFileSize":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"withCredentials":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"partName":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"isPending":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"onFileUploadFinish":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"onRemove":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"buttonCaption":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"dropBoxMessage":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"fileTooLargeMessage":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"supportedExtensions":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"},"arguments":["extensions"]}]}],"inputElement":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild"},"arguments":["input"]}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"../image.service","name":"ImageService"}]}],"ngOnInit":[{"__symbolic":"method"}],"fileChange":[{"__symbolic":"method"}],"deleteFile":[{"__symbolic":"method"}],"deleteAll":[{"__symbolic":"method"}],"fileOver":[{"__symbolic":"method"}],"uploadFiles":[{"__symbolic":"method"}],"onResponse":[{"__symbolic":"method"}],"uploadSingleFile":[{"__symbolic":"method"}],"countRemainingSlots":[{"__symbolic":"method"}]}}}},{"__symbolic":"module","version":1,"metadata":{"FileHolder":{"__symbolic":"class","members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"string"},{"__symbolic":"error","message":"Could not resolve type","line":7,"character":47,"context":{"typeName":"File"}}]}]}},"ImageUploadComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"image-upload","template":"\n <div class=\"image-upload\"\n fileDrop\n [accept]=\"supportedExtensions\"\n (isFileOver)=\"fileOver($event)\"\n (fileDrop)=\"fileChange($event)\"\n [ngClass]=\"{'file-is-over': isFileOver}\"\n >\n <div class=\"file-upload hr-inline-group\">\n <label class=\"upload button\">\n <span [innerText]=\"buttonCaption\"></span>\n <input\n type=\"file\"\n [accept]=\"supportedExtensions\"\n multiple (change)=\"fileChange(input.files)\"\n #input>\n </label>\n <label *ngIf=\"fileCounter > 0\" class=\"clear button\" (click)=\"deleteAll()\">\n <span [innerText]=\"'Clear'\"></span>\n </label>\n\n <div class=\"drag-box-message\" [innerText]=\"dropBoxMessage\"></div>\n </div>\n\n <p class=\"file-too-large\" *ngIf=\"showFileTooLargeMessage\" [innerText]=\"fileTooLargeMessage\">\n </p>\n\n <div *ngIf=\"preview\" class=\"image-container hr-inline-group\">\n <div\n class=\"image\"\n *ngFor=\"let file of files\"\n [ngStyle]=\"{'background-image': 'url('+ file.src +')'}\"\n >\n <div *ngIf=\"file.pending\" class=\"loading-overlay\">\n <div class=\"spinningCircle\"></div>\n </div>\n <div *ngIf=\"!file.pending\" class=\"x-mark\" (click)=\"deleteFile(file)\">\n <span class=\"close\"></span>\n </div>\n </div>\n </div>\n </div>\n ","styles":["\n .image-upload {\n --common-radius: 3px;\n --active-color: #33CC99;\n position: relative;\n border-radius: var(--common-radius);\n border: #d0d0d0 dashed 1px;\n font-family: sans-serif;\n }\n\n .file-is-over {\n border-color: var(--active-color);\n border-style: solid;\n }\n\n .hr-inline-group:after {\n display: table;\n clear: both;\n content: \"\";\n }\n\n .file-upload {\n padding: 16px;\n background-color: #f8f8f8;\n }\n\n .drag-box-message {\n float: left;\n display: inline-block;\n margin-left: 12px;\n padding-top: 14px;\n color: #9b9b9b;\n font-weight: 600;\n }\n\n label.button input[type=file] {\n display: none;\n position: fixed;\n top: -99999px;\n }\n\n .clear {\n background-color: #FF0000;\n }\n\n .button {\n cursor: pointer;\n padding: 10px;\n color: white;\n font-size: 1.25em;\n font-weight: 500;\n text-transform: uppercase;\n display: inline-block;\n float: left;\n -webkit-box-shadow: 2px 2px 4px 0px rgba(148, 148, 148, 0.6);\n -moz-box-shadow: 2px 2px 4px 0px rgba(148, 148, 148, 0.6);\n box-shadow: 2px 2px 4px 0px rgba(148, 148, 148, 0.6);\n }\n\n .button:active span {\n position: relative;\n display: block;\n top: 1px;\n }\n\n .upload {\n background-color: var(--active-color);\n }\n\n .image-container {\n background-color: #fdfdfd;\n padding: 0 10px 0 10px;\n }\n\n .image {\n float: left;\n display: inline-block;\n margin: 6px;\n width: 86px;\n height: 86px;\n background: center center no-repeat;\n background-size: contain;\n position: relative;\n }\n\n .x-mark {\n width: 20px;\n height: 20px;\n text-align: center;\n cursor: pointer;\n border-radius: 2px;\n float: right;\n background-color: black;\n opacity: .7;\n color: white;\n margin: 2px;\n }\n\n .close {\n width: 20px;\n height: 20px;\n opacity: .7;\n position: relative;\n padding-right: 3px;\n }\n\n .x-mark:hover .close {\n opacity: 1;\n }\n\n .close:before, .close:after {\n border-radius: 2px;\n position: absolute;\n content: '';\n height: 16px;\n width: 2px;\n top: 2px;\n background-color: #FFFFFF;\n }\n\n .close:before {\n transform: rotate(45deg);\n }\n\n .close:after {\n transform: rotate(-45deg);\n }\n\n .loading-overlay {\n position: absolute;\n top: 0;\n left: 0;\n bottom: 0;\n right: 0;\n background-color: black;\n opacity: .7;\n }\n\n .spinningCircle {\n height: 30px;\n width: 30px;\n margin: auto;\n position: absolute;\n top: 0;\n left: 0;\n bottom: 0;\n right: 0;\n border-radius: 50%;\n border: 3px solid rgba(255, 255, 255, 0);\n border-top: 3px solid white;\n border-right: 3px solid white;\n -webkit-animation: spinner 2s infinite cubic-bezier(0.085, 0.625, 0.855, 0.360);\n animation: spinner 2s infinite cubic-bezier(0.085, 0.625, 0.855, 0.360);\n }\n\n .file-too-large {\n color: red;\n padding: 0 15px;\n }\n\n @-webkit-keyframes spinner {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n }\n\n @keyframes spinner {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n\n }\n }\n "]}]}],"members":{"max":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"url":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"headers":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"preview":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"maxFileSize":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"withCredentials":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"partName":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"isPending":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"onFileUploadFinish":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"onRemove":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"buttonCaption":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"dropBoxMessage":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"fileTooLargeMessage":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"supportedExtensions":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"},"arguments":["extensions"]}]}],"inputElement":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild"},"arguments":["input"]}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"../image.service","name":"ImageService"}]}],"ngOnInit":[{"__symbolic":"method"}],"fileChange":[{"__symbolic":"method"}],"deleteFile":[{"__symbolic":"method"}],"deleteAll":[{"__symbolic":"method"}],"fileOver":[{"__symbolic":"method"}],"uploadFiles":[{"__symbolic":"method"}],"onResponse":[{"__symbolic":"method"}],"uploadSingleFile":[{"__symbolic":"method"}],"countRemainingSlots":[{"__symbolic":"method"}]}}}}] |
{ | ||
"name": "angular2-image-upload", | ||
"version": "0.6.3", | ||
"version": "0.6.4", | ||
"description": "An angular component that uploads images using native browser upload or drag-n-drop.", | ||
"main": "index.js", | ||
"scripts": { | ||
"build": "rm -rf lib codegen && ngc -p src", | ||
"build": "rm -rf lib codegen .tmp && gulp build && ngc -p src/tsconfig.json", | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
@@ -34,4 +34,4 @@ }, | ||
"peerDependencies": { | ||
"@angular/common": "^2.4.9 || ^4.0.0", | ||
"@angular/core": "^2.4.9 || ^4.0.0", | ||
"@angular/common": "^2.4.9 || ^4.0.0", | ||
"@angular/http": "^2.4.9 || ^4.0.0", | ||
@@ -41,9 +41,11 @@ "rxjs": "^5.0.0-rc.2" | ||
"devDependencies": { | ||
"@angular/core": "^4.0.0", | ||
"@angular/common": "^4.0.0", | ||
"@angular/compiler": "^4.0.0", | ||
"@angular/compiler-cli": "^4.0.0", | ||
"@angular/core": "^4.0.0", | ||
"@angular/http": "^4.0.0", | ||
"@angular/language-service": "^4.0.0", | ||
"@angular/http": "^4.0.0", | ||
"@types/core-js": "^0.9.34", | ||
"gulp": "^3.9.1", | ||
"gulp-inline-ng2-template": "^4.0.0", | ||
"rxjs": "^5.0.0-rc.2", | ||
@@ -50,0 +52,0 @@ "typescript": "2.1.5" |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is 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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
73454
27
779
11
1