From e2cac04ec0671a55462cc81d39abdc95f5c796f4 Mon Sep 17 00:00:00 2001 From: "konstantina.galouni" Date: Wed, 22 Mar 2017 10:26:25 +0000 Subject: [PATCH] tab result component and its module were missing from previous commit git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-portal/trunk@46414 d315682c-612b-4755-9ff5-7f18f6832af3 --- .../searchUtils/tabResult.component.ts | 164 ++++++++++++++++++ .../searchUtils/tabResult.module.ts | 27 +++ 2 files changed, 191 insertions(+) create mode 100644 portal-2/src/app/searchPages/searchUtils/tabResult.component.ts create mode 100644 portal-2/src/app/searchPages/searchUtils/tabResult.module.ts diff --git a/portal-2/src/app/searchPages/searchUtils/tabResult.component.ts b/portal-2/src/app/searchPages/searchUtils/tabResult.component.ts new file mode 100644 index 00000000..1b82892a --- /dev/null +++ b/portal-2/src/app/searchPages/searchUtils/tabResult.component.ts @@ -0,0 +1,164 @@ +import {Component, Input} from '@angular/core'; +import {SearchResult} from '../../utils/entities/searchResult'; +import {ErrorCodes} from '../../utils/properties/openaireProperties'; +import {RouterHelper} from '../../utils/routerHelper.class'; + +@Component({ + selector: 'tab-result', + template: ` + + ` +}) + +export class TabResultComponent { + @Input() results: SearchResult[]; + @Input() status: number; + @Input() type: string; + @Input() urlParam: string; + @Input() showLoading: boolean = false; + @Input() lazy: string = "true"; + @Input() from: string = ""; + + public errorCodes:ErrorCodes = new ErrorCodes(); + public routerHelper:RouterHelper = new RouterHelper(); + public errorMessage: string = "No results found"; + + constructor () { + + } + + ngOnInit() {} +} diff --git a/portal-2/src/app/searchPages/searchUtils/tabResult.module.ts b/portal-2/src/app/searchPages/searchUtils/tabResult.module.ts new file mode 100644 index 00000000..3309a158 --- /dev/null +++ b/portal-2/src/app/searchPages/searchUtils/tabResult.module.ts @@ -0,0 +1,27 @@ +import { NgModule} from '@angular/core'; +import { CommonModule } from '@angular/common'; +import { FormsModule } from '@angular/forms'; + +import {SearchResult} from '../../utils/entities/searchResult'; +import {TabResultComponent} from './tabResult.component'; +import {RouterModule} from '@angular/router'; + +@NgModule({ + imports: [ + CommonModule, FormsModule, + RouterModule + ], + declarations: [ + TabResultComponent, + +], + + providers:[ + ], + exports: [ + + TabResultComponent + + ] +}) +export class TabResultModule { }