2020-02-17 15:19:14 +01:00
|
|
|
<div class="uk-margin-small-bottom">
|
2022-07-17 15:01:39 +02:00
|
|
|
<div class="uk-margin-small-top uk-margin-bottom uk-flex uk-flex-middle">
|
|
|
|
<h6 class="uk-margin-remove-bottom">{{_formatTitle(filter.title)}}</h6>
|
2020-07-14 15:13:44 +02:00
|
|
|
<a *ngIf="filter.selectedFromValue || filter.selectedToValue" (click)="clearFilter()"
|
2022-07-17 15:01:39 +02:00
|
|
|
[class.uk-disabled]="isDisabled" class="uk-text-small uk-margin-left">
|
2020-02-17 15:19:14 +01:00
|
|
|
Clear
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
<div aria-expanded="false">
|
|
|
|
<div>
|
2023-05-12 17:06:10 +02:00
|
|
|
<div class="uk-animation-fade uk-text-small">
|
|
|
|
<div>
|
|
|
|
<div #input class="uk-width-4-5" input [formInput]="rangeForm" type="year-range" [yearRange]="yearRange" [extendEnter]="onEnter"
|
|
|
|
inputClass="flat small background">
|
2023-05-10 10:51:59 +02:00
|
|
|
<div action (click)="yearChanged()" class="action-icon"
|
2023-05-12 16:24:27 +02:00
|
|
|
[class.disabled]="disabled">
|
2023-05-10 10:51:59 +02:00
|
|
|
<icon name="chevron_right" [flex]="true"></icon>
|
2021-08-10 12:46:33 +02:00
|
|
|
<span class="visually-hidden">GO</span>
|
2020-07-10 10:16:58 +02:00
|
|
|
</div>
|
2023-05-10 10:51:59 +02:00
|
|
|
</div>
|
|
|
|
<div class="uk-flex uk-flex-middle uk-flex-wrap">
|
|
|
|
<div *ngIf="showQuickButtons" class="uk-width-1-1">
|
2022-04-05 15:45:38 +02:00
|
|
|
<div class="uk-margin-small uk-margin-top uk-text-left">
|
2022-03-15 12:13:28 +01:00
|
|
|
<ul class="uk-text-small uk-grid uk-grid-small uk-grid-divider" uk-grid>
|
2020-10-20 11:11:15 +02:00
|
|
|
<li>
|
|
|
|
<a *ngIf="actionRoute" [routerLink]="getRoute()"
|
|
|
|
[queryParams]="getParams(0,(stringToNum(filter.selectedToValue) ==
|
|
|
|
currentYear
|
|
|
|
&&stringToNum(filter.selectedFromValue) == currentYear))"
|
2022-03-15 12:13:28 +01:00
|
|
|
[class]="'uk-text-center '
|
2020-05-05 19:12:29 +02:00
|
|
|
+ ((stringToNum(filter.selectedFromValue) == currentYear && stringToNum(filter.selectedToValue) == currentYear) ? ' uk-text-bold' : '')
|
2020-07-14 15:13:44 +02:00
|
|
|
"
|
2020-05-07 11:33:13 +02:00
|
|
|
(click)="yearChanged(0)"
|
2020-10-20 11:11:15 +02:00
|
|
|
>This year</a>
|
|
|
|
<a *ngIf="!actionRoute"
|
2022-03-15 12:13:28 +01:00
|
|
|
[class]="'uk-text-center '
|
2020-10-20 11:11:15 +02:00
|
|
|
+ ((stringToNum(filter.selectedFromValue) == currentYear && stringToNum(filter.selectedToValue) == currentYear) ? ' uk-text-bold' : '')
|
|
|
|
"
|
|
|
|
(click)="yearChanged(0)"
|
|
|
|
>This year</a>
|
|
|
|
</li>
|
|
|
|
<li><a *ngIf="actionRoute" [routerLink]="getRoute()"
|
|
|
|
[queryParams]="getParams(4,(stringToNum(filter.selectedToValue) == currentYear
|
|
|
|
&&stringToNum(filter.selectedFromValue) == currentYear-4))"
|
2022-03-15 12:13:28 +01:00
|
|
|
[class]="'uk-text-center '
|
2020-05-05 19:12:29 +02:00
|
|
|
+ ((stringToNum(filter.selectedToValue) == currentYear && stringToNum(filter.selectedFromValue) == currentYear-4) ? ' uk-text-bold' : '')
|
2020-07-14 15:13:44 +02:00
|
|
|
"
|
2020-05-07 11:33:13 +02:00
|
|
|
(click)="yearChanged(4)"
|
2020-10-20 11:11:15 +02:00
|
|
|
>Last 5 years</a>
|
|
|
|
<a *ngIf="!actionRoute"
|
2022-03-15 12:13:28 +01:00
|
|
|
[class]="'uk-text-center '
|
2020-10-20 11:11:15 +02:00
|
|
|
+ ((stringToNum(filter.selectedToValue) == currentYear && stringToNum(filter.selectedFromValue) == currentYear-4) ? ' uk-text-bold' : '')
|
|
|
|
"
|
|
|
|
(click)="yearChanged(4)"
|
|
|
|
>Last 5 years</a>
|
|
|
|
</li>
|
|
|
|
<li><a *ngIf="actionRoute" [routerLink]="getRoute()"
|
|
|
|
[queryParams]="getParams(9,(stringToNum(filter.selectedToValue) == currentYear &&stringToNum(filter.selectedFromValue) == currentYear-9))"
|
2022-03-15 12:13:28 +01:00
|
|
|
[class]="'uk-text-center '
|
2020-05-05 19:12:29 +02:00
|
|
|
+ ((stringToNum(filter.selectedToValue) == currentYear && stringToNum(filter.selectedFromValue) == currentYear-9) ? ' uk-text-bold' : '')
|
2020-07-14 15:13:44 +02:00
|
|
|
"
|
2020-05-07 11:33:13 +02:00
|
|
|
(click)="yearChanged(9)"
|
2020-10-20 11:11:15 +02:00
|
|
|
>Last 10 years</a>
|
|
|
|
<a *ngIf="!actionRoute"
|
2022-03-15 12:13:28 +01:00
|
|
|
[class]="'uk-text-center '
|
2020-10-20 11:11:15 +02:00
|
|
|
+ ((stringToNum(filter.selectedToValue) == currentYear && stringToNum(filter.selectedFromValue) == currentYear-9) ? ' uk-text-bold' : '')
|
|
|
|
"
|
|
|
|
(click)="yearChanged(9)"
|
|
|
|
>Last 10 years</a>
|
|
|
|
</li>
|
2020-05-07 11:33:13 +02:00
|
|
|
</ul>
|
2020-02-24 14:38:08 +01:00
|
|
|
</div>
|
2020-05-07 11:33:13 +02:00
|
|
|
<!-- End of Natalia's suggestion -->
|
2022-04-05 15:45:38 +02:00
|
|
|
|
2020-02-24 14:38:08 +01:00
|
|
|
</div>
|
2023-05-10 10:51:59 +02:00
|
|
|
</div>
|
2020-02-17 15:19:14 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2020-02-25 16:40:56 +01:00
|
|
|
</div>
|