@paris-ias/list 1.0.140 → 1.0.142

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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@paris-ias/list",
3
3
  "configKey": "list",
4
- "version": "1.0.140",
4
+ "version": "1.0.142",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "0.8.4",
7
7
  "unbuild": "2.0.0"
@@ -1,93 +1,91 @@
1
1
  <template>
2
- <div class="d-flex flex-grow-1 flex-column">
3
- <div class="d-flex align-center">
4
- <v-text-field
5
- :id="`global-search-input-${type}`"
6
- v-model.trim="search"
7
- :placeholder="
8
- type === 'all'
9
- ? t('search')
10
- : $t('list.search-type', [$t('items.' + type, 2)])
11
- "
12
- prepend-inner-icon="mdi-magnify"
13
- single-line
14
- class="transition-swing flex-grow-1"
15
- variant="outlined"
16
- hide-details
17
- clearable
18
- tile
19
- type="search"
20
- :loading="rootStore.loading"
21
- @keyup.enter="$router.push(localePath('/search'))"
22
- @click:append="$router.push(localePath('/search'))"
23
- >
24
- <!-- :loading="$nuxt.loading || $store.state.loading" :class="{ 'mt-3':
2
+ <div class="d-flex align-center">
3
+ <v-text-field
4
+ :id="`global-search-input-${type}`"
5
+ v-model.trim="search"
6
+ :placeholder="
7
+ type === 'all'
8
+ ? t('search')
9
+ : $t('list.search-type', [$t('items.' + type, 2)])
10
+ "
11
+ prepend-inner-icon="mdi-magnify"
12
+ single-line
13
+ class="transition-swing flex-grow-1"
14
+ variant="outlined"
15
+ hide-details
16
+ clearable
17
+ tile
18
+ type="search"
19
+ :loading="rootStore.loading"
20
+ @keyup.enter="$router.push(localePath('/search'))"
21
+ @click:append="$router.push(localePath('/search'))"
22
+ >
23
+ <!-- :loading="$nuxt.loading || $store.state.loading" :class="{ 'mt-3':
25
24
  $store.state.scrolled }" -->
26
- <template v-if="!search" #label>
27
- <div class="searchLabel">
28
- {{ $t("search") }}
29
- </div>
30
- </template>
31
- </v-text-field>
25
+ <template v-if="!search" #label>
26
+ <div class="searchLabel">
27
+ {{ $t("search") }}
28
+ </div>
29
+ </template>
30
+ </v-text-field>
32
31
 
33
- <v-menu
34
- v-if="filter"
35
- v-model="filterMenuOpen"
36
- :close-on-content-click="false"
37
- location="bottom end"
38
- offset="4"
39
- >
40
- <template #activator="{ props: menuProps }">
41
- <v-btn
42
- v-bind="menuProps"
43
- :rounded="0"
44
- variant="text"
45
- size="large"
46
- height="56"
47
- >
48
- <v-icon>mdi-filter</v-icon>
49
- <v-icon class="ml-1" size="small">
50
- {{ filterMenuOpen ? "mdi-chevron-up" : "mdi-chevron-down" }}
51
- </v-icon>
52
- <v-tooltip activator="parent" location="start">
53
- {{ $t("filter-by-type") }}
54
- </v-tooltip>
55
- </v-btn>
56
- </template>
32
+ <v-menu
33
+ v-if="filter"
34
+ v-model="filterMenuOpen"
35
+ :close-on-content-click="false"
36
+ location="bottom end"
37
+ offset="4"
38
+ >
39
+ <template #activator="{ props: menuProps }">
40
+ <v-btn
41
+ v-bind="menuProps"
42
+ :rounded="0"
43
+ variant="text"
44
+ size="large"
45
+ height="56"
46
+ >
47
+ <v-icon>mdi-filter</v-icon>
48
+ <v-icon class="ml-1" size="small">
49
+ {{ filterMenuOpen ? "mdi-chevron-up" : "mdi-chevron-down" }}
50
+ </v-icon>
51
+ <v-tooltip activator="parent" location="start">
52
+ {{ $t("filter-by-type") }}
53
+ </v-tooltip>
54
+ </v-btn>
55
+ </template>
57
56
 
58
- <v-card min-width="200">
59
- <v-list density="compact">
60
- <v-list-item
61
- v-for="option in filterOptions"
62
- :key="option.value"
63
- @click="toggleFilter(option)"
64
- >
65
- <template #prepend>
66
- <v-checkbox
67
- hide-details
68
- :model-value="categories.includes(option.value)"
69
- @update:model-value="toggleFilter(option)"
70
- />
71
- </template>
72
- <v-list-item-title>{{ option.label }}</v-list-item-title>
73
- </v-list-item>
74
- </v-list>
75
- </v-card>
76
- </v-menu>
77
- <v-btn
78
- :rounded="0"
79
- variant="outlined"
80
- size="large"
81
- height="56"
82
- @keyup.enter="$router.push(localePath('/search'))"
83
- @click="$router.push(localePath('/search'))"
84
- >
85
- <v-icon size="large">mdi-magnify</v-icon>
86
- <v-tooltip activator="parent" location="start">{{
87
- $t("click-here-to-search")
88
- }}</v-tooltip>
89
- </v-btn>
90
- </div>
57
+ <v-card min-width="200">
58
+ <v-list density="compact">
59
+ <v-list-item
60
+ v-for="option in filterOptions"
61
+ :key="option.value"
62
+ @click="toggleFilter(option)"
63
+ >
64
+ <template #prepend>
65
+ <v-checkbox
66
+ hide-details
67
+ :model-value="categories.includes(option.value)"
68
+ @update:model-value="toggleFilter(option)"
69
+ />
70
+ </template>
71
+ <v-list-item-title>{{ option.label }}</v-list-item-title>
72
+ </v-list-item>
73
+ </v-list>
74
+ </v-card>
75
+ </v-menu>
76
+ <v-btn
77
+ :rounded="0"
78
+ variant="outlined"
79
+ size="large"
80
+ height="56"
81
+ @keyup.enter="$router.push(localePath('/search'))"
82
+ @click="$router.push(localePath('/search'))"
83
+ >
84
+ <v-icon size="large">mdi-magnify</v-icon>
85
+ <v-tooltip activator="parent" location="start">{{
86
+ $t("click-here-to-search")
87
+ }}</v-tooltip>
88
+ </v-btn>
91
89
  </div>
92
90
  </template>
93
91
 
@@ -47,7 +47,7 @@
47
47
 
48
48
  <script setup>
49
49
  import { useRootStore } from "../../stores/root"
50
- import { useNuxtApp, useLocalePath } from "#imports"
50
+ import { useNuxtApp, useLocalePath, computed } from "#imports"
51
51
  import { useDisplay } from "vuetify"
52
52
 
53
53
  const { mdAndUp } = useDisplay()
@@ -30,10 +30,7 @@ query listPublications(
30
30
  icon
31
31
  updatedAt
32
32
  }
33
- slug {
34
- fr
35
- en
36
- }
33
+ slug
37
34
  }
38
35
  total
39
36
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "license": "AGPL-3.0-only",
3
3
  "main": "./dist/module.mjs",
4
- "version": "1.0.140",
4
+ "version": "1.0.142",
5
5
  "name": "@paris-ias/list",
6
6
  "repository": {
7
7
  "url": "git+https://github.com/IEA-Paris/list.git",