@paris-ias/list 1.0.41 → 1.0.42

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.41",
4
+ "version": "1.0.42",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.0",
7
7
  "unbuild": "3.5.0"
@@ -35,17 +35,18 @@
35
35
  </v-btn>
36
36
  <template v-else>
37
37
  <v-btn
38
- :class="{ 'active-page': page.current }"
38
+ :class="{ 'active-page': !!page.current }"
39
39
  tabindex="0"
40
40
  outlined
41
41
  min-width="35"
42
42
  height="35"
43
43
  tile
44
44
  nuxt
45
- :color="page.current ? 'white' : 'black'"
45
+ :active="!!page.current"
46
+ :color="!!page.current ? 'white' : 'black'"
46
47
  text
47
48
  width="35"
48
- :aria-current="page.current ? 'true' : 'false'"
49
+ :aria-current="!!page.current ? 'true' : 'false'"
49
50
  :aria-label="
50
51
  page.current
51
52
  ? `Current page, Page ${page.value}`
@@ -10,14 +10,13 @@
10
10
 
11
11
  <template v-else>
12
12
  <nuxt-link
13
+ v-if="link"
13
14
  v-slot="{ navigate, isActive }"
14
15
  :to="
15
- link
16
- ? localePath({
17
- name: link,
18
- params: { slug },
19
- })
20
- : null
16
+ localePath({
17
+ name: link,
18
+ params: { slug },
19
+ })
21
20
  "
22
21
  custom
23
22
  >
@@ -49,6 +48,32 @@
49
48
  <slot />
50
49
  </v-img></div
51
50
  ></nuxt-link>
51
+ <div v-else class="overflow-hidden mw-100">
52
+ <!-- TODO debug why the picture is not displaying/sizing properly -->
53
+ <v-img
54
+ v-if="src"
55
+ :aspect-ratio="ratio"
56
+ :class="{ 'img-animation': animate }"
57
+ :lazy-src="
58
+ img(computedSrc, {
59
+ width,
60
+ quality: 70,
61
+ })
62
+ "
63
+ :src="
64
+ img(computedSrc, {
65
+ width,
66
+ quality: 70,
67
+ })
68
+ "
69
+ :srcset="_srcset.srcset"
70
+ :sizes="_srcset.sizes"
71
+ :title="caption"
72
+ v-bind="$attrs"
73
+ >
74
+ <slot />
75
+ </v-img>
76
+ </div>
52
77
  </template>
53
78
  </div>
54
79
  </template>
@@ -1,5 +1,5 @@
1
1
  {
2
- "0-1-found-page-2-of-3": "No {1} found. \nPage {2} of {3} | {0} {1} found. \nPage {2} of {3} | {0} {1} found. \nPage {2} of {3} ",
2
+ "applications-closed-since-0": "Applications closed since {0}",
3
3
  "back": "Back",
4
4
  "biography": "Biography",
5
5
  "date-et-heure": "Date and Time",
@@ -1,6 +1,5 @@
1
1
  {
2
- "0-1-found-page-2-of-3": "Aucun {1} trouvé. \n\nPage {2} sur {3} | \n{0} {1} trouvé. \n\nPage {2} sur {3} | \n{0} {1} trouvés. \n\nPage {2} de {3}",
3
- "0-1-found-page-2-of-3-f": "Aucun {1} trouvée. \n\nPage {2} sur {3} | \n{0} {1} trouvée. \n\nPage {2} sur {3} | \n{0} {1} trouvées. \n\nPage {2} de {3}",
2
+ "applications-closed-since-0": "Inscriptions fermées deepuis le {0}",
4
3
  "back": "Retour",
5
4
  "biography": "Biographie",
6
5
  "date-et-heure": "Date et heure",
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.41",
4
+ "version": "1.0.42",
5
5
  "name": "@paris-ias/list",
6
6
  "repository": "IEA-Paris/list",
7
7
  "dependencies": {