-
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.
refactor(refuge-page): restyle graph and add reservation info
- Loading branch information
FerranAD
committed
Nov 20, 2023
1 parent
fd9669e
commit 80a7096
Showing
16 changed files
with
602 additions
and
122 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
25 changes: 19 additions & 6 deletions
25
app/src/app/components/reservation-picker/reservation-picker.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 |
---|---|---|
@@ -1,11 +1,24 @@ | ||
<ion-grid> | ||
<ion-col> | ||
<ion-datetime presentation="date" [(ngModel)]="date"></ion-datetime> | ||
</ion-col> | ||
<ion-col> | ||
<ion-button (click)="onBookClick()" style="margin-left: 5%"> | ||
{{ "REFUGE.RESERVATIONS.BUTTON" | translate }} | ||
<ion-icon style="margin-left: 5%" name="folder"></ion-icon> | ||
</ion-button> | ||
<ion-row> | ||
<ion-col size="10"> | ||
<ion-button (click)="onBookClick()" style="width: 100%;"> | ||
{{ "REFUGE.RESERVATIONS.BUTTON" | translate }} | ||
<ion-icon style="margin-left: 5%" name="folder"></ion-icon> | ||
</ion-button> | ||
</ion-col> | ||
<ion-col size="2"> | ||
<ion-button id="present-info-alert"> | ||
<ion-icon name="information-circle-outline"></ion-icon> | ||
</ion-button> | ||
</ion-col> | ||
<ion-alert | ||
trigger="present-info-alert" | ||
header="'REFUGE.RESERVATIONS.INFO.HEADER' | translate" | ||
message="'REFUGE.RESERVATIONS.INFO.BODY' | translate" | ||
[buttons]="alertButtons" | ||
></ion-alert> | ||
</ion-row> | ||
</ion-col> | ||
</ion-grid> |
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,6 @@ | ||
#present-info-alert { | ||
background: transparent; | ||
--background: transparent; | ||
color: #3e74b2; | ||
font-size: 20px; | ||
} |
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
26 changes: 23 additions & 3 deletions
26
app/src/app/components/reservations-chart/reservations-chart.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 |
---|---|---|
@@ -1,6 +1,26 @@ | ||
<h3 class="ion-padding-top ion-padding-start"> | ||
<h3 class="ion-padding-start" style="margin-bottom: 30px"> | ||
{{ "REFUGE.OCCUPATION.HISTORIAL" | translate }} | ||
</h3> | ||
<div class="graphic-info"> | ||
<div #chart></div> | ||
<div class="modal-card"> | ||
<ngx-charts-bar-vertical | ||
#verticalBarChart | ||
[scheme]="colorScheme" | ||
[results]="days" | ||
[gradient]=false | ||
[xAxis]=true | ||
[yAxis]=true | ||
[legend]=false | ||
[showXAxisLabel]=true | ||
[showYAxisLabel]=true | ||
[xAxisLabel]= "'REFUGE.OCCUPATION.XLABEL' | translate" | ||
[yAxisLabel]= "'REFUGE.OCCUPATION.YLABEL' | translate" | ||
[xAxisTickFormatting]="xAxisTickFormatting" | ||
(select)="onSelect()"> | ||
<ng-template #tooltipTemplate let-model="model"> | ||
<!-- fields are series/name/value --> | ||
<div class="tt"> | ||
Custom tooltip - | ||
</div> | ||
</ng-template> | ||
</ngx-charts-bar-vertical> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
:host ::ng-deep .ngx-charts text { | ||
fill: var(--ion-color-light-contrast) !important; | ||
} |
142 changes: 67 additions & 75 deletions
142
app/src/app/components/reservations-chart/reservations-chart.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
Oops, something went wrong.