Skip to content

Commit d630f49

Browse files
committed
Release 1.0.2
1 parent c56adb7 commit d630f49

File tree

4 files changed

+16
-11
lines changed

4 files changed

+16
-11
lines changed

README.md

+7-5
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ Style is based on [Bootstrap File Input](http://plugins.krajee.com/file-input/de
1212
![Input File screenshot](http://img4.hostingpics.net/pics/206713inputfile2.png)
1313

1414
## Key features
15-
- Preview of the file
16-
- Drag and drop zone
17-
- Responsive
18-
- [Bootstrap 4.0.0](https://getbootstrap.com/) required.
19-
- [Font Awesome](http://fontawesome.io/) support
15+
- Preview of the file
16+
- Drag and drop zone
17+
- Responsive
18+
- [Bootstrap 4](https://getbootstrap.com/) required.
19+
- [Font Awesome 5](http://fontawesome.com/) support
2020

2121
## Installation
2222
```bash
@@ -134,5 +134,7 @@ You're welcome, please fork this repository to a make pull request.
134134
Clone this repository and run `npm start`.
135135
136136
## Changelog
137+
### 1.0.2
138+
- Drop font awesome 4 support to font awesome 5
137139
### 1.0.1
138140
- Fix issue #3

package.json

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ngx-input-file",
3-
"version": "1.0.1",
3+
"version": "1.0.2",
44
"description": "Angular Input File Component",
55
"license": "MIT",
66
"repository": {
@@ -26,7 +26,9 @@
2626
"input",
2727
"file",
2828
"bootstrap",
29-
"upload"
29+
"upload",
30+
"font",
31+
"awesome"
3032
],
3133
"dependencies": {},
3234
"devDependencies": {

src/app/components/input-file.component.html

+4-4
Original file line numberDiff line numberDiff line change
@@ -29,25 +29,25 @@
2929
<div class="col-12 input-group file-caption-main" *ngIf="!isDragOver">
3030
<div class="form-control">
3131
<div class="file-caption-name">
32-
<i class="fa fa-file-o" aria-hidden="true" *ngIf="isNotNullOrEmpty()"></i>
32+
<i class="fas fa-file" aria-hidden="true" *ngIf="isNotNullOrEmpty()"></i>
3333
<span>{{ getInputText() }}</span>
3434
</div>
3535
</div>
3636
<div class="input-group-append">
3737
<button class="btn btn-secondary btn-action" type="button" title="Clear selected files" (click)="onRemove()" *ngIf="isNotNullOrEmpty()">
38-
<i class="fa fa-trash-o" aria-hidden="true"></i>
38+
<i class="fas fa-trash" aria-hidden="true"></i>
3939
<span class="d-none d-md-inline-flex">{{ textRemove }}</span>
4040
</button>
4141
</div>
4242
<div class="input-group-append" *ngIf="!disableUpload">
4343
<button class="btn btn-secondary btn-action" type="button" title="Upload selected files" (click)="onUpload()" *ngIf="isNotNullOrEmpty()">
44-
<i class="fa fa-cloud-upload" aria-hidden="true"></i>
44+
<i class="fas fa-cloud-upload-alt" aria-hidden="true"></i>
4545
<span class="d-none d-md-inline-flex">{{ textUpload }}</span>
4646
</button>
4747
</div>
4848
<div class="input-group-append">
4949
<div class="btn btn-primary btn-file" [ngClass]="{'disabled': dropZoneDisabled}">
50-
<i class="fa fa-folder-open-o" aria-hidden="true"></i>
50+
<i class="fas fa-folder-open" aria-hidden="true"></i>
5151
<span class="d-none d-md-inline-flex">{{ textBrowse }}</span>
5252
<input id="{{ inputId }}" class="file" name="input-file-name" type="file"
5353
accept="{{ inputAccept }}"

src/index.html

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
<meta name="viewport" content="width=device-width, initial-scale=1">
99
<link rel="icon" type="image/x-icon" href="favicon.ico">
10+
<script defer src="https://use.fontawesome.com/releases/v5.0.6/js/all.js"></script>
1011
</head>
1112
<body>
1213
<demo></demo>

0 commit comments

Comments
 (0)