From 9df9df4b9442247977452bac527fd7c124c48e3e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adina=20=C8=9Aeudan?= Date: Sat, 2 Oct 2021 23:49:29 +0300 Subject: [PATCH] Icons --- src/assets/icons/arrow-right.svg | 9 +++++++++ src/assets/icons/plus.svg | 8 ++++++++ src/assets/icons/radio-indeterminate.svg | 15 +++++++++++++++ src/assets/icons/radio-selected.svg | 17 +++++++++++++++++ .../empty-state/empty-state.component.ts | 2 +- .../popup-filter/popup-filter.component.html | 8 ++++---- src/lib/icons/icons.module.ts | 14 +++++++------- .../round-checkbox.component.html | 4 ++-- 8 files changed, 63 insertions(+), 14 deletions(-) create mode 100644 src/assets/icons/arrow-right.svg create mode 100644 src/assets/icons/plus.svg create mode 100644 src/assets/icons/radio-indeterminate.svg create mode 100644 src/assets/icons/radio-selected.svg diff --git a/src/assets/icons/arrow-right.svg b/src/assets/icons/arrow-right.svg new file mode 100644 index 0000000..a413e58 --- /dev/null +++ b/src/assets/icons/arrow-right.svg @@ -0,0 +1,9 @@ + + + + + + diff --git a/src/assets/icons/plus.svg b/src/assets/icons/plus.svg new file mode 100644 index 0000000..ec0b73a --- /dev/null +++ b/src/assets/icons/plus.svg @@ -0,0 +1,8 @@ + + + + + + diff --git a/src/assets/icons/radio-indeterminate.svg b/src/assets/icons/radio-indeterminate.svg new file mode 100644 index 0000000..35c8b82 --- /dev/null +++ b/src/assets/icons/radio-indeterminate.svg @@ -0,0 +1,15 @@ + + + + + + + + + + + + diff --git a/src/assets/icons/radio-selected.svg b/src/assets/icons/radio-selected.svg new file mode 100644 index 0000000..cfef08c --- /dev/null +++ b/src/assets/icons/radio-selected.svg @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + diff --git a/src/lib/empty-states/empty-state/empty-state.component.ts b/src/lib/empty-states/empty-state/empty-state.component.ts index 56a99e1..4f2c9cc 100644 --- a/src/lib/empty-states/empty-state/empty-state.component.ts +++ b/src/lib/empty-states/empty-state/empty-state.component.ts @@ -14,7 +14,7 @@ export class EmptyStateComponent implements OnInit { @Input() @Required() text!: string; @Input() icon?: string; @Input() showButton = true; - @Input() buttonIcon = 'red:plus'; + @Input() buttonIcon = 'iqser:plus'; @Input() buttonLabel?: string; @Input() horizontalPadding = 100; @Input() verticalPadding = 120; diff --git a/src/lib/filtering/popup-filter/popup-filter.component.html b/src/lib/filtering/popup-filter/popup-filter.component.html index 3dc2550..614d8e6 100644 --- a/src/lib/filtering/popup-filter/popup-filter.component.html +++ b/src/lib/filtering/popup-filter/popup-filter.component.html @@ -1,19 +1,19 @@ @@ -95,7 +95,7 @@
- +
 
diff --git a/src/lib/icons/icons.module.ts b/src/lib/icons/icons.module.ts index 58f472a..73adf14 100644 --- a/src/lib/icons/icons.module.ts +++ b/src/lib/icons/icons.module.ts @@ -6,13 +6,14 @@ import { DomSanitizer } from '@angular/platform-browser'; @NgModule({ imports: [CommonModule, MatIconModule], declarations: [], - exports: [MatIconModule], + exports: [MatIconModule] }) export class IqserIconsModule { constructor(private readonly _iconRegistry: MatIconRegistry, private readonly _sanitizer: DomSanitizer) { const icons: Set = new Set([ 'arrow-down', 'arrow-down-o', + 'arrow-right', 'check', 'close', 'edit', @@ -23,17 +24,16 @@ export class IqserIconsModule { 'logout', 'menu', 'offline', + 'plus', + 'radio-indeterminate', + 'radio-selected', 'refresh', 'search', 'sort-asc', - 'sort-desc', + 'sort-desc' ]); icons.forEach(icon => { - _iconRegistry.addSvgIconInNamespace( - 'iqser', - icon, - _sanitizer.bypassSecurityTrustResourceUrl(`/assets/icons/${icon}.svg`), - ); + _iconRegistry.addSvgIconInNamespace('iqser', icon, _sanitizer.bypassSecurityTrustResourceUrl(`/assets/icons/${icon}.svg`)); }); } } diff --git a/src/lib/inputs/round-checkbox/round-checkbox.component.html b/src/lib/inputs/round-checkbox/round-checkbox.component.html index 6599e3c..39efd44 100644 --- a/src/lib/inputs/round-checkbox/round-checkbox.component.html +++ b/src/lib/inputs/round-checkbox/round-checkbox.component.html @@ -6,6 +6,6 @@ [class.with-bg]="type === 'with-bg'" class="wrapper" > - - + +