2017-12-19 13:53:46 +01:00
< ul * ngIf = "filter.values.length >0" class = "uk-list" >
< li class = "uk-open" >
2018-10-01 17:02:14 +02:00
< h5 class = "uk-margin-bottom-remove searchFilterTitle" > {{_formatTitle(filter.title,filter.values.length)}}
2017-12-19 13:53:46 +01:00
< / h5 >
< div aria-expanded = "false" >
2019-07-15 18:11:07 +02:00
< div [ class ] = " showMoreInline ? ' ' : ' searchFilterBoxValues ' " >
2018-10-03 16:12:42 +02:00
< div * ngFor = "let value of getSelectedValues(filter,'num')" class = "uk-animation-fade filterItem" >
2019-07-15 18:11:07 +02:00
< div title = "{{value.name}}" >
< input * ngIf = "!filter.valueIsUnique" [ ( ngModel ) ] = " value . selected " type = "checkbox" ( ngModelChange ) = " filterChange ( value . selected ) " / >
< input * ngIf = "filter.valueIsUnique" type = "radio" ( click ) = " uniqueFilterChange ( value ) "
[name]=filter.filterId checked/>
2019-07-22 16:15:23 +02:00
{{' '+_formatName(value)}}
< span * ngIf = "showResultCount === true" >
{{' ('+(value.number|number)+')'}}< / span >
2019-07-15 18:11:07 +02:00
< / div >
2017-12-19 13:53:46 +01:00
< / div >
2019-07-15 18:11:07 +02:00
<!-- <hr *ngIf="filter.countSelectedValues > 0 && (filter.values.length - filter.countSelectedValues ) > 0 " class="uk - grid - divider uk - margin - small" -->
2017-12-19 13:53:46 +01:00
2019-07-15 18:11:07 +02: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" >
< div title = "{{value.name}}" [ class ] = " ( isDisabled | | ( showResultCount & & value . number = == 0 ) ) ? ' uk-text-muted ' : ' ' " >
< input * ngIf = "!filter.valueIsUnique" [ disabled ] = " isDisabled | | ( showResultCount & & value . number = == 0 ) " [ ( ngModel ) ] = " value . selected " type = "checkbox" ( ngModelChange ) = " filterChange ( value . selected ) " / >
< input * ngIf = "filter.valueIsUnique" [ disabled ] = " isDisabled | | ( showResultCount & & value . number = == 0 ) " type = "radio" ( click ) = " uniqueFilterChange ( value ) "
[name]=filter.filterId value=false />
2019-07-22 16:15:23 +02:00
< span * ngIf = "showResultCount === true" [ class ] = " ( isDisabled | | value . number = == 0 ) ? ' uk-text-muted ' : ' ' " >
{{' '+ _formatName(value) + ' ('+(value.number|number)+')'}}
2019-07-15 18:11:07 +02:00
< / span >
< / div >
2017-12-19 13:53:46 +01:00
< / div >
2019-07-15 18:11:07 +02:00
< div * ngIf = " addShowMore && showMoreInline && (filter.values.length) > filterValuesNum" >
2019-07-22 16:15:23 +02:00
< a [ class ] = " ( isDisabled ) ? ' uk-disabled uk-link-muted ' : ' ' "
2019-07-15 18:11:07 +02:00
[attr.uk-toggle]="'target: #toggle-'+filter.filterId">View
< span * ngIf = "filter.values.length >= 99" > more< / span >
< span * ngIf = "filter.values.length < 99" > all< / span >
< / a >
< div hidden [ id ] = " ' toggle- ' + filter . filterId " >
<!-- <div *ngIf="filter.values.length >= 99" class="uk - alert uk - alert - primary uk - text - center uk - margin - right uk - margin - left uk - margin - small - top uk - margin - small - bottom ">Showing top {{filter.values.length}} values. </div> -->
< div class = "" >
< input class = "uk-input uk-margin-small-bottom uk-width-1-1 " name = "filter-keyword" placeholder = "Search for {{filter.title}}" type = "text" [ ( ngModel ) ] = " keyword " >
< select * ngIf = "showResultCount === true" [ ( ngModel ) ] = " sortBy "
class="uk-text-muted uk-select uk-margin-small-bottom uk-width-1-1" name="select_order" (ngModelChange)="sortByChanged = true;" >
< option value = "num" > Sorted by results number< / option >
< option value = "name" > Sorted by name< / option >
< / select >
< / div >
< div class = "uk-modal-body uk-overflow-auto uk-height-small uk-padding-remove
uk-margin-small-left uk-margin-small-right uk-margin-small-top uk-margin-bottom">
< ng-container * ngFor = "let value of getSelectedValues(filter, sortBy)" >
< div * ngIf = "filterKeywords(value.name)" class = "uk-animation-fade filterItem" >
2019-07-22 16:15:23 +02:00
2019-07-15 18:11:07 +02:00
< div title = "{{value.name}}" >
< input * ngIf = "!filter.valueIsUnique" [ disabled ] = " isDisabled " [ ( ngModel ) ] = " value . selected " type = "checkbox" ( ngModelChange ) = " close ( ) ; filterChange ( value . selected ) " / >
< input * ngIf = "filter.valueIsUnique" [ disabled ] = " isDisabled " type = "radio" ( click ) = " uniqueFilterChange ( value ) "
[name]=filter.filterId checked/>
2019-07-22 16:15:23 +02:00
{{' ' + _formatName(value) + ' '}}
2019-07-15 18:11:07 +02:00
< span class = "filterNumber" * ngIf = "showResultCount === true" > ({{value.number|number}})< / span >
< / div >
2019-07-22 16:15:23 +02:00
2019-07-15 18:11:07 +02:00
< / div >
< / ng-container >
< hr * ngIf = "filter.countSelectedValues > 0 && (filter.values.length-filter.countSelectedValues ) > 0 " class = "uk-grid-divider uk-margin-small" >
< ng-container * ngFor = "let value of getNotSelectedValues(filter, sortBy)" >
< div * ngIf = "filterKeywords(value.name)" class = "uk-animation-fade filterItem" >
2019-07-22 16:15:23 +02:00
2019-07-15 18:11:07 +02:00
< div title = "{{value.name}}" >
< input * ngIf = "!filter.valueIsUnique" [ disabled ] = " isDisabled " [ ( ngModel ) ] = " value . selected " type = "checkbox" ( ngModelChange ) = " close ( ) ; filterChange ( value . selected ) " / >
< input * ngIf = "filter.valueIsUnique" [ disabled ] = " isDisabled " type = "radio" ( click ) = " uniqueFilterChange ( value ) "
[name]=filter.filterId value=false />
2019-07-22 16:15:23 +02:00
{{' ' + _formatName(value) + ' '}}
< span * ngIf = "showResultCount === true" > ({{value.number|number}})< / span >
2019-07-15 18:11:07 +02:00
< / div >
2019-07-22 16:15:23 +02:00
2019-07-15 18:11:07 +02:00
< / div >
< / ng-container >
< / div >
< / div >
< / div >
< a * ngIf = " addShowMore && !showMoreInline&& (filter.values.length) > filterValuesNum" ( click ) = " open ( ) "
2019-07-22 16:15:23 +02:00
[class]="(isDisabled)?'uk-disabled uk-link-muted':''">View more
2018-06-01 14:28:49 +02:00
< / a >
2017-12-19 13:53:46 +01:00
2019-07-15 18:11:07 +02:00
< div * ngIf = "addShowMore && !showMoreInline" [ 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" >
2017-12-19 13:53:46 +01:00
< 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 >
2018-07-19 12:52:29 +02:00
< h5 class = "uk-margin-remove uk-padding uk-padding-remove-bottom uk-text-center" >
2017-12-19 13:53:46 +01:00
{{filter.title}}
< / h5 >
2018-02-05 14:14:59 +01:00
2018-10-01 17:02:14 +02:00
< div * ngIf = "filter.values.length >= 99" class = "uk-alert uk-alert-primary uk-text-center uk-margin-right uk-margin-left uk-margin-small-top uk-margin-small-bottom " > Showing top {{filter.values.length}} values. < / div >
2018-07-19 12:52:29 +02:00
< div class = "uk-grid uk-margin-left uk-margin-right" >
< input class = "uk-input uk-margin-small-bottom uk-width-1-2 " name = "filter-keyword" placeholder = "Search for {{filter.title}}" type = "text" [ ( ngModel ) ] = " keyword " >
2018-07-26 12:09:06 +02:00
< select * ngIf = "showResultCount === true" [ ( ngModel ) ] = " sortBy " class = "uk-select uk-margin-small-bottom uk-width-1-2 uk-padding-remove" name = "select_order" ( ngModelChange ) = " sortByChanged = true;" >
2018-07-19 12:52:29 +02:00
< option value = "num" > Sort by results number< / option >
< option value = "name" > Sort by name< / option >
< / select >
< / div >
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">
2018-07-19 12:52:29 +02:00
< ng-container * ngFor = "let value of getSelectedValues(filter, sortBy)" >
< div * ngIf = "filterKeywords(value.name)" class = "uk-animation-fade filterItem" >
2019-07-22 16:15:23 +02:00
< div title = "{{value.name}}" >
2019-07-15 18:11:07 +02:00
< input * ngIf = "!filter.valueIsUnique" [ disabled ] = " isDisabled " [ ( ngModel ) ] = " value . selected " type = "checkbox" ( ngModelChange ) = " close ( ) ; filterChange ( value . selected ) " / >
< input * ngIf = "filter.valueIsUnique" [ disabled ] = " isDisabled " [ ( ngModel ) ] = " value . selected " type = "radio" [ name ] = filter . filterId ( ngModelChange ) = " close ( ) ; filterChange ( value . selected ) " / >
2019-07-22 16:15:23 +02:00
{{' ' + (value.name) + ' '}}
< span * ngIf = "showResultCount === true" > ({{value.number|number}})< / span >
2019-07-15 18:11:07 +02:00
< / div >
2019-07-22 16:15:23 +02:00
2018-07-19 12:52:29 +02:00
< / div >
< / ng-container >
< hr * ngIf = "filter.countSelectedValues > 0 && (filter.values.length-filter.countSelectedValues ) > 0 " class = "uk-grid-divider uk-margin-small" >
< ng-container * ngFor = "let value of getNotSelectedValues(filter, sortBy)" >
< div * ngIf = "filterKeywords(value.name)" class = "uk-animation-fade filterItem" >
2019-07-22 16:15:23 +02:00
2019-07-15 18:11:07 +02:00
< div title = "{{value.name}}" >
< input * ngIf = "!filter.valueIsUnique" [ disabled ] = " isDisabled " [ ( ngModel ) ] = " value . selected " type = "checkbox" ( ngModelChange ) = " close ( ) ; filterChange ( value . selected ) " / >
< input * ngIf = "filter.valueIsUnique" [ disabled ] = " isDisabled " [ ( ngModel ) ] = " value . selected " type = "radio" [ name ] = filter . filterId ( ngModelChange ) = " close ( ) ; filterChange ( value . selected ) " / >
2019-07-22 16:15:23 +02:00
{{' ' + (value.name) + ' '}}
< span * ngIf = "showResultCount === true" > ({{value.number|number}})< / span >
2019-07-15 18:11:07 +02:00
< / div >
2018-07-19 12:52:29 +02:00
< / div >
< / ng-container >
2017-12-19 13:53:46 +01:00
< / div >
< / div >
< / div >
< / div >
< / div >
< / li >
< / ul >