2019-10-03 16:54:05 +00:00
|
|
|
<template>
|
2019-10-04 17:00:31 +00:00
|
|
|
<!-- <span>property: {{ filterName }}</span>
|
|
|
|
<span>value: {{ myLanguageFilters }}</span>-->
|
2019-10-03 16:54:05 +00:00
|
|
|
|
2019-10-04 17:00:31 +00:00
|
|
|
<div class="panel panel-primary">
|
|
|
|
<h3 class="panel-title filterViewModelName">{{ filterName }}</h3>
|
|
|
|
<!-- e.g.language -->
|
2019-10-10 10:58:13 +00:00
|
|
|
<ul class="filter-items" v-bind:class="{'limited':filterItems.length > 1 && collapsed }">
|
|
|
|
<li v-for="(item, index) in filterItems" :key="index" class="list-group-item">
|
|
|
|
<!-- <input
|
2019-10-04 17:00:31 +00:00
|
|
|
class="css-w1gpbi"
|
|
|
|
name="language"
|
2019-10-10 10:58:13 +00:00
|
|
|
v-bind:id="item.value"
|
2019-10-04 17:00:31 +00:00
|
|
|
type="radio"
|
2019-10-10 10:58:13 +00:00
|
|
|
v-bind:value="item.value"
|
2019-10-04 17:00:31 +00:00
|
|
|
/>
|
2019-10-10 10:58:13 +00:00
|
|
|
<label :for="item.value">
|
|
|
|
<span click: @click="activateItem(item)">{{ item.value }} ({{ item.count }})</span>
|
|
|
|
</label>-->
|
2019-10-15 11:52:52 +00:00
|
|
|
<a :class="item.Active ? 'disabled' : ''" @click.prevent="activateItem(item)">{{ item.value }} ({{ item.count }})</a>
|
2019-10-04 17:00:31 +00:00
|
|
|
</li>
|
|
|
|
</ul>
|
2019-10-10 10:58:13 +00:00
|
|
|
<ul class="overflowing" v-if="overflowing == true">
|
2019-10-04 17:00:31 +00:00
|
|
|
<li>
|
2019-10-10 10:58:13 +00:00
|
|
|
<span @click="toggle()">{{ uncollapseLabelText }}</span>
|
2019-10-04 17:00:31 +00:00
|
|
|
</li>
|
|
|
|
</ul>
|
2019-10-03 16:54:05 +00:00
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts">
|
|
|
|
import FacetList from "./facet-list-class";
|
|
|
|
export default FacetList;
|
2019-10-10 10:58:13 +00:00
|
|
|
</script>
|
|
|
|
|
|
|
|
<style scoped>
|
|
|
|
/* local styles */
|
|
|
|
.disabled {
|
2019-10-15 11:52:52 +00:00
|
|
|
/* color: #EBEBE4; */
|
2019-10-18 15:05:56 +00:00
|
|
|
color:lightgray;
|
2019-10-10 10:58:13 +00:00
|
|
|
pointer-events: none;
|
2019-10-15 11:52:52 +00:00
|
|
|
text-decoration:line-through;
|
2019-10-10 10:58:13 +00:00
|
|
|
}
|
|
|
|
</style>
|