blob: 579e9eb2e1ea09b5c6563aaa7e82322198c97a6c [file] [log] [blame]
{{!
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
}}
<div class="field-name" {{action "toggleValueDisplay"}} title={{data.column.headerTitle}}>
<div class="field-title">{{data.column.headerTitle}}</div>
<div class="field-count">({{data.facets.length}})</div>
<a class="all-button" title={{allButtonTitle}} {{action "selectAll" bubbles=false}}>All</a>
</div>
<ul class="value-list">
{{input type="text" class="filter-box" value=filterText placeholder="Filter"}}
{{#if showPagination}}
<div class="pagination-controls">
{{currentPage}}/{{totalPages}}
<div class="arrows">
<span {{action "changePage" -1}} class="{{if showPrevious 'active'}}">&#9668;</span>
<span {{action "changePage" 1}} class="{{if showNext 'active'}}">&#9658;</span>
</div>
</div>
{{/if}}
{{#each paginatedFacets key="value" as |facet index|}}
<li title={{facet.displayText}}>
<div class="checkbox-container">
<input type="checkbox" checked={{facet.checked}} onclick={{action "clickedCheckbox" facet}} />
</div>
<div class="facet-value">{{facet.displayText}}</div>
<a class="only-button" {{action "clickedOnly" facet}}>only</a>
<a class="facet-count">{{facet.count}}</a>
</li>
{{else}}
<span class="filter-message">No fields!</span>
{{/each}}
</ul>