@paris-ias/list 1.0.28 → 1.0.29

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.28",
4
+ "version": "1.0.29",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.0",
7
7
  "unbuild": "3.5.0"
@@ -1,11 +1,7 @@
1
1
  <template>
2
2
  <div class="">
3
3
  <v-row>
4
- <v-col
5
- v-if="mdAndUp"
6
- cols="12"
7
- md="3"
8
- >
4
+ <v-col v-if="mdAndUp" cols="12" md="3">
9
5
  <MiscAtomsImageContainer
10
6
  cover
11
7
  :src="
@@ -42,10 +38,7 @@
42
38
  {{ item.name }}
43
39
  </div>
44
40
 
45
- <v-divider
46
- width="154px"
47
- class="mb-1 mt-6"
48
- />
41
+ <v-divider width="154px" class="mb-1 mt-6" />
49
42
  <v-divider width="154px" />
50
43
 
51
44
  <div
@@ -65,10 +58,7 @@
65
58
  <!-- <EventsBadges :item="item" /> -->
66
59
  </div>
67
60
 
68
- <v-divider
69
- width="154px"
70
- class="mb-1 mt-6"
71
- />
61
+ <v-divider width="154px" class="mb-1 mt-6" />
72
62
  <v-divider width="154px" />
73
63
  </div>
74
64
  </template>
@@ -76,12 +66,7 @@
76
66
  </v-row>
77
67
 
78
68
  <v-row class="mt-md-3 mt-lg-10 mt-xl-12">
79
- <v-col
80
- v-if="mdAndUp"
81
- class="d-flex flex-column"
82
- cols="12"
83
- md="3"
84
- >
69
+ <v-col v-if="mdAndUp" class="d-flex flex-column" cols="12" md="3">
85
70
  <v-skeleton-loader
86
71
  v-if="loading"
87
72
  height="100%"
@@ -129,10 +114,7 @@
129
114
  style="height: auto"
130
115
  >
131
116
  <template #append>
132
- <v-icon
133
- class="text-green"
134
- size="x-large"
135
- >
117
+ <v-icon class="text-green" size="x-large">
136
118
  mdi-circle-medium
137
119
  </v-icon>
138
120
  </template>
@@ -154,26 +136,16 @@
154
136
  :value="file"
155
137
  >
156
138
  <template #prepend>
157
- <v-icon
158
- v-if="mdAndUp"
159
- :icon="getFileIcon(file.url)"
160
- />
139
+ <v-icon v-if="mdAndUp" :icon="getFileIcon(file.url)" />
161
140
  </template>
162
- <v-list-item-title
163
- class="text-wrap"
164
- v-text="file.name"
165
- />
141
+ <v-list-item-title class="text-wrap" v-text="file.name" />
166
142
  </v-list-item>
167
143
  </v-list>
168
144
  </v-sheet>
169
145
  </template>
170
146
  </v-col>
171
147
 
172
- <v-col
173
- v-if="sm"
174
- class="d-flex flex-row"
175
- cols="12"
176
- >
148
+ <v-col v-if="sm" class="d-flex flex-row" cols="12">
177
149
  <v-row class="ml-sm-1">
178
150
  <v-col cols="6">
179
151
  <MiscAtomsImageContainer
@@ -188,19 +160,12 @@
188
160
  v-if="loading"
189
161
  type="heading, subtitle, heading, subtitle, ossein, button"
190
162
  />
191
- <EventsDateTimePlace
192
- v-else
193
- :item="item"
194
- />
163
+ <EventsDateTimePlace v-else :item="item" />
195
164
  </v-col>
196
165
  </v-row>
197
166
  </v-col>
198
167
 
199
- <v-col
200
- v-if="xs"
201
- class="ml-2"
202
- cols="12"
203
- >
168
+ <v-col v-if="xs" class="ml-2" cols="12">
204
169
  <MiscAtomsImageContainer
205
170
  cover
206
171
  :src="item.image.url ? item.image : '/default.png'"
@@ -209,26 +174,15 @@
209
174
  />
210
175
  </v-col>
211
176
 
212
- <v-col
213
- v-if="xs"
214
- class="ml-2"
215
- cols="12"
216
- >
177
+ <v-col v-if="xs" class="ml-2" cols="12">
217
178
  <v-skeleton-loader
218
179
  v-if="loading"
219
180
  type="heading, subtitle, heading, subtitle, ossein, button"
220
181
  />
221
- <EventsDateTimePlace
222
- v-else
223
- :item="item"
224
- />
182
+ <EventsDateTimePlace v-else :item="item" />
225
183
  </v-col>
226
184
 
227
- <v-col
228
- cols="12"
229
- md="9"
230
- class="px-0"
231
- >
185
+ <v-col cols="12" md="9" class="px-0">
232
186
  <v-skeleton-loader
233
187
  v-if="loading"
234
188
  :type="
@@ -272,10 +226,7 @@
272
226
  class="py-2"
273
227
  style="white-space: pre; text-wrap: auto"
274
228
  >
275
- <MDC
276
- v-if="item.description"
277
- :value="item.description"
278
- />
229
+ <MDC v-if="item.description" :value="item.description" />
279
230
  </v-expansion-panel-text>
280
231
  </v-expansion-panel>
281
232
 
@@ -293,10 +244,7 @@
293
244
  {{ $t("programme") }}
294
245
  </v-expansion-panel-title>
295
246
  <v-expansion-panel-text>
296
- <MDC
297
- v-if="item.program"
298
- :value="item.program"
299
- />
247
+ <MDC v-if="item.program" :value="item.program" />
300
248
 
301
249
  >
302
250
  </v-expansion-panel-text>
@@ -319,10 +267,7 @@
319
267
  class="border-thin text-black"
320
268
  :color="key === accordeon ? 'light-grey' : 'white'"
321
269
  >
322
- <MDC
323
- v-if="item.details"
324
- :value="item.details"
325
- />
270
+ <MDC v-if="item.details" :value="item.details" />
326
271
  </v-expansion-panel-text>
327
272
  </v-expansion-panel>
328
273
  </v-expansion-panels>
@@ -332,10 +277,7 @@
332
277
  </v-row>
333
278
 
334
279
  <!-- DIVIDERS -->
335
- <v-responsive
336
- class="mx-auto my-9"
337
- width="120"
338
- >
280
+ <v-responsive class="mx-auto my-9" width="120">
339
281
  <v-divider class="mb-1" />
340
282
  <v-divider />
341
283
  </v-responsive>
@@ -352,10 +294,7 @@
352
294
  {{ $t("gallery") }}
353
295
  </div>
354
296
  </MiscAtomsSlidingCarousel> -->
355
- <v-responsive
356
- class="mx-auto my-9"
357
- width="120"
358
- >
297
+ <v-responsive class="mx-auto my-9" width="120">
359
298
  <v-divider class="mb-1" />
360
299
  <v-divider />
361
300
  </v-responsive>
@@ -370,6 +309,7 @@
370
309
  import { useDisplay } from "vuetify";
371
310
  import { useRouter } from "vue-router";
372
311
  import getFileIcon from "../../composables/useIcons";
312
+ import { getLocalizedDate } from "../../composables/useUtils";
373
313
  import { ref } from "#imports";
374
314
  const { name, mdAndUp, sm, xs } = useDisplay();
375
315
  const router = useRouter();
@@ -23,7 +23,8 @@
23
23
  </template>
24
24
 
25
25
  <script setup>
26
- import { computed } from "vue";
26
+ import { getLocalizedDate } from "../../composables/useUtils";
27
+ import { computed } from "#imports";
27
28
  const props = defineProps({
28
29
  item: { type: Object, required: true },
29
30
  view: { type: Boolean, required: false, default: false }
@@ -7,10 +7,8 @@
7
7
  :variant="view ? 'outlined' : 'text'"
8
8
  class="text-overline"
9
9
  >
10
- {{
11
- $t("register-until-0", [getLocalizedDate(item.applicationStop)])
12
- }}</v-btn
13
- >
10
+ {{ $t("register-until-0", [getLocalizedDate(item.applicationStop)]) }}
11
+ </v-btn>
14
12
  </template>
15
13
 
16
14
  <template #default="{ isActive }">
@@ -35,6 +33,7 @@
35
33
  </template>
36
34
 
37
35
  <script setup>
36
+ import { getLocalizedDate } from "../../composables/useUtils";
38
37
  const props = defineProps({
39
38
  item: { type: Object, required: true },
40
39
  view: { type: Boolean, required: false, default: false }
@@ -85,7 +85,7 @@
85
85
  <script setup>
86
86
  import { useDisplay } from "vuetify";
87
87
  import { useRootStore } from "../../stores/root";
88
- import { useRouter, useLocalePath } from "#imports";
88
+ import { useRouter, useLocalePath, useI18n } from "#imports";
89
89
  const { locale } = useI18n();
90
90
  const { name } = useDisplay();
91
91
  const rootStore = useRootStore();
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.28",
4
+ "version": "1.0.29",
5
5
  "name": "@paris-ias/list",
6
6
  "repository": "IEA-Paris/list",
7
7
  "dependencies": {