-
Notifications
You must be signed in to change notification settings - Fork 0
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
Marcos Dornellas
committed
Mar 18, 2021
1 parent
566f6a0
commit f6df0be
Showing
6 changed files
with
82 additions
and
136 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
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 |
---|---|---|
|
@@ -13,6 +13,7 @@ export type CompanyModel = { | |
standards?: Array<{ | ||
id: string, | ||
name: string | ||
rating: number | ||
}> | ||
complianceAssessed?: boolean | ||
token?: string | ||
|
@@ -31,16 +32,4 @@ export class CompanyService { | |
const { data, success } = await this.client.get<BaseResponse<Array<CompanyModel>>>(`companies`).toPromise(); | ||
return data; | ||
} | ||
|
||
get(id: number): CompanyModel { | ||
return { | ||
id: '8q397323', | ||
name: 'Marcos teste', | ||
cnpj: 239892392, | ||
email: '[email protected]', | ||
endHire: '7689732', | ||
startHire: '2828923', | ||
standards: [{id: 'NR-1', name: 'TESTE NR-1' }, {id: 'NR-2', name: 'TESTE NR-2' }], | ||
}; | ||
} | ||
} |
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,17 +1 @@ | ||
.dashboard-card { | ||
position: absolute; | ||
top: 15px; | ||
left: 15px; | ||
right: 15px; | ||
bottom: 15px; | ||
} | ||
|
||
.more-button { | ||
position: absolute; | ||
top: 5px; | ||
right: 10px; | ||
} | ||
|
||
.dashboard-card-content { | ||
text-align: center; | ||
} | ||
.ngx-charts, text { fill: #e0e0e0; } |
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,39 +1,40 @@ | ||
<!-- <div class="grid-container"> | ||
<mat-grid-list cols="2" rowHeight="350px"> | ||
<mat-grid-tile [colspan]="2" [rowspan]="1"> | ||
<mat-card class="dashboard-card"> | ||
<mat-card-header> | ||
<mat-card-title> | ||
TESTE | ||
<button mat-icon-button class="more-button" [matMenuTriggerFor]="menu" aria-label="Toggle menu"> | ||
<mat-icon>more_vert</mat-icon> | ||
</button> | ||
<mat-menu #menu="matMenu" xPosition="before"> | ||
<button mat-menu-item>Expand</button> | ||
<button mat-menu-item>Remove</button> | ||
</mat-menu> | ||
</mat-card-title> | ||
</mat-card-header> | ||
<mat-card-content class="dashboard-card-content"> | ||
--> | ||
<ngx-charts-bar-vertical-2d | ||
[view]="view" | ||
[results]="multi" | ||
[gradient]="gradient" | ||
[xAxis]="showXAxis" | ||
[yAxis]="showYAxis" | ||
[legend]="showLegend" | ||
[showXAxisLabel]="showXAxisLabel" | ||
[showYAxisLabel]="showYAxisLabel" | ||
[xAxisLabel]="xAxisLabel" | ||
[yAxisLabel]="yAxisLabel" | ||
[legendTitle]="legendTitle" | ||
(select)="onSelect($event)" | ||
(activate)="onActivate($event)" | ||
(deactivate)="onDeactivate($event)"> | ||
</ngx-charts-bar-vertical-2d> | ||
<!-- </mat-card-content> | ||
</mat-card> | ||
</mat-grid-tile> | ||
</mat-grid-list> | ||
</div> --> | ||
<div class="flexbox-parent"> | ||
<mat-card style="display: flex;"> | ||
<mat-card-header> | ||
<mat-card-title> | ||
Gráfico de Conformidade | ||
</mat-card-title> | ||
</mat-card-header> | ||
|
||
<mat-card-content> | ||
<ngx-charts-bar-vertical-2d *ngIf="multi && multi.length > 0; else teste" | ||
[view]="view" | ||
[results]="multi" | ||
[gradient]="gradient" | ||
[scheme]="colorScheme" | ||
[xAxis]="showXAxis" | ||
[yAxis]="showYAxis" | ||
[legend]="showLegend" | ||
[showXAxisLabel]="showXAxisLabel" | ||
[showYAxisLabel]="showYAxisLabel" | ||
[xAxisLabel]="xAxisLabel" | ||
[yAxisLabel]="yAxisLabel" | ||
[legendTitle]="legendTitle" | ||
[maxXAxisTickLength]="maxXAxisTickLength" | ||
[maxYAxisTickLength]="maxYAxisTickLength" | ||
[legendPosition]="legendPosition" | ||
(select)="onSelect($event)" | ||
(activate)="onActivate($event)" | ||
(deactivate)="onDeactivate($event)"> | ||
</ngx-charts-bar-vertical-2d> | ||
|
||
<ng-template #teste> | ||
<p style="text-align: center; font-size:medium; padding-top: 20px;"><b>Carregando informações...</b></p> | ||
</ng-template> | ||
</mat-card-content> | ||
|
||
</mat-card> | ||
|
||
</div> | ||
|
||
|
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