Skip to content

Commit

Permalink
v. 1.4.1
Browse files Browse the repository at this point in the history
- bootstrap icons - Update mic and record icons to prevent fill rule issues (#815)
- bootstrap icons - Update mic icons to prevent fill rule issues
- Fixes #673: Fix fill-rule on record icon
- lib peerd ependencies changed to lodash instead camelcase
  • Loading branch information
avmaisak committed Mar 24, 2021
1 parent 1f1d41a commit 7430061
Show file tree
Hide file tree
Showing 10 changed files with 63 additions and 49 deletions.
7 changes: 7 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,3 +86,10 @@
## v.1.4.0 (01.03.2021)

* Sync version with bootstrap-icons

## v.1.4.1 (24.03.2021)

* bootstrap icons - Update mic and record icons to prevent fill rule issues (#815)
* bootstrap icons - Update mic icons to prevent fill rule issues
* Fixes #673: Fix fill-rule on record icon
* lib peerd ependencies changed to lodash instead camelcase
76 changes: 41 additions & 35 deletions package-lock.json

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

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ngx-bootstrap-icons-demo",
"version": "1.4.0",
"version": "1.4.1",
"homepage": "https://avmaisak.github.io/ngx-bootstrap-icons/",
"scripts": {
"ng": "./node_modules/@angular/cli/bin/ng",
Expand Down Expand Up @@ -50,11 +50,11 @@
"@angular/language-service": "11.2.6",
"@types/jasmine": "3.6.7",
"@types/jasminewd2": "2.0.8",
"@types/lodash": "^4.14.168",
"@types/node": "14.14.35",
"@typescript-eslint/eslint-plugin": "4.18.0",
"@typescript-eslint/eslint-plugin": "4.19.0",
"@typescript-eslint/parser": "4.19.0",
"bootstrap-icons": "1.4.0",
"camelcase": "6.2.0",
"cli-color": "2.0.0",
"codelyzer": "6.0.1",
"eslint": "7.22.0",
Expand Down
6 changes: 3 additions & 3 deletions projects/ngx-bootstrap-icons-lib/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ngx-bootstrap-icons",
"version": "1.4.0",
"version": "1.4.1",
"description": "Bootstrap Icons components library for your Angular Applications",
"homepage": "https://avmaisak.github.io/ngx-bootstrap-icons/",
"repository": {
Expand Down Expand Up @@ -28,11 +28,11 @@
"license": "MIT",
"engines": {
"node": ">= 12.19.0",
"npm": ">= 6.14.8"
"npm": ">= 6.14.10"
},
"peerDependencies": {
"@angular/common": ">= 10.1.0",
"@angular/core": ">= 10.1.0",
"camelcase": ">=6.2.0"
"lodash": ">=4.17.21"
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import {
ChangeDetectorRef, Component, ElementRef, Inject, Input, OnChanges, SimpleChanges,
} from '@angular/core';
import { camelCase } from 'lodash';

import { IModuleConfigOptions, MODULE_CONFIG_TOKEN } from '../../config/module.config';
import { IconNamesEnum } from '../../enums/icon-names.enum';
Expand Down Expand Up @@ -40,8 +41,6 @@ export class NgxBootstrapIconsLibComponent implements OnChanges {
* @param changes SimpleChanges
*/
public ngOnChanges(changes: SimpleChanges): void {
// eslint-disable-next-line global-require
const camelCase = require('camelcase');
// icons are provided as an array of objects because of "multi: true"
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const icons = Object.assign({}, ...(this._icons as any as object[]));
Expand Down
2 changes: 1 addition & 1 deletion projects/ngx-bootstrap-icons-lib/src/lib/icons/mic-fill.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@
*/
export const micFill = `<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-mic-fill" viewBox="0 0 16 16">
<path d="M5 3a3 3 0 0 1 6 0v5a3 3 0 0 1-6 0V3z"/>
<path fill-rule="evenodd" d="M3.5 6.5A.5.5 0 0 1 4 7v1a4 4 0 0 0 8 0V7a.5.5 0 0 1 1 0v1a5 5 0 0 1-4.5 4.975V15h3a.5.5 0 0 1 0 1h-7a.5.5 0 0 1 0-1h3v-2.025A5 5 0 0 1 3 8V7a.5.5 0 0 1 .5-.5z"/>
<path d="M3.5 6.5A.5.5 0 0 1 4 7v1a4 4 0 0 0 8 0V7a.5.5 0 0 1 1 0v1a5 5 0 0 1-4.5 4.975V15h3a.5.5 0 0 1 0 1h-7a.5.5 0 0 1 0-1h3v-2.025A5 5 0 0 1 3 8V7a.5.5 0 0 1 .5-.5z"/>
</svg>`;
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@
* {@link https://icons.getbootstrap.com/icons/mic-mute-fill/}.
*/
export const micMuteFill = `<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-mic-mute-fill" viewBox="0 0 16 16">
<path fill-rule="evenodd" d="M12.734 9.613A4.995 4.995 0 0 0 13 8V7a.5.5 0 0 0-1 0v1c0 .274-.027.54-.08.799l.814.814zm-2.522 1.72A4 4 0 0 1 4 8V7a.5.5 0 0 0-1 0v1a5 5 0 0 0 4.5 4.975V15h-3a.5.5 0 0 0 0 1h7a.5.5 0 0 0 0-1h-3v-2.025a4.973 4.973 0 0 0 2.43-.923l-.718-.719zM11 7.88V3a3 3 0 0 0-5.842-.963L11 7.879zM5 6.12l4.486 4.486A3 3 0 0 1 5 8V6.121zm8.646 7.234l-12-12 .708-.708 12 12-.708.707z"/>
<path d="M13 8c0 .564-.094 1.107-.266 1.613l-.814-.814A4.02 4.02 0 0 0 12 8V7a.5.5 0 0 1 1 0v1zm-5 4c.818 0 1.578-.245 2.212-.667l.718.719a4.973 4.973 0 0 1-2.43.923V15h3a.5.5 0 0 1 0 1h-7a.5.5 0 0 1 0-1h3v-2.025A5 5 0 0 1 3 8V7a.5.5 0 0 1 1 0v1a4 4 0 0 0 4 4zm3-9v4.879L5.158 2.037A3.001 3.001 0 0 1 11 3z"/>
<path d="M9.486 10.607L5 6.12V8a3 3 0 0 0 4.486 2.607zm-7.84-9.253l12 12 .708-.708-12-12-.708.708z"/>
</svg>`;
3 changes: 2 additions & 1 deletion projects/ngx-bootstrap-icons-lib/src/lib/icons/mic-mute.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@
* {@link https://icons.getbootstrap.com/icons/mic-mute/}.
*/
export const micMute = `<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-mic-mute" viewBox="0 0 16 16">
<path fill-rule="evenodd" d="M12.734 9.613A4.995 4.995 0 0 0 13 8V7a.5.5 0 0 0-1 0v1c0 .274-.027.54-.08.799l.814.814zm-2.522 1.72A4 4 0 0 1 4 8V7a.5.5 0 0 0-1 0v1a5 5 0 0 0 4.5 4.975V15h-3a.5.5 0 0 0 0 1h7a.5.5 0 0 0 0-1h-3v-2.025a4.973 4.973 0 0 0 2.43-.923l-.718-.719zM11 7.88V3a3 3 0 0 0-5.842-.963l.845.845A2 2 0 0 1 10 3v3.879l1 1zM8.738 9.86l.748.748A3 3 0 0 1 5 8V6.121l1 1V8a2 2 0 0 0 2.738 1.86zm4.908 3.494l-12-12 .708-.708 12 12-.708.707z"/>
<path d="M13 8c0 .564-.094 1.107-.266 1.613l-.814-.814A4.02 4.02 0 0 0 12 8V7a.5.5 0 0 1 1 0v1zm-5 4c.818 0 1.578-.245 2.212-.667l.718.719a4.973 4.973 0 0 1-2.43.923V15h3a.5.5 0 0 1 0 1h-7a.5.5 0 0 1 0-1h3v-2.025A5 5 0 0 1 3 8V7a.5.5 0 0 1 1 0v1a4 4 0 0 0 4 4zm3-9v4.879l-1-1V3a2 2 0 0 0-3.997-.118l-.845-.845A3.001 3.001 0 0 1 11 3z"/>
<path d="M9.486 10.607l-.748-.748A2 2 0 0 1 6 8v-.878l-1-1V8a3 3 0 0 0 4.486 2.607zm-7.84-9.253l12 12 .708-.708-12-12-.708.708z"/>
</svg>`;
4 changes: 2 additions & 2 deletions projects/ngx-bootstrap-icons-lib/src/lib/icons/mic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
* {@link https://icons.getbootstrap.com/icons/mic/}.
*/
export const mic = `<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-mic" viewBox="0 0 16 16">
<path fill-rule="evenodd" d="M3.5 6.5A.5.5 0 0 1 4 7v1a4 4 0 0 0 8 0V7a.5.5 0 0 1 1 0v1a5 5 0 0 1-4.5 4.975V15h3a.5.5 0 0 1 0 1h-7a.5.5 0 0 1 0-1h3v-2.025A5 5 0 0 1 3 8V7a.5.5 0 0 1 .5-.5z"/>
<path fill-rule="evenodd" d="M10 8V3a2 2 0 1 0-4 0v5a2 2 0 1 0 4 0zM8 0a3 3 0 0 0-3 3v5a3 3 0 0 0 6 0V3a3 3 0 0 0-3-3z"/>
<path d="M3.5 6.5A.5.5 0 0 1 4 7v1a4 4 0 0 0 8 0V7a.5.5 0 0 1 1 0v1a5 5 0 0 1-4.5 4.975V15h3a.5.5 0 0 1 0 1h-7a.5.5 0 0 1 0-1h3v-2.025A5 5 0 0 1 3 8V7a.5.5 0 0 1 .5-.5z"/>
<path d="M10 8a2 2 0 1 1-4 0V3a2 2 0 1 1 4 0v5zM8 0a3 3 0 0 0-3 3v5a3 3 0 0 0 6 0V3a3 3 0 0 0-3-3z"/>
</svg>`;
2 changes: 1 addition & 1 deletion projects/ngx-bootstrap-icons-lib/src/lib/icons/record.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@
* {@link https://icons.getbootstrap.com/icons/record/}.
*/
export const record = `<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-record" viewBox="0 0 16 16">
<path fill-rule="evenodd" d="M8 12a4 4 0 1 0 0-8 4 4 0 0 0 0 8zm0 1A5 5 0 1 0 8 3a5 5 0 0 0 0 10z"/>
<path d="M8 12a4 4 0 1 1 0-8 4 4 0 0 1 0 8zm0 1A5 5 0 1 0 8 3a5 5 0 0 0 0 10z"/>
</svg>`;

0 comments on commit 7430061

Please sign in to comment.