2017-12-19 13:53:46 +01:00
< ul * ngIf = "filter.values.length >0" class = "uk-list" >
< li class = "uk-open" >
< h5 class = "uk-margin-bottom-remove" > {{_formatTitle(filter.title,filter.values.length)}}
< / h5 >
< div aria-expanded = "false" >
< div class = "searchFilterBoxValues " >
< div * ngFor = "let value of getSelectedValues(filter)" class = "uk-animation-fade filterItem" >
2018-02-05 14:14:59 +01:00
<!-- span *ngIf="!connectCommunityId || !(connectCommunityId && connectCommunityId == value.id)" -->
2017-12-19 13:53:46 +01:00
< span class = "filterName" > < div title = "{{value.name}}" >
< input [ disabled ] = " isDisabled " [ ( ngModel ) ] = " value . selected " type = "checkbox" ( ngModelChange ) = " filterChange ( value . selected ) " / >
{{_formatName(value)}} < / div > < / span >
2018-05-09 15:54:30 +02:00
< span class = "filterNumber" * ngIf = "showResultCount === true" > ({{value.number|number}})< / span >
2018-02-05 14:14:59 +01:00
<!-- /span -->
2017-12-19 13:53:46 +01:00
< / div >
<!-- div class="uk - grid - divider uk - margin - remove"></div -->
2018-02-05 14:14:59 +01:00
< hr * ngIf = "getSelectedValues(filter).length > 0 && getNotSelectedValues(filter).length > 0 " class = "uk-grid-divider uk-margin-remove" >
2017-12-19 13:53:46 +01:00
< div * ngFor = "let value of getNotSelectedValues(filter).slice(0,(!addShowMore?getNotSelectedValues(filter).length:5-getSelectedValues(filter).length))" class = "uk-animation-fade filterItem" >
2018-02-05 14:14:59 +01:00
<!-- span *ngIf="!connectCommunityId || !(connectCommunityId && connectCommunityId == value.id)" -->
2017-12-19 13:53:46 +01:00
< span class = "filterName" > < div title = "{{value.name}}" > < input [ disabled ] = " isDisabled " [ ( ngModel ) ] = " value . selected " type = "checkbox" ( ngModelChange ) = " filterChange ( value . selected ) " / >
{{_formatName(value)}} < / div > < / span >
2018-05-09 15:54:30 +02:00
< span class = "filterNumber" * ngIf = "showResultCount === true" > ({{value.number|number}})< / span >
2018-02-05 14:14:59 +01:00
<!-- /span -->
2017-12-19 13:53:46 +01:00
< / div >
<!-- a *ngIf="(getSelectedValues(filter).length + getNotSelectedValues(filter).length) > 5" (click)="toggle()" [class]="(isDisabled)?'uk - disabled uk - link - muted':''">Show More</a -->
<!-- button *ngIf="(getSelectedValues(filter).length + getNotSelectedValues(filter).length) > 5"
class="uk-button uk-button-link" (click)="toggle()" [disabled]="isDisabled">
Show More
< / button-- >
2018-06-01 14:28:49 +02:00
< a * ngIf = " addShowMore && (getSelectedValues(filter).length + getNotSelectedValues(filter).length) > 5" ( click ) = " open ( ) " [ class ] = " ( isDisabled ) ? ' uk-disabled uk-link-muted uk-button uk-button-text uk-text-secondary ' : ' uk-button uk-button-text uk-text-secondary ' " > View more
<!-- span class="uk - icon">
< svg width = "20" height = "20" viewBox = "0 0 20 20" xmlns = "http://www.w3.org/2000/svg" icon = "triangle-right" ratio = "1" > < polygon points = "8 5 13 10 8 15" > < / polygon > < / svg >
< / span-- >
< / a >
2017-12-19 13:53:46 +01:00
< div * ngIf = "addShowMore" [ class ] = " ( ! isOpen ) ? ' uk-modal ' : ' uk-modal uk-open uk-animation-fade ' " uk-modal [ open ] = " ! isOpen " id = "modal2" tabindex = "-1" role = "dialog" aria-labelledby = "myModalLabel" bg-close = "true" >
< div class = "filtersModal uk-modal-dialog uk-small-1-2 uk-width-medium-1-3 uk-width-1-3 uk-padding-small uk-padding-remove-top uk-padding-remove-horizontal" >
< button type = "button" class = "uk-modal-close-default" uk-close ( click ) = " close ( ) " > < / button >
< h5 class = "uk-margin-remove uk-padding uk-padding-remove-bottom" >
{{filter.title}}
< / h5 >
< span * ngIf = "filter.values.length >= 99" class = "uk-article-meta uk-text-center" > Showing top {{filter.values.length}} values. < / span >
2018-02-05 14:14:59 +01:00
2017-12-19 13:53:46 +01:00
< div class = "uk-modal-body uk-overflow-auto uk-height-medium uk-padding-remove
uk-margin-medium-left uk-margin-medium-right uk-margin-small-top uk-margin-bottom">
< div * ngFor = "let value of getSelectedValues(filter)" class = "uk-animation-fade filterItem" >
2018-02-05 14:14:59 +01:00
<!-- span *ngIf="!connectCommunityId || !(connectCommunityId && connectCommunityId == value.id)"==>
< span class = "filterName" > < div title = "{{value.name}}" >
< input [ disabled ] = " isDisabled " [ ( ngModel ) ] = " value . selected " type = "checkbox" ( ngModelChange ) = " close ( ) ; filterChange ( value . selected ) " / >
{{_formatName(value)}} < / div > < / span >
< span class = "filterNumber" * ngIf = "showResultCount === true" > ({{value.number}})< / span >
<!-- /span -->
2017-12-19 13:53:46 +01:00
< / div >
< hr * ngIf = "getSelectedValues(filter).length > 0 && getNotSelectedValues(filter).length > 0" class = "uk-grid-divider uk-margin-remove" >
< div * ngFor = "let value of getNotSelectedValues(filter)" class = "uk-animation-fade filterItem" >
2018-02-05 14:14:59 +01:00
<!-- span *ngIf="!connectCommunityId || !(connectCommunityId && connectCommunityId == value.id)" -->
< span class = "filterName" > < div title = "{{value.name}}" > < input [ disabled ] = " isDisabled " [ ( ngModel ) ] = " value . selected " type = "checkbox" ( ngModelChange ) = " close ( ) ; filterChange ( value . selected ) " / >
{{_formatName(value)}} < / div > < / span >
2018-05-09 15:54:30 +02:00
< span class = "filterNumber" * ngIf = "showResultCount === true" > ({{value.number|number}})< / span >
2018-02-05 14:14:59 +01:00
<!-- /span -->
2017-12-19 13:53:46 +01:00
< / div >
< / div >
< / div >
< / div >
< / div >
< / div >
< / li >
< / ul >