-
-
Notifications
You must be signed in to change notification settings - Fork 15
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
26 changed files
with
573 additions
and
217 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
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,4 +1,8 @@ | ||
export interface DecisionResponse { | ||
id: number; | ||
name: string; | ||
defendantName: string; | ||
decisionNumber: string; | ||
fileNumber: string; | ||
stage: string; | ||
assetId: number; | ||
} |
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,15 +1,24 @@ | ||
export class DecisionSummary { | ||
number: string; | ||
date: Date; | ||
id: number; | ||
defendantName: string; | ||
decisionNumber: string; | ||
fileNumber: string; | ||
emitterInstitution: string; | ||
historicalStageId: number; | ||
stage: string; | ||
assetId: number; | ||
|
||
constructor(number: string, date: Date, fileNumber: string, emitterInstitution: string, historicalStageId: number) { | ||
this.number = number; | ||
this.date = date; | ||
constructor( | ||
id: number, | ||
defendantName: string, | ||
decisionNumber: string, | ||
fileNumber: string, | ||
stage: string, | ||
assetId: number | ||
) { | ||
this.id = id; | ||
this.defendantName = defendantName; | ||
this.decisionNumber = decisionNumber; | ||
this.fileNumber = fileNumber; | ||
this.emitterInstitution = emitterInstitution; | ||
this.historicalStageId = historicalStageId; | ||
this.stage = stage; | ||
this.assetId = assetId; | ||
} | ||
} |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import { SearchComponent } from './search/search.component'; | ||
|
||
export const components: any[] = [ | ||
SearchComponent, | ||
]; | ||
|
||
export * from './search/search.component'; |
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,61 @@ | ||
<section id="search-page" class="page-view"> | ||
<div class="mat-elevation-z8 table-wrapper"> | ||
<div class="table-header"> | ||
<form (ngSubmit)="onSubmit()" [formGroup]="searchForm" fxLayout="row"> | ||
<mat-form-field fxFlex="29" fxFlexOffset="10"> | ||
<mat-select name="filterKey" placeholder="Categorie" formControlName="filterKey"> | ||
<mat-option *ngFor="let filterProperty of filterProperties" [value]="filterProperty.value">{{ | ||
filterProperty.name }} | ||
</mat-option> | ||
</mat-select> | ||
</mat-form-field> | ||
<mat-form-field fxFlex="39"> | ||
<input matInput name="filterValue" placeholder="Introdu numarul" formControlName="filterValue"/> | ||
</mat-form-field> | ||
<button fxFlex="10" mat-raised-button><i class="material-icons">search</i></button> | ||
</form> | ||
</div> | ||
<div *ngIf="tableConfig.dataSource" class="table-content"> | ||
<mat-table #table [dataSource]="tableConfig.dataSource" matSort fxFlex matSortActive="id" matSortDirection="desc"> | ||
<ng-container matColumnDef="id"> | ||
<mat-header-cell *matHeaderCellDef mat-sort-header>ID</mat-header-cell> | ||
<mat-cell *matCellDef="let decisionSummary">{{ decisionSummary.id }}</mat-cell> | ||
</ng-container> | ||
|
||
<ng-container matColumnDef="defendantName"> | ||
<mat-header-cell *matHeaderCellDef mat-sort-header>Nume</mat-header-cell> | ||
<mat-cell *matCellDef="let decisionSummary">{{ decisionSummary.name }}</mat-cell> | ||
</ng-container> | ||
|
||
<ng-container matColumnDef="decisionNumber"> | ||
<mat-header-cell *matHeaderCellDef mat-sort-header>Numar decizie</mat-header-cell> | ||
<mat-cell *matCellDef="let decisionSummary">{{ decisionSummary.type }}</mat-cell> | ||
</ng-container> | ||
|
||
<ng-container matColumnDef="fileNumber"> | ||
<mat-header-cell *matHeaderCellDef mat-sort-header>Numar dosar</mat-header-cell> | ||
<mat-cell *matCellDef="let decisionSummary">{{ decisionSummary.getAddress() }}</mat-cell> | ||
</ng-container> | ||
|
||
<ng-container matColumnDef="stage"> | ||
<mat-header-cell *matHeaderCellDef mat-sort-header>Stadiu</mat-header-cell> | ||
<mat-cell *matCellDef="let decisionSummary">{{ decisionSummary.getAddress() }}</mat-cell> | ||
</ng-container> | ||
|
||
<ng-container matColumnDef="buttons"> | ||
<mat-header-cell *matHeaderCellDef>Overview</mat-header-cell> | ||
<mat-cell *matCellDef="let row"> | ||
<button mat-raised-button (click)="viewAsset(row)"><i class="material-icons">View</i></button> | ||
</mat-cell> | ||
</ng-container> | ||
|
||
<mat-header-row *matHeaderRowDef="tableConfig.displayedColumns"></mat-header-row> | ||
<mat-row *matRowDef="let row; columns: tableConfig.displayedColumns;"></mat-row> | ||
</mat-table> | ||
|
||
<div class="table-footer"> | ||
<mat-paginator #paginator [hidePageSize]="true" [pageSize]="20" [showFirstLastButtons]="true"></mat-paginator> | ||
</div> | ||
</div> | ||
</div> | ||
</section> |
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,78 @@ | ||
@import 'variables'; | ||
|
||
.page-view { | ||
height: calc(100% - #{$anabi-header-height}); | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: center; | ||
align-items: center; | ||
} | ||
|
||
// material table layout | ||
.table-wrapper { | ||
box-sizing: border-box; | ||
margin: $anabi-table-margin; | ||
height: calc(100% - #{2 * $anabi-table-margin}); | ||
width: calc(100% - #{2 * $anabi-table-margin}); | ||
min-height: calc(100% - #{2 * $anabi-table-margin}); | ||
min-width: calc(100% - #{2 * $anabi-table-margin}); | ||
display: flex; | ||
flex-direction: column; | ||
|
||
.table-header { | ||
form { | ||
width: 100%; | ||
mat-form-field { | ||
margin-left: $anabi-table-margin; | ||
} | ||
button { | ||
background-color: $search-button-color; | ||
height: $search-button-height; | ||
border-radius: 0px; | ||
} | ||
} | ||
} | ||
.table-header, | ||
.table-footer { | ||
display: flex; | ||
flex-direction: row; | ||
justify-content: space-between; | ||
align-items: center; | ||
min-height: 100px; | ||
padding: 2 * $anabi-table-padding; | ||
|
||
mat-form-field { | ||
flex-grow: 1; | ||
height: 60px; | ||
} | ||
} | ||
|
||
.table-header, | ||
.table-footer, | ||
.mat-paginator { | ||
background-color: $anabi-table-accent; | ||
} | ||
|
||
.mat-table { | ||
overflow-y: auto; | ||
flex: 1 1 auto; | ||
|
||
.mat-header-row { | ||
position: sticky; | ||
top: 0; | ||
background: white; | ||
} | ||
} | ||
} | ||
|
||
// material dialog types | ||
mat-dialog-container { | ||
.mat-dialog-title { | ||
font-weight: bold; | ||
} | ||
|
||
.mat-dialog-actions:last-child { | ||
margin-bottom: 0; | ||
padding-bottom: 0; | ||
} | ||
} |
Oops, something went wrong.