@paris-ias/list 1.0.32 → 1.0.33
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.
package/dist/module.json
CHANGED
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
<template
|
|
68
68
|
v-else-if="
|
|
69
69
|
(!$stores[type].search || $stores[type].search.length === 0) &&
|
|
70
|
-
$stores[type]
|
|
70
|
+
$stores[type].filtersCount > 0
|
|
71
71
|
"
|
|
72
72
|
>
|
|
73
73
|
{{
|
|
@@ -90,11 +90,7 @@
|
|
|
90
90
|
"list.0-items-found-with-1-filter",
|
|
91
91
|
[
|
|
92
92
|
$stores[type].total,
|
|
93
|
-
$t(
|
|
94
|
-
"items." + props.type,
|
|
95
|
-
$stores[type].total,
|
|
96
|
-
$stores[type].total
|
|
97
|
-
),
|
|
93
|
+
$t("items." + type, $stores[type].total, $stores[type].total),
|
|
98
94
|
$stores[type].filtersCount,
|
|
99
95
|
$t("filters", $stores[type].filtersCount),
|
|
100
96
|
],
|
|
@@ -116,7 +112,7 @@
|
|
|
116
112
|
"list.0-items-found-searching-for-with-1-filter-f",
|
|
117
113
|
[
|
|
118
114
|
$stores[type].total,
|
|
119
|
-
$t("items." +
|
|
115
|
+
$t("items." + type, $stores[type].total),
|
|
120
116
|
$stores[type].search,
|
|
121
117
|
$stores[type].filtersCount,
|
|
122
118
|
$t("filters", $stores[type].filtersCount),
|
|
@@ -127,7 +123,7 @@
|
|
|
127
123
|
"list.0-items-found-searching-for-with-1-filter",
|
|
128
124
|
[
|
|
129
125
|
$stores[type].total,
|
|
130
|
-
$t("items." +
|
|
126
|
+
$t("items." + type, $stores[type].total),
|
|
131
127
|
$stores[type].search,
|
|
132
128
|
$stores[type].filtersCount,
|
|
133
129
|
$t("filters", $stores[type].filtersCount),
|
|
@@ -152,8 +148,7 @@
|
|
|
152
148
|
</template>
|
|
153
149
|
|
|
154
150
|
<script setup>
|
|
155
|
-
import { ref } from "
|
|
156
|
-
import { useNuxtApp } from "#imports";
|
|
151
|
+
import { useNuxtApp, ref } from "#imports";
|
|
157
152
|
const { $stores } = useNuxtApp();
|
|
158
153
|
const props = defineProps({
|
|
159
154
|
type: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<v-row>
|
|
3
3
|
<v-col
|
|
4
|
-
v-for="(items, type) in
|
|
4
|
+
v-for="(items, type) in related"
|
|
5
5
|
:key="type"
|
|
6
6
|
cols="12"
|
|
7
7
|
md="6"
|
|
@@ -15,26 +15,10 @@
|
|
|
15
15
|
</template>
|
|
16
16
|
|
|
17
17
|
<script setup>
|
|
18
|
-
import { computed } from "#imports";
|
|
19
18
|
const props = defineProps({
|
|
20
19
|
related: {
|
|
21
20
|
type: Object,
|
|
22
21
|
required: true
|
|
23
22
|
}
|
|
24
23
|
});
|
|
25
|
-
const typeMapping = {
|
|
26
|
-
events: "events",
|
|
27
|
-
people: "people",
|
|
28
|
-
news: "news",
|
|
29
|
-
projects: "projects"
|
|
30
|
-
};
|
|
31
|
-
const filteredRelatedItems = computed(() => {
|
|
32
|
-
const result = {};
|
|
33
|
-
for (const key in typeMapping) {
|
|
34
|
-
if (props.related[key] && props.related[key].length > 0) {
|
|
35
|
-
result[typeMapping[key]] = props.related[key];
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
return result;
|
|
39
|
-
});
|
|
40
24
|
</script>
|