ng2-file-upload
Advanced tools
Comparing version 0.46.0 to 1.0.0-beta.0
@@ -1,2 +0,2 @@ | ||
import { ElementRef } from 'angular2/angular2'; | ||
import { ElementRef } from 'angular2/core'; | ||
import { FileUploader } from './file-uploader'; | ||
@@ -3,0 +3,0 @@ export declare class FileDrop { |
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { | ||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") return Reflect.decorate(decorators, target, key, desc); | ||
switch (arguments.length) { | ||
case 2: return decorators.reduceRight(function(o, d) { return (d && d(o)) || o; }, target); | ||
case 3: return decorators.reduceRight(function(o, d) { return (d && d(target, key)), void 0; }, void 0); | ||
case 4: return decorators.reduceRight(function(o, d) { return (d && d(target, key, o)) || o; }, desc); | ||
} | ||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; | ||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); | ||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; | ||
return c > 3 && r && Object.defineProperty(target, key, r), r; | ||
}; | ||
@@ -12,7 +10,7 @@ var __metadata = (this && this.__metadata) || function (k, v) { | ||
}; | ||
var angular2_1 = require('angular2/angular2'); | ||
var core_1 = require('angular2/core'); | ||
var FileDrop = (function () { | ||
function FileDrop(element) { | ||
this.element = element; | ||
this.fileOver = new angular2_1.EventEmitter(); | ||
this.fileOver = new core_1.EventEmitter(); | ||
} | ||
@@ -79,3 +77,3 @@ FileDrop.prototype.getOptions = function () { | ||
FileDrop = __decorate([ | ||
angular2_1.Directive({ | ||
core_1.Directive({ | ||
selector: '[ng2-file-drop]', | ||
@@ -90,3 +88,3 @@ properties: ['uploader'], | ||
}), | ||
__metadata('design:paramtypes', [angular2_1.ElementRef]) | ||
__metadata('design:paramtypes', [core_1.ElementRef]) | ||
], FileDrop); | ||
@@ -93,0 +91,0 @@ return FileDrop; |
@@ -1,8 +0,4 @@ | ||
import { | ||
Component, View, OnInit, OnDestroy, OnChanges, | ||
Directive, EventEmitter, ElementRef, Renderer, | ||
CORE_DIRECTIVES, FORM_DIRECTIVES, NgClass | ||
} from 'angular2/angular2'; | ||
import { Directive, EventEmitter, ElementRef } from 'angular2/core'; | ||
import {FileUploader} from './file-uploader'; | ||
import { FileUploader } from './file-uploader'; | ||
@@ -9,0 +5,0 @@ @Directive({ |
@@ -1,2 +0,2 @@ | ||
import { ElementRef } from 'angular2/angular2'; | ||
import { ElementRef } from 'angular2/core'; | ||
import { FileUploader } from './file-uploader'; | ||
@@ -3,0 +3,0 @@ export declare class FileSelect { |
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { | ||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") return Reflect.decorate(decorators, target, key, desc); | ||
switch (arguments.length) { | ||
case 2: return decorators.reduceRight(function(o, d) { return (d && d(o)) || o; }, target); | ||
case 3: return decorators.reduceRight(function(o, d) { return (d && d(target, key)), void 0; }, void 0); | ||
case 4: return decorators.reduceRight(function(o, d) { return (d && d(target, key, o)) || o; }, desc); | ||
} | ||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; | ||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); | ||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; | ||
return c > 3 && r && Object.defineProperty(target, key, r), r; | ||
}; | ||
@@ -12,3 +10,3 @@ var __metadata = (this && this.__metadata) || function (k, v) { | ||
}; | ||
var angular2_1 = require('angular2/angular2'); | ||
var core_1 = require('angular2/core'); | ||
var FileSelect = (function () { | ||
@@ -35,3 +33,3 @@ function FileSelect(element) { | ||
FileSelect = __decorate([ | ||
angular2_1.Directive({ | ||
core_1.Directive({ | ||
selector: '[ng2-file-select]', | ||
@@ -43,3 +41,3 @@ properties: ['uploader'], | ||
}), | ||
__metadata('design:paramtypes', [angular2_1.ElementRef]) | ||
__metadata('design:paramtypes', [core_1.ElementRef]) | ||
], FileSelect); | ||
@@ -46,0 +44,0 @@ return FileSelect; |
@@ -1,6 +0,2 @@ | ||
import { | ||
Component, View, OnInit, OnDestroy, OnChanges, | ||
Directive, EventEmitter, ElementRef, Renderer, | ||
CORE_DIRECTIVES, FORM_DIRECTIVES, NgClass | ||
} from 'angular2/angular2'; | ||
import { Directive, ElementRef } from 'angular2/core'; | ||
@@ -7,0 +3,0 @@ import {FileUploader} from './file-uploader'; |
@@ -1,5 +0,1 @@ | ||
import { | ||
EventEmitter, ElementRef, Renderer | ||
} from 'angular2/angular2'; | ||
import {FileLikeObject} from './file-like-object'; | ||
@@ -6,0 +2,0 @@ import {FileItem} from './file-item'; |
export * from './components/file-upload/file-select'; | ||
export * from './components/file-upload/file-drop'; | ||
export * from './components/file-upload/file-uploader'; | ||
export declare const FILE_UPLOAD_DIRECTIVES: [any]; |
@@ -7,2 +7,5 @@ function __export(m) { | ||
__export(require('./components/file-upload/file-uploader')); | ||
var file_select_2 = require('./components/file-upload/file-select'); | ||
var file_drop_2 = require('./components/file-upload/file-drop'); | ||
exports.FILE_UPLOAD_DIRECTIVES = [file_select_2.FileSelect, file_drop_2.FileDrop]; | ||
//# sourceMappingURL=ng2-file-upload.js.map |
@@ -5,1 +5,5 @@ export * from './components/file-upload/file-select'; | ||
import {FileSelect} from './components/file-upload/file-select'; | ||
import {FileDrop} from './components/file-upload/file-drop'; | ||
export const FILE_UPLOAD_DIRECTIVES:[any] = [FileSelect, FileDrop]; |
{ | ||
"name": "ng2-file-upload", | ||
"version": "0.46.0", | ||
"version": "1.0.0-beta.0", | ||
"description": "angular2 file upload directives", | ||
@@ -8,3 +8,2 @@ "scripts": { | ||
"prepublish": "gulp clean && tsc", | ||
"prestart": "npm install", | ||
"server": "webpack-dev-server --hot --inline --colors --display-error-details --display-cached", | ||
@@ -32,26 +31,26 @@ "start": "npm run server", | ||
"homepage": "https://github.com/valor-software/ng2-file-upload#readme", | ||
"dependencies": { | ||
"angular2": "2.0.0-alpha.46", | ||
"ng2-bootstrap": "0.46.0", | ||
"dependencies": {}, | ||
"devDependencies": { | ||
"angular2": "2.0.0-beta.0", | ||
"reflect-metadata": "0.1.2", | ||
"@reactivex/rxjs": "5.0.0-alpha.7", | ||
"zone.js": "0.5.8" | ||
}, | ||
"devDependencies": { | ||
"bootstrap": "3.3.5", | ||
"clean-webpack-plugin": "0.1.3", | ||
"rxjs": "5.0.0-beta.0", | ||
"zone.js": "0.5.10", | ||
"es6-shim": "0.33.13", | ||
"bootstrap": "3.3.6", | ||
"clean-webpack-plugin": "0.1.5", | ||
"compression-webpack-plugin": "0.2.0", | ||
"eslint": "1.7.2", | ||
"eslint": "1.10.3", | ||
"exports-loader": "0.6.2", | ||
"file-loader": "0.8.4", | ||
"file-loader": "0.8.5", | ||
"gulp": "3.9.0", | ||
"gulp-clean": "0.3.1", | ||
"gulp-eslint": "1.0.0", | ||
"gulp-eslint": "1.1.1", | ||
"gulp-size": "2.0.0", | ||
"gulp-tsc": "1.1.1", | ||
"gulp-tslint": "3.3.1", | ||
"html-loader": "0.3.0", | ||
"gulp-tsc": "1.1.4", | ||
"gulp-tslint": "4.2.2", | ||
"html-loader": "0.4.0", | ||
"markdown-loader": "0.1.7", | ||
"marked": "0.3.5", | ||
"moment": "2.10.6", | ||
"moment": "2.11.0", | ||
"ng2-bootstrap": "1.0.0-beta.2", | ||
"pre-commit": "1.1.2", | ||
@@ -62,6 +61,7 @@ "prismjs": "valorkin/prism", | ||
"require-dir": "0.3.0", | ||
"typescript": "1.6.2", | ||
"ts-loader": "0.5.6", | ||
"webpack": "1.12.2", | ||
"webpack-dev-server": "1.12.1" | ||
"ts-loader": "0.7.2", | ||
"tslint": "3.2.1", | ||
"typescript": "1.7.5", | ||
"webpack": "1.12.10", | ||
"webpack-dev-server": "1.14.0" | ||
}, | ||
@@ -68,0 +68,0 @@ "contributors": [ |
# ng2-file-upload | ||
Easy to use Angular2 directives for files upload ([demo](http://valor-software.github.io/ng2-file-upload/)) | ||
Follow to be notified about new releases: [twitter](https://twitter.com/valorkin) | ||
## Quick start | ||
@@ -5,0 +7,0 @@ |
{ | ||
"version": "1.6.2", | ||
"version": "1.7.5", | ||
"compilerOptions": { | ||
@@ -4,0 +4,0 @@ "target": "es5", |
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
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
88737
0
55
32
1430
- Removed@reactivex/rxjs@5.0.0-alpha.7
- Removedangular2@2.0.0-alpha.46
- Removedng2-bootstrap@0.46.0
- Removedreflect-metadata@0.1.2
- Removedzone.js@0.5.8
- Removed@reactivex/rxjs@5.0.0-alpha.7(transitive)
- Removedangular2@2.0.0-alpha.46(transitive)
- Removedes6-promise@3.3.1(transitive)
- Removedng2-bootstrap@0.46.0(transitive)
- Removedreflect-metadata@0.1.2(transitive)
- Removedzone.js@0.5.8(transitive)