File tree 5 files changed +4
-22
lines changed
5 files changed +4
-22
lines changed Original file line number Diff line number Diff line change 1
1
## Change Log
2
+ ### [ 8.0.6] ( https://github.com/georgipeltekov/ngx-file-drop/compare/v8.0.6...v8.0.7 ) (2019-08-08)
3
+ * Revert previous version due to regression
4
+
2
5
### [ 8.0.6] ( https://github.com/georgipeltekov/ngx-file-drop/compare/v8.0.5...v8.0.6 ) (2019-08-06)
3
6
* Add readme to the npm package
4
7
Original file line number Diff line number Diff line change @@ -147,7 +147,6 @@ Name | Description | Example |
147
147
(onFileOver) | On drop over function| (onFileOver)="fileOver($event)"
148
148
(onFileLeave) | On drop leave function| (onFileLeave)="fileLeave($event)"
149
149
accept | String of accepted formats | accept="png"
150
- directory | Whether directories are accepted | directory="true"
151
150
dropZoneLabel | Text to be displayed inside the drop box | dropZoneLabel="Drop files here"
152
151
dropZoneClassName | Custom style class name(s) to be used on the "drop-zone" area | dropZoneClassName="my-style"
153
152
contentClassName | Custom style class name(s) to be used for the content area | contentClassName="my-style"
Original file line number Diff line number Diff line change 4
4
(dragover) ="onDragOver($event) "
5
5
(dragleave) ="onDragLeave($event) ">
6
6
< div [className] ="contentClassName ">
7
- < span *ngIf ="directory ">
8
7
< input
9
8
type ="file "
10
9
#fileSelector
11
10
[accept] ="accept "
12
- directory
13
- webkitdirectory
14
- mozdirectory
15
- msdirectory
16
- odirectory
17
11
[multiple] ="multiple "
18
12
(change) ="uploadFiles($event) "
19
13
class ="ngx-file-drop__file-input "
20
14
/>
21
- </ span >
22
- < span *ngIf ="!directory ">
23
- < input
24
- type ="file "
25
- #fileSelector
26
- [accept] ="accept "
27
- [multiple] ="multiple "
28
- (change) ="uploadFiles($event) "
29
- class ="ngx-file-drop__file-input "
30
- />
31
- </ span >
32
15
33
16
< ng-template #defaultContentTemplate >
34
17
< div *ngIf ="dropZoneLabel " class ="ngx-file-drop__drop-zone-label "> {{dropZoneLabel}}</ div >
Original file line number Diff line number Diff line change @@ -27,9 +27,6 @@ export class NgxFileDropComponent implements OnDestroy {
27
27
@Input ( )
28
28
public accept : string = '*' ;
29
29
30
- @Input ( )
31
- public directory : boolean = false ;
32
-
33
30
@Input ( )
34
31
public multiple : boolean = true ;
35
32
Original file line number Diff line number Diff line change 1
1
{
2
2
"$schema" : " ../node_modules/ng-packagr/package.schema.json" ,
3
3
"name" : " ngx-file-drop" ,
4
- "version" : " 8.0.6 " ,
4
+ "version" : " 8.0.7 " ,
5
5
"description" : " Angular ngx-file-drop - Simple desktop file and folder drag and drop" ,
6
6
"author" : " Georgi Peltekov" ,
7
7
"license" : " MIT" ,
You can’t perform that action at this time.
0 commit comments