Skip to content

Commit

Permalink
Set font awesome 6 icons (#84)
Browse files Browse the repository at this point in the history
* Set font awesome 6 icons
---------

Co-authored-by: Gregory COCHIN <[email protected]>
  • Loading branch information
greg7859 and Gregory COCHIN authored Aug 21, 2023
1 parent 77ecc9b commit 40c5386
Show file tree
Hide file tree
Showing 7 changed files with 16,831 additions and 36 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"description": "Icon picker widget for Angular (version 16 and newer)",
"bugs": "https://github.com/tech-advantage/ngx-icon-picker/issues",
"license": "MIT",
"version": "1.11.1",
"version": "1.11.2",
"scripts": {
"ng": "ng",
"lint": "ng lint",
Expand Down
4 changes: 2 additions & 2 deletions projects/app/src/app/app.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ <h2>Icons with default Icon Pack</h2>
</pre>
</div>
</div>
<h2>Font Awesome 6 icons and panel size defined to 500px</h2>
<h2>Font Awesome 6 icons and panel width defined to 500px</h2>
<div class="row">
<div class="col-lg-5">
<div [formGroup]="myFormGroup">
Expand All @@ -62,7 +62,7 @@ <h2>Font Awesome 6 icons and panel size defined to 500px</h2>
<div class="col-lg-7">
<p>Usage:</p>
<pre>
Example to integrate the Icon Picker with Font Awesome 5 only.
Example to integrate the Icon Picker with Font Awesome 6 only.
</pre>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion projects/lib/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ngx-icon-picker",
"version": "1.11.1",
"version": "1.11.2",
"dependencies": {
"tslib": "^2.0.0"
},
Expand Down
2 changes: 1 addition & 1 deletion projects/lib/src/lib/icon-picker.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ export class IconPickerComponent implements OnInit {
setInitialIcon(icon: string) {
this.initialIcon = icon;
this.selectedIcon = this.icons.find(el => el ?
`fa fa-${el.id}` === icon || `glyphicon glyphicon-${el.id}` === icon || `pi pi-${el.id}` === icon || `${el.id}` === icon :
`fa fa-${el.id}` === icon || `pi pi-${el.id}` === icon || `${el.id}` === icon :
false
);
if (this.ipKeepSearchFilter && this.selectedIcon && icon !== this.ipFallbackIcon) {
Expand Down
1 change: 1 addition & 0 deletions projects/lib/src/lib/icon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ export class Icon {
aliases?: string[];
type?: IconType;
iconName?: IconName;
prefix?:string;
}

export enum IconType {
Expand Down
Loading

0 comments on commit 40c5386

Please sign in to comment.