@paris-ias/list 1.0.19 → 1.0.20

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.19",
4
+ "version": "1.0.20",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.0",
7
7
  "unbuild": "3.5.0"
@@ -41,8 +41,8 @@
41
41
  >Afficher une carte plus grande</a
42
42
  ></small
43
43
  >
44
- ></v-responsive
45
- >
44
+ >
45
+ </v-responsive>
46
46
  </v-expand-transition>
47
47
  <br />
48
48
  <v-btn
@@ -56,6 +56,7 @@
56
56
  </template>
57
57
 
58
58
  <script setup>
59
+ import { ref } from "vue";
59
60
  import { getDetailedFormatedDate } from "../../composables/useUtils";
60
61
  const { locale } = useI18n();
61
62
  const props = defineProps({
@@ -1,7 +1,11 @@
1
1
  <template>
2
2
  <div class="">
3
3
  <v-row>
4
- <v-col v-if="mdAndUp" cols="12" md="3">
4
+ <v-col
5
+ v-if="mdAndUp"
6
+ cols="12"
7
+ md="3"
8
+ >
5
9
  <MiscAtomsImageContainer
6
10
  cover
7
11
  :src="
@@ -38,7 +42,10 @@
38
42
  {{ item.name }}
39
43
  </div>
40
44
 
41
- <v-divider width="154px" class="mb-1 mt-6" />
45
+ <v-divider
46
+ width="154px"
47
+ class="mb-1 mt-6"
48
+ />
42
49
  <v-divider width="154px" />
43
50
 
44
51
  <div
@@ -58,7 +65,10 @@
58
65
  <!-- <EventsBadges :item="item" /> -->
59
66
  </div>
60
67
 
61
- <v-divider width="154px" class="mb-1 mt-6" />
68
+ <v-divider
69
+ width="154px"
70
+ class="mb-1 mt-6"
71
+ />
62
72
  <v-divider width="154px" />
63
73
  </div>
64
74
  </template>
@@ -66,7 +76,12 @@
66
76
  </v-row>
67
77
 
68
78
  <v-row class="mt-md-3 mt-lg-10 mt-xl-12">
69
- <v-col v-if="mdAndUp" class="d-flex flex-column" cols="12" md="3">
79
+ <v-col
80
+ v-if="mdAndUp"
81
+ class="d-flex flex-column"
82
+ cols="12"
83
+ md="3"
84
+ >
70
85
  <v-skeleton-loader
71
86
  v-if="loading"
72
87
  height="100%"
@@ -93,8 +108,8 @@
93
108
  </div>
94
109
  <div class="mt-md-4">
95
110
  {{ $t("inscription-gratuite-et-obligatoire") }}
96
- </div></template
97
- >
111
+ </div>
112
+ </template>
98
113
  </div>
99
114
  </div>
100
115
 
@@ -103,8 +118,8 @@
103
118
  v-if="!loading && bookingState === 'OPEN'"
104
119
  :item="item"
105
120
  >
106
- <template #activator="activatorProps"
107
- ><v-btn
121
+ <template #activator="activatorProps">
122
+ <v-btn
108
123
  color="grey-lighten-3"
109
124
  v-bind="activatorProps"
110
125
  flat
@@ -114,21 +129,26 @@
114
129
  style="height: auto"
115
130
  >
116
131
  <template #append>
117
- <v-icon class="text-green" size="x-large">
118
- mdi-circle-medium</v-icon
132
+ <v-icon
133
+ class="text-green"
134
+ size="x-large"
119
135
  >
136
+ mdi-circle-medium
137
+ </v-icon>
120
138
  </template>
121
139
  {{ $t("inscription-ouverte") }}
122
- </v-btn></template
123
- >
140
+ </v-btn>
141
+ </template>
124
142
  </EventsRegisterModal>
125
143
  </div>
126
144
 
127
145
  <v-sheet class="mt-md-0 mt-lg-2 mt-xl-4">
128
146
  <v-list v-if="!loading && item.files && item.files.length">
129
- <v-list-subheader class="text-overline font-weight-bold">{{
130
- $t("document")
131
- }}</v-list-subheader>
147
+ <v-list-subheader class="text-overline font-weight-bold">
148
+ {{
149
+ $t("document")
150
+ }}
151
+ </v-list-subheader>
132
152
 
133
153
  <v-list-item
134
154
  v-for="(file, i) in item.files"
@@ -136,16 +156,26 @@
136
156
  :value="file"
137
157
  >
138
158
  <template #prepend>
139
- <v-icon v-if="mdAndUp" :icon="getFileIcon(file.url)" />
159
+ <v-icon
160
+ v-if="mdAndUp"
161
+ :icon="getFileIcon(file.url)"
162
+ />
140
163
  </template>
141
- <v-list-item-title class="text-wrap" v-text="file.name" />
164
+ <v-list-item-title
165
+ class="text-wrap"
166
+ v-text="file.name"
167
+ />
142
168
  </v-list-item>
143
169
  </v-list>
144
170
  </v-sheet>
145
171
  </template>
146
172
  </v-col>
147
173
 
148
- <v-col v-if="sm" class="d-flex flex-row" cols="12">
174
+ <v-col
175
+ v-if="sm"
176
+ class="d-flex flex-row"
177
+ cols="12"
178
+ >
149
179
  <v-row class="ml-sm-1">
150
180
  <v-col cols="6">
151
181
  <MiscAtomsImageContainer
@@ -160,12 +190,19 @@
160
190
  v-if="loading"
161
191
  type="heading, subtitle, heading, subtitle, ossein, button"
162
192
  />
163
- <EventsDateTimePlace v-else :item="item" />
193
+ <EventsDateTimePlace
194
+ v-else
195
+ :item="item"
196
+ />
164
197
  </v-col>
165
198
  </v-row>
166
199
  </v-col>
167
200
 
168
- <v-col v-if="xs" class="ml-2" cols="12">
201
+ <v-col
202
+ v-if="xs"
203
+ class="ml-2"
204
+ cols="12"
205
+ >
169
206
  <MiscAtomsImageContainer
170
207
  cover
171
208
  :src="item.image.url ? item.image : '/default.png'"
@@ -174,15 +211,26 @@
174
211
  />
175
212
  </v-col>
176
213
 
177
- <v-col v-if="xs" class="ml-2" cols="12">
214
+ <v-col
215
+ v-if="xs"
216
+ class="ml-2"
217
+ cols="12"
218
+ >
178
219
  <v-skeleton-loader
179
220
  v-if="loading"
180
221
  type="heading, subtitle, heading, subtitle, ossein, button"
181
222
  />
182
- <EventsDateTimePlace v-else :item="item" />
223
+ <EventsDateTimePlace
224
+ v-else
225
+ :item="item"
226
+ />
183
227
  </v-col>
184
228
 
185
- <v-col cols="12" md="9" class="px-0">
229
+ <v-col
230
+ cols="12"
231
+ md="9"
232
+ class="px-0"
233
+ >
186
234
  <v-skeleton-loader
187
235
  v-if="loading"
188
236
  :type="
@@ -226,7 +274,10 @@
226
274
  class="py-2"
227
275
  style="white-space: pre; text-wrap: auto"
228
276
  >
229
- <MDC v-if="item.description" :value="item.description" />
277
+ <MDC
278
+ v-if="item.description"
279
+ :value="item.description"
280
+ />
230
281
  </v-expansion-panel-text>
231
282
  </v-expansion-panel>
232
283
 
@@ -244,10 +295,13 @@
244
295
  {{ $t("programme") }}
245
296
  </v-expansion-panel-title>
246
297
  <v-expansion-panel-text>
247
- <MDC v-if="item.program" :value="item.program" />
298
+ <MDC
299
+ v-if="item.program"
300
+ :value="item.program"
301
+ />
248
302
 
249
- ></v-expansion-panel-text
250
- >
303
+ >
304
+ </v-expansion-panel-text>
251
305
  </v-expansion-panel>
252
306
 
253
307
  <v-expansion-panel
@@ -267,7 +321,10 @@
267
321
  class="border-thin text-black"
268
322
  :color="key === accordeon ? 'light-grey' : 'white'"
269
323
  >
270
- <MDC v-if="item.details" :value="item.details" />
324
+ <MDC
325
+ v-if="item.details"
326
+ :value="item.details"
327
+ />
271
328
  </v-expansion-panel-text>
272
329
  </v-expansion-panel>
273
330
  </v-expansion-panels>
@@ -277,7 +334,10 @@
277
334
  </v-row>
278
335
 
279
336
  <!-- DIVIDERS -->
280
- <v-responsive class="mx-auto my-9" width="120">
337
+ <v-responsive
338
+ class="mx-auto my-9"
339
+ width="120"
340
+ >
281
341
  <v-divider class="mb-1" />
282
342
  <v-divider />
283
343
  </v-responsive>
@@ -294,7 +354,10 @@
294
354
  {{ $t("gallery") }}
295
355
  </div>
296
356
  </MiscAtomsSlidingCarousel> -->
297
- <v-responsive class="mx-auto my-9" width="120">
357
+ <v-responsive
358
+ class="mx-auto my-9"
359
+ width="120"
360
+ >
298
361
  <v-divider class="mb-1" />
299
362
  <v-divider />
300
363
  </v-responsive>
@@ -307,6 +370,8 @@
307
370
 
308
371
  <script setup>
309
372
  import { useDisplay } from "vuetify";
373
+ import { ref } from "vue";
374
+ import { useRouter } from "vue-router";
310
375
  import getFileIcon from "../../composables/useIcons";
311
376
  const { name, mdAndUp, sm, xs } = useDisplay();
312
377
  const router = useRouter();
@@ -152,6 +152,7 @@
152
152
  </template>
153
153
 
154
154
  <script setup>
155
+ import { ref } from "vue";
155
156
  import { useNuxtApp } from "#imports";
156
157
  const { $stores } = useNuxtApp();
157
158
  const props = defineProps({
@@ -43,7 +43,7 @@
43
43
  </template>
44
44
 
45
45
  <script setup>
46
- import { mergeProps, computed } from "vue";
46
+ import { mergeProps, computed, ref } from "vue";
47
47
  import { useDisplay } from "vuetify";
48
48
  import { useRootStore } from "../../../stores/root";
49
49
  import { useNuxtApp } from "#imports";
@@ -40,7 +40,7 @@
40
40
  </template>
41
41
 
42
42
  <script setup>
43
- import { mergeProps } from "vue";
43
+ import { mergeProps, ref } from "vue";
44
44
  import { useDisplay } from "vuetify";
45
45
  import { useRootStore } from "../../../stores/root";
46
46
  import { useNuxtApp } from "#imports";
@@ -5,7 +5,7 @@
5
5
  <script setup>
6
6
  import { computed } from "vue";
7
7
  import { useRootStore } from "../../../stores/root";
8
- import { useNuxtApp } from "#imports";
8
+ import { useNuxtApp, computed } from "#imports";
9
9
  const rootStore = useRootStore();
10
10
  const props = defineProps(["type", "items", "name"]);
11
11
  const { $stores } = useNuxtApp();
@@ -24,8 +24,9 @@
24
24
  </div>
25
25
  <v-expand-transition>
26
26
  <div v-if="filtersOpen" class="mb-7">
27
- <ListMoleculesFilters :type="type" /></div
28
- ></v-expand-transition>
27
+ <ListMoleculesFilters :type="type" />
28
+ </div>
29
+ </v-expand-transition>
29
30
  <ListAtomsSearchInput :type="type" />
30
31
  <ListAtomsSearchString :type="type" />
31
32
  </v-col>
@@ -33,6 +34,8 @@
33
34
  </template>
34
35
 
35
36
  <script setup>
37
+ import { ref } from "vue";
38
+ import { useRoute } from "#imports";
36
39
  const route = useRoute();
37
40
  const filtersOpen = ref(!!Object.keys(route.query)?.length);
38
41
  const props = defineProps({
@@ -78,8 +78,8 @@
78
78
 
79
79
  <script setup>
80
80
  import { computed } from "vue";
81
- import { useRoute } from "vue-router";
82
81
  import { useRootStore } from "../../../stores/root";
82
+ import { useRoute } from "#imports";
83
83
  const route = useRoute();
84
84
  const rootStore = useRootStore();
85
85
  const props = defineProps({
@@ -25,7 +25,10 @@
25
25
  :image="item.image"
26
26
  :hashtags="item.tags.map((tag) => tag.name)"
27
27
  :url="config.url + route.fullPath"
28
- ><template #label>{{ network }}</template>
28
+ >
29
+ <template #label>
30
+ {{ network }}
31
+ </template>
29
32
  </SocialShare>
30
33
  </v-list-item>
31
34
  </v-list>
@@ -33,8 +36,9 @@
33
36
  </template>
34
37
 
35
38
  <script setup>
36
- import config from "~/static.config";
37
39
  import { mergeProps } from "vue";
40
+ import { useRoute } from "#imports";
41
+ import config from "~/static.config";
38
42
  const route = useRoute();
39
43
  const props = defineProps({
40
44
  networks: {
@@ -85,6 +85,7 @@
85
85
  <script setup>
86
86
  import { useDisplay } from "vuetify";
87
87
  import { useRootStore } from "../../stores/root";
88
+ import { useRouter } from "#imports";
88
89
  const router = useRouter();
89
90
  const rootStore = useRootStore();
90
91
  const expanded = ref(false);
@@ -73,17 +73,19 @@
73
73
  ['xs', 'sm', 'md', 'lg', 'xl', 'xxl'].indexOf(name || 'md')
74
74
  ]
75
75
  "
76
- >{{ $t("visit-the-project-website") }}</v-btn
77
76
  >
77
+ {{ $t("visit-the-project-website") }}
78
+ </v-btn>
78
79
  </template>
79
- </v-col></v-row
80
- >
80
+ </v-col>
81
+ </v-row>
81
82
  <v-divider />
82
83
  </template>
83
84
 
84
85
  <script setup>
85
- import { useRootStore } from "../../stores/root";
86
86
  import { useDisplay } from "vuetify";
87
+ import { useRootStore } from "../../stores/root";
88
+ import { useRouter } from "#imports";
87
89
  const { locale } = useI18n();
88
90
  const { name } = useDisplay();
89
91
  const rootStore = useRootStore();
@@ -1,4 +1,4 @@
1
- import { useRoute } from "vue-router";
1
+ import { useRoute } from "#imports";
2
2
  export const useFetchItem = () => {
3
3
  const fetchItem = async (payload) => {
4
4
  try {
@@ -1,6 +1,6 @@
1
1
  import { defineStore } from "pinia";
2
2
  import SEARCH from "../graphql/queries/list/search.gql";
3
- import { useNuxtApp } from "#imports";
3
+ import { useNuxtApp, useRouter } from "#imports";
4
4
  export const useRootStore = defineStore("rootStore", {
5
5
  state: () => ({
6
6
  scrolled: import.meta.browser ? window.scrollY > 0 : false,
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.19",
4
+ "version": "1.0.20",
5
5
  "name": "@paris-ias/list",
6
6
  "repository": "IEA-Paris/list",
7
7
  "dependencies": {