@paris-ias/list 1.0.89 → 1.0.90

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.89",
4
+ "version": "1.0.90",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.0",
7
7
  "unbuild": "3.5.0"
@@ -0,0 +1,49 @@
1
+ <template>
2
+ <v-sheet class="d-flex sliding-item flex-md-row flex-column px-6">
3
+ <MiscAtomsDateStamp
4
+ :date-start="item.start"
5
+ :date-stop="item.stop"
6
+ :loading="loading"
7
+ class="mr-4 mb-6 mb-md-0"
8
+ style="min-width: 70px"
9
+ />
10
+ <div
11
+ class="d-flex flex-column"
12
+ :style="
13
+ 'min-width:' +
14
+ [250, 300, 350, 380, 430, 460][
15
+ ['xs', 'sm', 'md', 'lg', 'xl', 'xxl'].indexOf(name || 'md')
16
+ ] +
17
+ 'px!important;'
18
+ "
19
+ >
20
+ <MiscAtomsImageContainer
21
+ cover
22
+ :ratio="1"
23
+ :src="item.image"
24
+ link="activities-events-slug"
25
+ :slug="item.id"
26
+ :loading="loading"
27
+ />
28
+ <a
29
+ class="mt-6 pl-0 text-h5 text-md-h4 font-weight-medium sliding-item-title cursor-pointer"
30
+ :href="
31
+ localePath('activities-events-slug', {
32
+ slug: item.id,
33
+ })
34
+ "
35
+ >
36
+ {{ item.name }}
37
+ </a>
38
+ </div>
39
+ </v-sheet>
40
+ </template>
41
+
42
+ <script setup>
43
+ import { useDisplay } from "vuetify";
44
+ const { name } = useDisplay();
45
+ const props = defineProps({
46
+ item: { type: Object, required: true },
47
+ loading: { type: Boolean, required: true, default: false }
48
+ });
49
+ </script>
@@ -18,7 +18,7 @@
18
18
  <v-btn
19
19
  icon="mdi-open-in-new"
20
20
  variant="text"
21
- :to="localePath(getPath(item.slug[locale]))"
21
+ :to="localePath(getPath((item.slug && item.slug[locale]) || item.id))"
22
22
  target="_blank"
23
23
  />
24
24
  </template>
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.89",
4
+ "version": "1.0.90",
5
5
  "name": "@paris-ias/list",
6
6
  "repository": {
7
7
  "url": "git+https://github.com/IEA-Paris/list.git",