2020-02-17 15:19:14 +01:00
< div * ngIf = "filter.values.length >0" class = "uk-margin-small-bottom" >
< div class = "uk-margin-small-top uk-margin-bottom uk-grid uk-flex uk-flex-bottom" >
< h5 class = "uk-margin-bottom-remove" > {{_formatTitle(filter.title,filter.values.length)}}< / h5 >
< a * ngIf = "filter.countSelectedValues>0" ( click ) = " clearFilter ( ) " class = "portal-link" >
Clear
< / a >
< / div >
2017-12-19 13:53:46 +01:00
< div aria-expanded = "false" >
2020-02-17 15:19:14 +01:00
< div >
2020-02-24 17:27:01 +01:00
< ng-container >
<!-- <div *ngFor = "let value of getSelectedValues(filter,'num')" class="uk - animation - fade filterItem searchFilterItem uk - text - small"> -->
<!-- <div title = "{{value.name}}"> -->
<!-- <ng - container *ngIf="filter.filterType == 'checkbox' || filter.filterType == 'radio'"> -->
<!-- <input *ngIf="filter.filterType == 'checkbox'" [(ngModel)]="value.selected" type="checkbox" (ngModelChange)="filterChange(value.selected)" /> -->
<!-- <input *ngIf="filter.filterType == 'radio'" type="radio" (click)="uniqueFilterChange(value)" -->
<!-- [name]=filter.filterId checked/> -->
<!-- {{' '+_formatName(value)}} -->
<!-- <span *ngIf = "showResultCount === true" > -->
<!-- {{' ('+(value.number|number)+')'}}</span> -->
<!-- </ng - container> -->
<!-- </div> -->
<!-- </div> -->
2017-12-19 13:53:46 +01:00
2020-02-24 17:27:01 +01:00
<!-- <div *ngFor = "let value of getNotSelectedValues(filter,'num').slice(0,(!addShowMore?getNotSelectedValues(filter,'num').length:filterValuesNum - getSelectedValues(filter,'num').length))" class = "uk - animation - fade filterItem searchFilterItem uk - text - small"> -->
<!-- <div title = "{{value.name}}" [class]="(isDisabled || (showResultCount && value.number === 0))?'uk - text - muted':''" > -->
<!-- <input *ngIf="filter.filterType == 'checkbox'" [disabled]="isDisabled || (showResultCount && value.number === 0)" [(ngModel)]="value.selected" type="checkbox" (ngModelChange)="filterChange(value.selected)" /> -->
<!-- <input *ngIf="filter.filterType == 'radio'" [disabled]="isDisabled || (showResultCount && value.number === 0)" type="radio" (click)="uniqueFilterChange(value)" -->
<!-- [name]=filter.filterId value=false /> -->
<!-- {{' '+ _formatName(value) }} -->
<!-- <span *ngIf = "showResultCount === true" [class]="(isDisabled || value.number === 0)?'uk - text - muted':''" > -->
<!-- {{' ('+(value.number|number)+')'}} -->
<!-- </span> -->
<!-- </div> -->
<!-- </div> -->
< div * ngFor = "let value of getSelectedAndTopValues(filter, 6)"
class="uk-animation-fade filterItem searchFilterItem uk-text-small">
< div title = "{{value.name}}" >
2020-02-26 16:01:16 +01:00
< label * ngIf = "filter.filterType == 'checkbox' || filter.filterType == 'radio'" >
2020-02-24 17:27:01 +01:00
< input * ngIf = "filter.filterType == 'checkbox'" type = "checkbox"
[disabled]="isDisabled || (showResultCount & & value.number === 0)"
[(ngModel)]="value.selected" (ngModelChange)="filterChange(value.selected)" />
< input * ngIf = "filter.filterType == 'radio'" type = "radio"
[disabled]="isDisabled || (showResultCount & & value.number === 0)"
2020-02-26 16:01:16 +01:00
[name]=filter.filterId [value]="true" [(ngModel)]="value.selected" (click)="uniqueFilterChange(value)"/>
2020-02-24 17:27:01 +01:00
{{' '+_formatName(value)}}
< span * ngIf = "showResultCount === true" >
2020-02-26 16:01:16 +01:00
{{' ('+(value.number|number)+')'}}
< / span >
< / label >
2020-02-24 17:27:01 +01:00
< / div >
2020-02-17 15:19:14 +01:00
< / div >
< / ng-container >
2017-12-19 13:53:46 +01:00
2020-02-17 15:19:14 +01:00
< div * ngIf = " addShowMore && (filter.values.length) > filterValuesNum" >
2020-02-24 17:27:01 +01:00
< a
2020-02-17 15:19:14 +01:00
[class]="((isDisabled)?'uk-disabled uk-link-muted ':' portal-link ') + ' uk-margin-small-top'"
[attr.uk-toggle]="'target: #toggle-'+filter.filterId" (click)="toggle()">
2020-02-24 17:27:01 +01:00
< span * ngIf = "!isOpen" > + View more< / span >
< span * ngIf = "isOpen" > - View less< / span >
2019-07-15 18:11:07 +02:00
< / a >
2020-02-17 15:19:14 +01:00
< div hidden [ id ] = " ' toggle- ' + filter . filterId " class = "uk-text-small uk-margin-small-bottom" >
2019-07-15 18:11:07 +02:00
< div class = "" >
2020-02-17 15:19:14 +01:00
< span * ngIf = "filter.values.length >= 99" > * only the Top 100 values are shown< / span >
2019-07-15 18:11:07 +02:00
< input class = "uk-input uk-margin-small-bottom uk-width-1-1 " name = "filter-keyword" placeholder = "Search for {{filter.title}}" type = "text" [ ( ngModel ) ] = " keyword " >
2020-02-17 15:19:14 +01:00
< span * ngIf = "showResultCount === true" class = "uk-width-5-6@m uk-width-1-1@s uk-align-right uk-margin-small-bottom" >
2020-02-24 17:27:01 +01:00
< span class = "uk-width-1-4 uk-text-muted" > Sort by:< / span >
2020-03-12 11:48:04 +01:00
< mat-select [ ( ngModel ) ] = " sortBy "
class="uk-select uk-width-3-4@m uk-width-auto matSelection"
id="form-horizontal-select" name="select_order"
[disableOptionCentering]="true" panelClass="matSelectionPanel">
< mat-option value = "num" > Results number< / mat-option >
< mat-option value = "name" > Name< / mat-option >
< / mat-select >
2020-02-17 15:19:14 +01:00
< / span >
2019-07-15 18:11:07 +02:00
< / div >
2020-02-17 15:19:14 +01:00
< div class = "uk-modal-body uk-overflow-auto uk-height-max-small uk-padding-remove
2020-02-24 17:27:01 +01:00
uk-margin-small-left uk-margin-small-right uk-margin-small-top uk-width-1-1">
<!-- <ng - container *ngFor = "let value of getSelectedValues(filter, sortBy)"> -->
<!-- <div *ngIf="filterKeywords(value.name)" class = "uk - animation - fade filterItem searchFilterItem"> -->
2019-07-22 16:15:23 +02:00
2020-02-24 17:27:01 +01:00
<!-- <div title = "{{value.name}}"> -->
<!-- <input *ngIf="filter.filterType == 'checkbox'" [disabled]="isDisabled" [(ngModel)]="value.selected" type="checkbox" (ngModelChange)="filterChange(value.selected)" /> -->
<!-- <input *ngIf="filter.filterType == 'radio'" [disabled]="isDisabled" type="radio" (click)="uniqueFilterChange(value)" -->
<!-- [name]=filter.filterId checked/> -->
<!-- {{' ' + _formatName(value) + ' '}} -->
<!-- <span class="filterNumber" *ngIf = "showResultCount === true" > ({{value.number|number}})</span> -->
<!-- </div> -->
2019-07-22 16:15:23 +02:00
2020-02-24 17:27:01 +01:00
<!-- </div> -->
<!-- </ng - container> -->
2020-02-17 15:19:14 +01:00
2020-02-24 17:27:01 +01:00
<!-- <ng - container *ngFor = "let value of getNotSelectedValues(filter, sortBy)"> -->
<!-- <div *ngIf="filterKeywords(value.name)" class = "uk - animation - fade filterItem searchFilterItem"> -->
2019-07-22 16:15:23 +02:00
2020-02-24 17:27:01 +01:00
<!-- <div title = "{{value.name}}"> -->
<!-- <input *ngIf="filter.filterType == 'checkbox'" [disabled]="isDisabled" [(ngModel)]="value.selected" type="checkbox" (ngModelChange)="filterChange(value.selected)" /> -->
<!-- <input *ngIf="filter.filterType == 'radio'" [disabled]="isDisabled" type="radio" (click)="uniqueFilterChange(value)" -->
<!-- [name]=filter.filterId value=false /> -->
<!-- {{' ' + _formatName(value) + ' '}} -->
<!-- <span *ngIf = "showResultCount === true" > ({{value.number|number}})</span> -->
<!-- </div> -->
<!-- </div> -->
<!-- </ng - container> -->
< ng-container * ngFor = "let value of sort(filter.values)"
class="uk-animation-fade filterItem searchFilterItem uk-text-small">
2020-03-04 17:44:50 +01:00
< div * ngIf = "filterKeywords(value.name)" title = "{{value.name}}" >
2020-02-26 16:01:16 +01:00
< label * ngIf = "filter.filterType == 'checkbox' || filter.filterType == 'radio'" >
2020-02-24 17:27:01 +01:00
< input * ngIf = "filter.filterType == 'checkbox'" type = "checkbox"
[disabled]="isDisabled || (showResultCount & & value.number === 0)"
[(ngModel)]="value.selected" (ngModelChange)="filterChange(value.selected)" />
< input * ngIf = "filter.filterType == 'radio'" type = "radio"
[disabled]="isDisabled || (showResultCount & & value.number === 0)"
2020-02-26 16:01:16 +01:00
[name]=filter.filterId [value]="true" [(ngModel)]="value.selected" (click)="uniqueFilterChange(value)"/>
2020-02-24 17:27:01 +01:00
{{' '+_formatName(value)}}
< span * ngIf = "showResultCount === true" >
{{' ('+(value.number|number)+')'}}< / span >
2020-02-26 16:01:16 +01:00
< / label >
2019-07-15 18:11:07 +02:00
< / div >
< / ng-container >
< / div >
< / div >
2020-02-24 17:27:01 +01:00
<!-- <a [class]="(isDisabled)?'uk - disabled uk - link - muted ':' portal - link '" -->
<!-- [attr.uk - toggle]="'target: #toggle - '+filter.filterId" (click)="toggle()"> -->
<!-- <span *ngIf="isOpen"> - View less</span> -->
<!-- </a> -->
2019-07-15 18:11:07 +02:00
< / div >
2017-12-19 13:53:46 +01:00
< / div >
< / div >
2020-02-17 15:19:14 +01:00
< / div >