itube-specs 0.0.381 → 0.0.382
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
</template>
|
|
35
35
|
|
|
36
36
|
<script setup lang="ts">
|
|
37
|
-
import type { ButtonSizes, ButtonThemes } from '
|
|
37
|
+
import type { ButtonSizes, ButtonThemes } from '../../types';
|
|
38
38
|
|
|
39
39
|
const props = defineProps<{
|
|
40
40
|
count: number
|
|
@@ -50,7 +50,7 @@ const emit = defineEmits<{
|
|
|
50
50
|
const { t } = useI18n()
|
|
51
51
|
|
|
52
52
|
const buttonName = computed(() => {
|
|
53
|
-
return props.count > 0 ? t('plural.
|
|
53
|
+
return props.count > 0 ? t('plural.filter', props.count) : t('filter');
|
|
54
54
|
})
|
|
55
55
|
|
|
56
56
|
function resetFilter() {
|
|
@@ -57,22 +57,6 @@
|
|
|
57
57
|
</div>
|
|
58
58
|
</details>
|
|
59
59
|
</div>
|
|
60
|
-
<div class="s-filter-page__footer _from-sm">
|
|
61
|
-
<p class="s-filter-page__footer-results">
|
|
62
|
-
<SIcon name="filter" size="24"/>
|
|
63
|
-
<span class="s-filter-page__footer-text">{{ `${count} ${t('results_found')}` }}</span>
|
|
64
|
-
</p>
|
|
65
|
-
<div class="s-filter-page__footer-buttons">
|
|
66
|
-
<SButton
|
|
67
|
-
wide
|
|
68
|
-
class="s-filter-page__reset"
|
|
69
|
-
:disabled="!isFiltered"
|
|
70
|
-
@click="onResetClick"
|
|
71
|
-
theme="secondary"
|
|
72
|
-
>{{ t('reset_all') }}
|
|
73
|
-
</SButton>
|
|
74
|
-
</div>
|
|
75
|
-
</div>
|
|
76
60
|
</div>
|
|
77
61
|
</template>
|
|
78
62
|
|
|
@@ -100,8 +84,6 @@ const groups = computed(() => {
|
|
|
100
84
|
}).sort((a, b) => a?.order - b?.order)
|
|
101
85
|
});
|
|
102
86
|
|
|
103
|
-
const isFiltered = computed(() => Object.keys(route.query).some(item => item.startsWith('filter')));
|
|
104
|
-
|
|
105
87
|
function selectItems(item: IModelFilter) {
|
|
106
88
|
return [
|
|
107
89
|
...item.options.map(item => ({
|
|
@@ -111,10 +93,6 @@ function selectItems(item: IModelFilter) {
|
|
|
111
93
|
]
|
|
112
94
|
}
|
|
113
95
|
|
|
114
|
-
function onResetClick() {
|
|
115
|
-
router.replace({ query: {} });
|
|
116
|
-
}
|
|
117
|
-
|
|
118
96
|
function getRangeInfo(options: { name: string; quantity: number; title: string }[]): {
|
|
119
97
|
min: number,
|
|
120
98
|
step: number,
|
|
@@ -3,13 +3,6 @@
|
|
|
3
3
|
:items="chipsItems"
|
|
4
4
|
@click="(e: IChipsItem)=> onChipsClick(e)"
|
|
5
5
|
/>
|
|
6
|
-
<SFilterPage
|
|
7
|
-
class="s-model-filters__filters _from-sm"
|
|
8
|
-
:filters="data.filters"
|
|
9
|
-
:count="data.total"
|
|
10
|
-
:class="{'_loading': status === 'pending'}"
|
|
11
|
-
:title="title"
|
|
12
|
-
/>
|
|
13
6
|
<transition>
|
|
14
7
|
<SPopup
|
|
15
8
|
v-if="model"
|
|
@@ -19,13 +12,17 @@
|
|
|
19
12
|
>
|
|
20
13
|
<template #title>{{ popupTitle }}</template>
|
|
21
14
|
<SFilterPage
|
|
22
|
-
class="s-model-filters__filters
|
|
15
|
+
class="s-model-filters__filters"
|
|
23
16
|
:filters="data.filters"
|
|
24
17
|
:count="data.total"
|
|
25
18
|
:class="{'_loading': status === 'pending'}"
|
|
26
19
|
/>
|
|
27
20
|
<template #footer>
|
|
28
|
-
<
|
|
21
|
+
<p class="s-model-filters__footer-results _from-sm">
|
|
22
|
+
<SIcon name="filter" size="24"/>
|
|
23
|
+
<span>{{ `${data.total} ${t('results_found')}` }}</span>
|
|
24
|
+
</p>
|
|
25
|
+
<div class="s-model-filters__footer-buttons">
|
|
29
26
|
<SButton
|
|
30
27
|
wide
|
|
31
28
|
class="s-model-filters__reset"
|
|
@@ -36,7 +33,6 @@
|
|
|
36
33
|
</SButton>
|
|
37
34
|
<SButton
|
|
38
35
|
wide
|
|
39
|
-
class="_to-sm"
|
|
40
36
|
@click="onShowClick"
|
|
41
37
|
>{{ `${t('show_results')} (${data.total})` }}
|
|
42
38
|
</SButton>
|