Skip to content

Commit 888b9a1

Browse files
committed
Autogenerated documentation files
1 parent 06c2d6b commit 888b9a1

File tree

3 files changed

+85
-49
lines changed

3 files changed

+85
-49
lines changed

documentation/html/components_Records_Search_Header_FilterChips.vue.html

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,18 +92,21 @@ <h1 class="page-title">Source: components/Records/Search/Header/FilterChips.vue<
9292
<article>
9393
<pre
9494
class="sunlight-highlight-javascript linenums">&lt;template>
95-
&lt;v-row class="mr-2 ml-2 pb-3">
95+
&lt;v-row class="mr-2 ml-2 align-center">
9696
&lt;v-chip
9797
v-if="getChips.length"
98-
class="ma-2 mt-5 bg-red text-white"
98+
class="text-white mr-4"
99+
color="red"
100+
variant="flat"
99101
@click="removeAllParams"
100102
>
101103
Clear All
102104
&lt;/v-chip>
103105
&lt;v-chip-group v-for="chip in getChips" :key="'Chips_' + chip.paramVal">
104106
&lt;v-chip
105-
class="ma-2 mt-5 bg-white text-secondary"
107+
class="bg-white text-secondary"
106108
closable
109+
variant="outlined"
107110
@click:close="removeParam(chip.paramName, chip.paramVal)"
108111
>
109112
{{ getFilteredLabel[chip.paramName] }}:&lt;b class="ml-1">
@@ -186,7 +189,8 @@ <h1 class="page-title">Source: components/Records/Search/Header/FilterChips.vue<
186189
Object.keys(_module.$route.query).forEach(function (queryParam) {
187190
if (queryParam !== paramName) {
188191
query[queryParam] = _module.$route.query[queryParam];
189-
} else {
192+
}
193+
else {
190194
if (_module.$route.query[queryParam].includes(",")) {
191195
let currentValues = _module.$route.query[queryParam].split(",");
192196
if (currentValues.includes(paramVal)) {

documentation/html/components_Records_Search_Input_FilterAutocomplete.vue.html

Lines changed: 76 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -93,53 +93,75 @@ <h1 class="page-title">Source: components/Records/Search/Input/FilterAutocomplet
9393
<pre
9494
class="sunlight-highlight-javascript linenums">&lt;template>
9595
&lt;v-expansion-panel
96-
v-if="filter.filterName"
97-
:id="filter.filterName + 'AutocompleteList'"
96+
v-if="filter.filterName"
97+
:id="filter.filterName + 'AutocompleteList'"
9898
>
9999
&lt;v-expansion-panel-title> {{ filter.filterLabel }}&lt;/v-expansion-panel-title>
100100

101101
&lt;v-expansion-panel-text class="pl-5 pr-5">
102102
&lt;v-row no-gutters>
103103
&lt;v-col cols="12">
104104
&lt;div
105-
:class="['d-flex', { 'flex-column': $vuetify.display.mdAndDown }]"
105+
:class="['d-flex', { 'flex-column': $vuetify.display.mdAndDown }]"
106106
>
107107
&lt;v-combobox
108-
v-model="selectedValues"
109-
:item-props="itemProps"
110-
:items="getValues"
111-
:placeholder="`Search`"
112-
chips
113-
class="text-capitalize"
114-
closable-chips
115-
color="primary"
116-
density="compact"
117-
hide-details="auto"
118-
hide-no-data
119-
multiple
120-
prepend-inner-icon="fas fa-search"
121-
variant="solo"
122-
@focus="scrollTo(filter.filterName)"
123-
@click:clear="reset(filter)"
108+
v-model="selectedValues"
109+
:items="getValues"
110+
:menu-props="{ maxWidth: '50' }"
111+
chips
112+
class="text-capitalize"
113+
clearable
114+
closable-chips
115+
color="primary"
116+
density="compact"
117+
hide-details="auto"
118+
hide-no-data
119+
item-title="key"
120+
item-value="key"
121+
multiple
122+
placeholder="Search"
123+
prepend-inner-icon="fas fa-search"
124+
return-object
125+
variant="solo"
126+
@focus="scrollTo(filter.filterName)"
127+
@click:clear="reset(filter)"
124128
>
125-
&lt;!-- &lt;template #selection="data">-->
126-
&lt;!-- &lt;v-chip class="bg-blue text-white mb-1">-->
127-
&lt;!-- &lt;span class="chipsValueName">-->
128-
&lt;!-- {{ cleanString(data.item.raw.key) }}-->
129-
&lt;!-- &lt;/span>-->
130-
&lt;!-- &lt;/v-chip>-->
131-
&lt;!-- &lt;/template>-->
132-
&lt;!-- &lt;template #item="data">-->
133-
&lt;!-- &lt;div class="d-flex full-width">-->
134-
&lt;!-- &lt;span class="filterValueName"> {{ cleanString(data.item.raw.key) }}&lt;/span>-->
135-
&lt;!-- &lt;span class="filterValueCount"> {{ data.item.raw['doc_count'] }}&lt;/span>-->
136-
&lt;!-- &lt;/div>-->
137-
&lt;!-- &lt;/template>-->
129+
&lt;template #chip="{ props, item }">
130+
&lt;v-chip color="blue" v-bind="props" variant="flat">
131+
{{ item.title.replace(/_/g, " ") }}
132+
&lt;v-tooltip activator="parent" location="bottom">
133+
{{ item.title.replace(/_/g, " ") }}
134+
&lt;/v-tooltip>
135+
&lt;/v-chip>
136+
&lt;/template>
137+
138+
&lt;template #item="{ props, item }">
139+
&lt;v-list-item v-bind="props">
140+
&lt;template #prepend="{ isActive }">
141+
&lt;v-list-item-action start>
142+
&lt;v-checkbox-btn
143+
:model-value="isActive"
144+
readonly
145+
>&lt;/v-checkbox-btn>
146+
&lt;/v-list-item-action>
147+
&lt;/template>
148+
149+
&lt;span v-if="item.raw.key" class="text-capitalize">
150+
{{ item.raw.key.replace(/_/g, " ") }}
151+
&lt;/span>
152+
153+
&lt;template #append>
154+
&lt;span class="filterValueCount">{{
155+
item.raw.doc_count
156+
}}&lt;/span>
157+
&lt;/template>
158+
&lt;/v-list-item>
159+
&lt;/template>
138160
&lt;/v-combobox>
139161
&lt;v-btn
140-
class="ml-lg-2 custom-btn"
141-
color="primary"
142-
@click="applyFilters(filter)"
162+
class="ml-lg-2 custom-btn"
163+
color="primary"
164+
@click="applyFilters(filter)"
143165
>
144166
Apply
145167
&lt;/v-btn>
@@ -151,17 +173,17 @@ <h1 class="page-title">Source: components/Records/Search/Input/FilterAutocomplet
151173
&lt;/template>
152174

153175
&lt;script>
154-
import {mapGetters, mapState} from "vuex";
176+
import { mapGetters, mapState } from "vuex";
155177

156178
import clearString from "@/utils/stringUtils";
157-
import {capitalize} from "lodash";
179+
import { capitalize } from "lodash";
158180

159181
export default {
160182
name: "FilterAutocomplete",
161183
mixins: [clearString],
162184
props: {
163-
filter: {default: null, type: Object},
164-
lastItem: {default: false, type: Boolean},
185+
filter: { default: null, type: Object },
186+
lastItem: { default: false, type: Boolean },
165187
},
166188
data: () => {
167189
return {
@@ -189,11 +211,11 @@ <h1 class="page-title">Source: components/Records/Search/Input/FilterAutocomplet
189211
let filterName = _module.filter.filterName;
190212
let currentParams = JSON.parse(JSON.stringify(_module.$route.query));
191213

192-
_module.selectedValues = _module.selectedValues.map(({key}) => key);
214+
_module.selectedValues = _module.selectedValues.map(({ key }) => key);
193215
if (Object.keys(currentParams).indexOf(filterName) === -1) {
194216
if (
195217
_module.selectedValues !== null &amp;&amp;
196-
_module.selectedValues.length > 0
218+
_module.selectedValues.length > 0
197219
) {
198220
if (_module.selectedValues.length === 1) {
199221
currentParams[filterName] = encodeURIComponent(
@@ -217,7 +239,7 @@ <h1 class="page-title">Source: components/Records/Search/Input/FilterAutocomplet
217239
else {
218240
if (
219241
_module.selectedValues === null ||
220-
_module.selectedValues.length === 0
242+
_module.selectedValues.length === 0
221243
) {
222244
delete currentParams[_module.filter.filterName];
223245
currentParams["page"] = 1;
@@ -229,7 +251,7 @@ <h1 class="page-title">Source: components/Records/Search/Input/FilterAutocomplet
229251
else {
230252
let newParams = [];
231253
let existingValues =
232-
currentParams[_module.filter.filterName].split(",");
254+
currentParams[_module.filter.filterName].split(",");
233255
_module.selectedValues.forEach(function (selectedValue) {
234256
const filterVal = encodeURIComponent(selectedValue);
235257
if (existingValues.indexOf(filterVal) === -1) {
@@ -274,7 +296,7 @@ <h1 class="page-title">Source: components/Records/Search/Input/FilterAutocomplet
274296
};
275297
&lt;/script>
276298

277-
&lt;style scoped>
299+
&lt;style lang="scss" scoped>
278300
.filterValueName {
279301
text-overflow: ellipsis;
280302
overflow: hidden;
@@ -298,6 +320,16 @@ <h1 class="page-title">Source: components/Records/Search/Input/FilterAutocomplet
298320
.custom-btn {
299321
height: 38px;
300322
}
323+
324+
.v-field {
325+
.v-chip {
326+
height: inherit;
327+
}
328+
}
329+
330+
:deep(.v-list-item-title) {
331+
display: none;
332+
}
301333
&lt;/style>
302334
</pre>
303335
</article>

documentation/html/quicksearch.html

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)