-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
61 changed files
with
4,335 additions
and
1,275 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
{ | ||
"compilerOptions": { | ||
"experimentalDecorators": true, | ||
"target": "es5" | ||
"target": "es5", | ||
|
||
"resolveJsonModule": true | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
cloudapp/src/app/catalog/full-view-display/full-view-display.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<div class="full-view-record"> | ||
<div *ngFor="let line of resultFullDisplay;index as i" class="full-view-line {{isEvenRow(i)}}"> | ||
<div class="full-view-line-header"> | ||
{{line.getHeaderLabel()}} | ||
</div> | ||
<div class="full-view-line-content"> | ||
<div class="full-view-line-field" *ngFor="let field of line.getContent()"> | ||
<div class="full-view-line-field-label" *ngIf="field.hasLabel()"> | ||
{{field.getLabel()}} | ||
</div> | ||
<a *ngIf="field.isLinkable() else noLink" (click)="onFullViewLink(field.getLink(), field.getContent())"> | ||
{{field.getContent()}} | ||
</a> | ||
<ng-template #noLink> | ||
{{field.getContent()}} | ||
</ng-template> | ||
</div> | ||
</div> | ||
</div> | ||
</div> |
39 changes: 39 additions & 0 deletions
39
cloudapp/src/app/catalog/full-view-display/full-view-display.component.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
.full-view-line { | ||
display: grid; | ||
grid-template-columns: 100px auto; | ||
padding-top: 0.5em; | ||
padding-bottom: 0.5em; | ||
&:first-child { | ||
padding-right: 12px; | ||
} | ||
} | ||
|
||
.even { | ||
background-color: whitesmoke; | ||
} | ||
|
||
.full-view-line-header { | ||
font-weight: bold; | ||
padding-right: 15px; | ||
padding-left: 5px; | ||
} | ||
|
||
.full-view-line-content { | ||
display: flex; | ||
flex-wrap: wrap; | ||
} | ||
|
||
.full-view-line-field { | ||
display: flex; | ||
padding-right: 10px; | ||
} | ||
|
||
.full-view-line-field-label { | ||
font-weight: bold; | ||
padding-right: 5px; | ||
} | ||
|
||
a, | ||
a label { | ||
cursor: pointer; | ||
} |
37 changes: 37 additions & 0 deletions
37
cloudapp/src/app/catalog/full-view-display/full-view-display.component.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
import { Component, Input, Output, EventEmitter } from '@angular/core'; | ||
import { SearchType } from '../../user-controls/search-form/search-form-utils'; | ||
|
||
|
||
@Component({ | ||
selector: 'full-view-display', | ||
templateUrl: './full-view-display.component.html', | ||
styleUrls: ['./full-view-display.component.scss'] | ||
}) | ||
|
||
export class FullviewDisplayComponent { | ||
|
||
@Input() resultFullDisplay; | ||
@Output() onFullViewLinkSelected = new EventEmitter<FullViewLink>(); | ||
|
||
|
||
constructor() { } | ||
|
||
onFullViewLink(searchType: SearchType, linkID: string) { | ||
this.onFullViewLinkSelected.emit(new FullViewLink(searchType, linkID)); | ||
} | ||
|
||
isEvenRow(i: number) { | ||
if (i % 2 == 0) { | ||
return "even"; | ||
} | ||
} | ||
|
||
} | ||
|
||
|
||
export class FullViewLink { | ||
constructor ( | ||
public searchType: SearchType, | ||
public linkID: string | ||
) { } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,91 @@ | ||
<div class="align-space-between" fxLayout="row"> | ||
<button mat-flat-button color="secondary" [routerLink]="['']"> | ||
<mat-icon>arrow_back_ios</mat-icon> | ||
{{ 'General.BackToMenu' | translate }} | ||
</button> | ||
<div class="align-to-right" fxLayout="row"> | ||
<button style="margin-right: 15px" mat-flat-button color="secondary" (click)="clear()"> | ||
{{ 'General.Clear' | translate }} | ||
</button> | ||
<button mat-flat-button color="primary" type="submit" (click)="search()"> | ||
{{ 'General.Search' | translate }} | ||
</button> | ||
</div> | ||
</div> | ||
<br> | ||
|
||
<p> {{'Catalog.Form.MainTitle' | translate}} </p> | ||
|
||
<mat-tab-group (selectedTabChange)="onTabChange($event)"> | ||
<mat-tab *ngFor="let searchType of getSearchTypesLabels()" label="{{ searchType | translate }}"> | ||
<mat-accordion> | ||
<mat-expansion-panel (opened)="panelOpenState()" (closed)="panelCloseState()" [expanded]="panelState"> | ||
<mat-expansion-panel-header> | ||
<mat-panel-title *ngIf="!panelState">{{ 'Catalog.Form.RefineSearch' | translate }}</mat-panel-title> | ||
</mat-expansion-panel-header> | ||
<search-form [databasesList]="getCurrentDatabases()" [fieldsList]="getSearchFields()" | ||
(selectedDatabase)="setCurrentDatabase($event)"> | ||
</search-form> | ||
<br> | ||
</mat-expansion-panel> | ||
</mat-accordion> | ||
</mat-tab> | ||
</mat-tab-group> | ||
<br><br> | ||
|
||
<ng-container *ngTemplateOutlet="currentResulsTmpl"></ng-container> | ||
|
||
<div class="loading-shade" *ngIf="loading"> | ||
<mat-progress-spinner mode="indeterminate" diameter="50"> | ||
</mat-progress-spinner> | ||
</div> | ||
|
||
<br><br><br> | ||
|
||
|
||
<ng-template #searchResults> | ||
<results-list [numOfResults]="numOfResults" [pageIndex]="pageIndex" [pageSize]="pageSize" | ||
[resultsSummaryDisplay]="resultsSummaryDisplay" [resultActionList]="getActionMenu()" | ||
(onActionSelected)="onActionsClick($event)" (onTitleSelected)="onTitleClick($event)" | ||
(onPageSelected)="onPageAction($event)"> | ||
</results-list> | ||
</ng-template> | ||
|
||
|
||
<ng-template #noResults> | ||
<div class="noResults"> | ||
<span class="uxf-icon uxf-list" style="font-size: 3em;"></span> | ||
<h2>{{'Catalog.Results.NoRecordsExist' | translate}}</h2> | ||
</div> | ||
<br><br><br> | ||
</ng-template> | ||
|
||
|
||
<ng-template #notSearched> | ||
<div class="notSearched"></div> | ||
</ng-template> | ||
|
||
|
||
<ng-template #fullRecord> | ||
<button mat-flat-button color="secondary" (click)="onBackFromFullView()"> | ||
<mat-icon>arrow_back_ios</mat-icon> | ||
{{'General.Back' | translate}} | ||
</button> | ||
<br><br><br> | ||
<div class="full-view"> | ||
<div class="full-view-left-table" *ngIf="!(isColapsedMode && isRightTableOpen)"> | ||
<full-view-display [resultFullDisplay]="resultFullDisplay" (onFullViewLinkSelected)="onFullViewLink($event)"> | ||
</full-view-display> | ||
</div> | ||
<div class="full-view-right-table" (window:resize)="onResize($event)" *ngIf="isRightTableOpen"> | ||
<button class="close-button" (click)="onFullViewLinkClose()"> | ||
<i class="uxf-icon uxf-close eca-button" aria-label="Delete" (click)="delete(i)"></i> | ||
</button> | ||
<div *ngIf="resultFullLinkDisplay != null else noResults"> | ||
<full-view-display [resultFullDisplay]="resultFullLinkDisplay"> | ||
</full-view-display> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
</ng-template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
p { | ||
margin-bottom: 0px; | ||
} | ||
|
||
.align-to-left { | ||
justify-content: flex-start; | ||
margin-bottom: 15px; | ||
} | ||
|
||
.align-to-right { | ||
justify-content: flex-end; | ||
} | ||
|
||
.align-space-between { | ||
justify-content: space-between; | ||
margin-bottom: 20px; | ||
} | ||
|
||
.noResults{ | ||
text-align: center; | ||
height: fit-content; | ||
margin-top: 40px; | ||
} | ||
|
||
|
||
.full-view { | ||
display: flex; | ||
flex-direction: row; | ||
|
||
} | ||
|
||
.full-view-left-table { | ||
flex: 1; | ||
margin-right: 8px; | ||
} | ||
|
||
.full-view-right-table { | ||
position: relative; | ||
flex: 1; | ||
} | ||
|
||
a, | ||
a label { | ||
cursor: pointer; | ||
} | ||
|
||
|
||
.close-button { | ||
background: transparent; | ||
border: none; | ||
position: absolute; | ||
right: 2px; | ||
top: 2px; | ||
i { | ||
font-size: 12px; | ||
} | ||
} | ||
|
Oops, something went wrong.