@paris-ias/list 1.0.38 → 1.0.40
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
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<div class="d-flex flex-grow-1 flex-column">
|
|
3
3
|
<v-text-field
|
|
4
4
|
v-model.trim="search"
|
|
5
|
-
:placeholder="$t('list.search-type', [$t(type)])"
|
|
5
|
+
:placeholder="$t('list.search-type', [$t('items.' + type, 2)])"
|
|
6
6
|
prepend-inner-icon="mdi-magnify"
|
|
7
7
|
single-line
|
|
8
8
|
class="transition-swing"
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
$store.state.scrolled }" -->
|
|
18
18
|
<template v-if="!search" #label>
|
|
19
19
|
<div class="searchLabel">
|
|
20
|
-
{{ $t("list.search-type", [$t(type)]) }}
|
|
20
|
+
{{ $t("list.search-type", [$t("item." + type, 2)]) }}
|
|
21
21
|
</div>
|
|
22
22
|
</template>
|
|
23
23
|
</v-text-field>
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
|
|
11
11
|
<template v-else>
|
|
12
12
|
<nuxt-link
|
|
13
|
+
v-slot="{ navigate, isActive }"
|
|
13
14
|
:to="
|
|
14
15
|
link
|
|
15
16
|
? localePath({
|
|
@@ -18,12 +19,14 @@
|
|
|
18
19
|
})
|
|
19
20
|
: null
|
|
20
21
|
"
|
|
22
|
+
custom
|
|
21
23
|
>
|
|
22
24
|
<div class="overflow-hidden mw-100">
|
|
23
25
|
<!-- TODO debug why the picture is not displaying/sizing properly -->
|
|
24
26
|
<v-img
|
|
25
27
|
v-if="src"
|
|
26
28
|
:aspect-ratio="ratio"
|
|
29
|
+
:active="isActive"
|
|
27
30
|
:class="{ 'img-animation': animate }"
|
|
28
31
|
:lazy-src="
|
|
29
32
|
img(computedSrc, {
|
|
@@ -41,6 +44,7 @@
|
|
|
41
44
|
:sizes="_srcset.sizes"
|
|
42
45
|
:title="caption"
|
|
43
46
|
v-bind="$attrs"
|
|
47
|
+
@click="navigate"
|
|
44
48
|
>
|
|
45
49
|
<slot />
|
|
46
50
|
</v-img></div
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineStore } from "pinia";
|
|
2
|
-
import SEARCH from "../graphql/
|
|
2
|
+
import SEARCH from "../graphql/list/search.gql";
|
|
3
3
|
import { useNuxtApp, useRouter, useAsyncQuery } from "#imports";
|
|
4
4
|
export const useRootStore = defineStore("rootStore", {
|
|
5
5
|
state: () => ({
|