From 7f20cb104424dfd07a3348396b0720bda8053343 Mon Sep 17 00:00:00 2001 From: "k.triantafyllou" Date: Mon, 19 Oct 2020 15:05:16 +0000 Subject: [PATCH] [Library | Trunk]: Add new icons. Add outlined buttons on theme page git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@59623 d315682c-612b-4755-9ff5-7f18f6832af3 --- .../sharedComponents/input/input.component.ts | 11 ++++++----- utils/icons/icons.component.ts | 2 +- utils/icons/icons.ts | 16 ++++++++++++++++ utils/theme/theme.component.html | 13 ++++++++++--- 4 files changed, 33 insertions(+), 9 deletions(-) diff --git a/dashboard/sharedComponents/input/input.component.ts b/dashboard/sharedComponents/input/input.component.ts index 5e6c54b2..603e46ea 100644 --- a/dashboard/sharedComponents/input/input.component.ts +++ b/dashboard/sharedComponents/input/input.component.ts @@ -18,17 +18,17 @@ export interface Option {
{{label + (required ? ' *' : '')}}
{{hint}}
-
+
-
+
- +
@@ -58,6 +58,7 @@ export class InputComponent implements OnInit, OnDestroy, OnChanges { @Input('placeholder') placeholder = ''; @ViewChild('select') select: MatSelect; @Input() extraLeft: boolean = true; + @Input() hideControl: boolean = false; public required: boolean = false; private initValue: any; private subscriptions: any[] = []; diff --git a/utils/icons/icons.component.ts b/utils/icons/icons.component.ts index e09e588b..0a7994a7 100644 --- a/utils/icons/icons.component.ts +++ b/utils/icons/icons.component.ts @@ -14,7 +14,7 @@ import {IconsService} from "./icons.service"; @Component({ selector: 'icon', template: ` - + ` }) export class IconsComponent implements OnInit{ diff --git a/utils/icons/icons.ts b/utils/icons/icons.ts index be5ac0fc..75f9a55f 100644 --- a/utils/icons/icons.ts +++ b/utils/icons/icons.ts @@ -3,6 +3,11 @@ export interface Icon { data: string } +export const arrow_left: Icon = { + name: 'arrow_left', + data: '' +} + export const arrow_right: Icon = { name: 'arrow_right', data: '' @@ -37,3 +42,14 @@ export const earth: Icon = { name: 'earth', data: '' } + +export const edit: Icon = { + name: 'edit', + data: '' +} + +export const remove: Icon = { + name: 'remove', + data: '' +} + diff --git a/utils/theme/theme.component.html b/utils/theme/theme.component.html index 9ded1579..9ac632f0 100644 --- a/utils/theme/theme.component.html +++ b/utils/theme/theme.component.html @@ -104,7 +104,14 @@
- +
+
+ +
+
+ +
+

@@ -148,8 +155,8 @@
  • Danger
  • 1
  • - - + +