@paris-ias/list 1.0.111 → 1.0.113

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.
Files changed (163) hide show
  1. package/dist/module.json +1 -1
  2. package/dist/runtime/components/events/DenseItem.vue +24 -15
  3. package/dist/runtime/components/fellowships/DenseItem.vue +1 -1
  4. package/dist/runtime/components/list/atoms/SearchInput.vue +4 -2
  5. package/dist/runtime/components/list/molecules/Pagination.vue +2 -0
  6. package/dist/runtime/components/list/organisms/List.vue +16 -2
  7. package/dist/runtime/components/list/views/Dense.vue +0 -1
  8. package/dist/runtime/components/news/DenseItem.vue +24 -23
  9. package/dist/runtime/components/people/Badges.vue +74 -0
  10. package/dist/runtime/components/people/DenseItem.vue +11 -8
  11. package/dist/runtime/components/people/RowsItem.vue +2 -2
  12. package/dist/runtime/components/people/View.vue +1 -1
  13. package/dist/runtime/components/publications/DenseItem.vue +14 -7
  14. package/dist/runtime/graphql/list/publications.gql +2 -0
  15. package/dist/runtime/runtime/components/actions/ExpandedItem.vue +14 -0
  16. package/dist/runtime/runtime/components/actions/RowsItem.vue +12 -0
  17. package/dist/runtime/runtime/components/actions/View.vue +20 -0
  18. package/dist/runtime/runtime/components/affiliations/ExpandedItem.vue +14 -0
  19. package/dist/runtime/runtime/components/affiliations/RowsItem.vue +12 -0
  20. package/dist/runtime/runtime/components/affiliations/View.vue +20 -0
  21. package/dist/runtime/runtime/components/apps/ExpandedItem.vue +14 -0
  22. package/dist/runtime/runtime/components/apps/RowsItem.vue +12 -0
  23. package/dist/runtime/runtime/components/apps/View.vue +20 -0
  24. package/dist/runtime/runtime/components/disciplines/ExpandedItem.vue +14 -0
  25. package/dist/runtime/runtime/components/disciplines/RowsItem.vue +12 -0
  26. package/dist/runtime/runtime/components/disciplines/View.vue +20 -0
  27. package/dist/runtime/runtime/components/events/Badges.vue +73 -0
  28. package/dist/runtime/runtime/components/events/DateTimePlace.vue +77 -0
  29. package/dist/runtime/runtime/components/events/DenseItem.vue +60 -0
  30. package/dist/runtime/runtime/components/events/ExpandedItem.vue +9 -0
  31. package/dist/runtime/runtime/components/events/RegisterModal.vue +50 -0
  32. package/dist/runtime/runtime/components/events/RelatedItem.vue +44 -0
  33. package/dist/runtime/runtime/components/events/RowsItem.vue +118 -0
  34. package/dist/runtime/runtime/components/events/SlidingItem.vue +63 -0
  35. package/dist/runtime/runtime/components/events/View.vue +333 -0
  36. package/dist/runtime/runtime/components/fellowships/Badges.vue +47 -0
  37. package/dist/runtime/runtime/components/fellowships/DenseItem.vue +42 -0
  38. package/dist/runtime/runtime/components/fellowships/ExpandedItem.vue +7 -0
  39. package/dist/runtime/runtime/components/fellowships/RegisterModal.vue +41 -0
  40. package/dist/runtime/runtime/components/fellowships/RowsItem.vue +58 -0
  41. package/dist/runtime/runtime/components/fellowships/View.vue +203 -0
  42. package/dist/runtime/runtime/components/files/ExpandedItem.vue +14 -0
  43. package/dist/runtime/runtime/components/files/RowsItem.vue +12 -0
  44. package/dist/runtime/runtime/components/files/View.vue +20 -0
  45. package/dist/runtime/runtime/components/list/atoms/FiltersMenu.vue +44 -0
  46. package/dist/runtime/runtime/components/list/atoms/ResetButton.vue +33 -0
  47. package/dist/runtime/runtime/components/list/atoms/ResultsList.vue +27 -0
  48. package/dist/runtime/runtime/components/list/atoms/SearchInput.vue +59 -0
  49. package/dist/runtime/runtime/components/list/atoms/SearchItem.vue +65 -0
  50. package/dist/runtime/runtime/components/list/atoms/SearchString.vue +160 -0
  51. package/dist/runtime/runtime/components/list/atoms/SortMenu.vue +80 -0
  52. package/dist/runtime/runtime/components/list/atoms/ViewMenu.vue +63 -0
  53. package/dist/runtime/runtime/components/list/atoms/itemsPerPage.vue +33 -0
  54. package/dist/runtime/runtime/components/list/inputs/AutoComplete.vue +24 -0
  55. package/dist/runtime/runtime/components/list/inputs/BooleanSwitch.vue +20 -0
  56. package/dist/runtime/runtime/components/list/inputs/Checkbox.vue +20 -0
  57. package/dist/runtime/runtime/components/list/inputs/Select.vue +28 -0
  58. package/dist/runtime/runtime/components/list/molecules/Filters.vue +98 -0
  59. package/dist/runtime/runtime/components/list/molecules/GlobalSearchInput.vue +131 -0
  60. package/dist/runtime/runtime/components/list/molecules/Header.vue +51 -0
  61. package/dist/runtime/runtime/components/list/molecules/Pagination.vue +194 -0
  62. package/dist/runtime/runtime/components/list/molecules/ResultsContainer.vue +78 -0
  63. package/dist/runtime/runtime/components/list/organisms/List.vue +110 -0
  64. package/dist/runtime/runtime/components/list/organisms/Results.vue +72 -0
  65. package/dist/runtime/runtime/components/list/organisms/Slider.vue +180 -0
  66. package/dist/runtime/runtime/components/list/views/Dense.vue +12 -0
  67. package/dist/runtime/runtime/components/list/views/Expanded.vue +10 -0
  68. package/dist/runtime/runtime/components/list/views/Grid.vue +13 -0
  69. package/dist/runtime/runtime/components/list/views/Rows.vue +12 -0
  70. package/dist/runtime/runtime/components/list/views/Slider.vue +147 -0
  71. package/dist/runtime/runtime/components/list/views/Table.vue +13 -0
  72. package/dist/runtime/runtime/components/mailing/ExpandedItem.vue +14 -0
  73. package/dist/runtime/runtime/components/mailing/RowsItem.vue +12 -0
  74. package/dist/runtime/runtime/components/mailing/View.vue +20 -0
  75. package/dist/runtime/runtime/components/misc/atoms/DateStamp.vue +101 -0
  76. package/dist/runtime/runtime/components/misc/atoms/ImageContainer.vue +127 -0
  77. package/dist/runtime/runtime/components/misc/atoms/ShareMenu.vue +61 -0
  78. package/dist/runtime/runtime/components/misc/atoms/Socials.vue +120 -0
  79. package/dist/runtime/runtime/components/misc/molecules/ChipContainer.vue +31 -0
  80. package/dist/runtime/runtime/components/misc/molecules/Related.vue +28 -0
  81. package/dist/runtime/runtime/components/misc/molecules/RelatedItems.vue +27 -0
  82. package/dist/runtime/runtime/components/misc/molecules/SearchItem.vue +26 -0
  83. package/dist/runtime/runtime/components/news/DenseItem.vue +73 -0
  84. package/dist/runtime/runtime/components/news/ExpandedItem.vue +145 -0
  85. package/dist/runtime/runtime/components/news/Header.vue +7 -0
  86. package/dist/runtime/runtime/components/news/RelatedItem.vue +44 -0
  87. package/dist/runtime/runtime/components/news/RowsItem.vue +182 -0
  88. package/dist/runtime/runtime/components/news/View.vue +174 -0
  89. package/dist/runtime/runtime/components/people/DenseItem.vue +60 -0
  90. package/dist/runtime/runtime/components/people/ExpandedItem.vue +14 -0
  91. package/dist/runtime/runtime/components/people/RelatedItem.vue +41 -0
  92. package/dist/runtime/runtime/components/people/RowsItem.vue +93 -0
  93. package/dist/runtime/runtime/components/people/View.vue +172 -0
  94. package/dist/runtime/runtime/components/projects/DenseItem.vue +77 -0
  95. package/dist/runtime/runtime/components/projects/ExpandedItem.vue +12 -0
  96. package/dist/runtime/runtime/components/projects/RelatedItem.vue +44 -0
  97. package/dist/runtime/runtime/components/projects/RowsItem.vue +103 -0
  98. package/dist/runtime/runtime/components/projects/View.vue +130 -0
  99. package/dist/runtime/runtime/components/publications/DenseItem.vue +89 -0
  100. package/dist/runtime/runtime/components/publications/RelatedItem.vue +44 -0
  101. package/dist/runtime/runtime/components/publications/RowsItem.vue +105 -0
  102. package/dist/runtime/runtime/components/publications/View.vue +132 -0
  103. package/dist/runtime/runtime/components/tags/ExpandedItem.vue +14 -0
  104. package/dist/runtime/runtime/components/tags/RowsItem.vue +12 -0
  105. package/dist/runtime/runtime/components/tags/View.vue +20 -0
  106. package/dist/runtime/runtime/components/users/ExpandedItem.vue +14 -0
  107. package/dist/runtime/runtime/components/users/RowsItem.vue +12 -0
  108. package/dist/runtime/runtime/components/users/View.vue +20 -0
  109. package/dist/runtime/runtime/composables/useFetchItem.d.ts +6 -0
  110. package/dist/runtime/runtime/composables/useFetchItem.js +49 -0
  111. package/dist/runtime/runtime/composables/useIcons.d.ts +1 -0
  112. package/dist/runtime/runtime/composables/useIcons.js +30 -0
  113. package/dist/runtime/runtime/composables/useUtils.d.ts +12 -0
  114. package/dist/runtime/runtime/composables/useUtils.js +48 -0
  115. package/dist/runtime/runtime/graphql/buildFiltersValues.gql +35 -0
  116. package/dist/runtime/runtime/graphql/item/action.gql +22 -0
  117. package/dist/runtime/runtime/graphql/item/affiliations.gql +37 -0
  118. package/dist/runtime/runtime/graphql/item/apps.gql +34 -0
  119. package/dist/runtime/runtime/graphql/item/disciplines.gql +17 -0
  120. package/dist/runtime/runtime/graphql/item/events.gql +120 -0
  121. package/dist/runtime/runtime/graphql/item/fellowships.gql +164 -0
  122. package/dist/runtime/runtime/graphql/item/files.gql +25 -0
  123. package/dist/runtime/runtime/graphql/item/mailing.gql +10 -0
  124. package/dist/runtime/runtime/graphql/item/news.gql +129 -0
  125. package/dist/runtime/runtime/graphql/item/people.gql +174 -0
  126. package/dist/runtime/runtime/graphql/item/projects.gql +171 -0
  127. package/dist/runtime/runtime/graphql/item/publications.gql +169 -0
  128. package/dist/runtime/runtime/graphql/item/tags.gql +13 -0
  129. package/dist/runtime/runtime/graphql/item/users.gql +14 -0
  130. package/dist/runtime/runtime/graphql/list/action.gql +31 -0
  131. package/dist/runtime/runtime/graphql/list/affiliations.gql +42 -0
  132. package/dist/runtime/runtime/graphql/list/apps.gql +42 -0
  133. package/dist/runtime/runtime/graphql/list/disciplines.gql +22 -0
  134. package/dist/runtime/runtime/graphql/list/events.gql +44 -0
  135. package/dist/runtime/runtime/graphql/list/fellowships.gql +53 -0
  136. package/dist/runtime/runtime/graphql/list/files.gql +37 -0
  137. package/dist/runtime/runtime/graphql/list/mailing.gql +22 -0
  138. package/dist/runtime/runtime/graphql/list/news.gql +40 -0
  139. package/dist/runtime/runtime/graphql/list/people.gql +50 -0
  140. package/dist/runtime/runtime/graphql/list/projects.gql +37 -0
  141. package/dist/runtime/runtime/graphql/list/publications.gql +38 -0
  142. package/dist/runtime/runtime/graphql/list/search.gql +161 -0
  143. package/dist/runtime/runtime/graphql/list/tags.gql +22 -0
  144. package/dist/runtime/runtime/graphql/list/users.gql +38 -0
  145. package/dist/runtime/runtime/graphql/login.gql +0 -0
  146. package/dist/runtime/runtime/plugins/pinia.d.ts +2 -0
  147. package/dist/runtime/runtime/plugins/pinia.js +134 -0
  148. package/dist/runtime/runtime/plugins/vuetify.d.ts +2 -0
  149. package/dist/runtime/runtime/plugins/vuetify.js +21 -0
  150. package/dist/runtime/runtime/public/default.png +0 -0
  151. package/dist/runtime/runtime/public/filters.json +72 -0
  152. package/dist/runtime/runtime/server/tsconfig.json +3 -0
  153. package/dist/runtime/runtime/stores/factory.d.ts +25 -0
  154. package/dist/runtime/runtime/stores/factory.js +19 -0
  155. package/dist/runtime/runtime/stores/root.d.ts +60 -0
  156. package/dist/runtime/runtime/stores/root.js +315 -0
  157. package/dist/runtime/runtime/translations/en.json +350 -0
  158. package/dist/runtime/runtime/translations/fr.json +349 -0
  159. package/dist/runtime/runtime/types/imports.d.ts +13 -0
  160. package/dist/runtime/runtime/types/stores.d.ts +11 -0
  161. package/dist/runtime/translations/en.json +1 -1
  162. package/package.json +2 -2
  163. /package/dist/runtime/{components → runtime/components}/people/GroupBadges.vue +0 -0
@@ -0,0 +1,73 @@
1
+ <template>
2
+ <div>
3
+ <EventsRegisterModal v-if="item.bookingState === 'OPEN'" :item="item" />
4
+ <v-btn
5
+ v-if="item.bookingState === 'FULL'"
6
+ color="grey-lighten-3"
7
+ flat
8
+ rounded="0"
9
+ prepend-icon="mdi-circle-medium"
10
+ size="small"
11
+ class="my-2"
12
+ >
13
+ <template #prepend>
14
+ <v-icon size="large" color="danger" />
15
+ </template>
16
+ {{ $t("event-full") }}
17
+ </v-btn>
18
+
19
+ <v-divider v-if="smAndUp" vertical class="mx-3" />
20
+ <v-btn
21
+ v-if="item.stream && item.stream.length"
22
+ color="grey-lighten-3"
23
+ flat
24
+ rounded="0"
25
+ prepend-icon="mdi-television-play"
26
+ size="small"
27
+ class="my-xs-2"
28
+ :to="
29
+ localePath({
30
+ name: 'activities-events-slug',
31
+ params: { slug: item.slug[locale] },
32
+ })
33
+ "
34
+ >
35
+ {{ $t("live-stream-available") }}
36
+ </v-btn>
37
+
38
+ <v-btn
39
+ v-if="item.outside"
40
+ color="grey-lighten-3"
41
+ flat
42
+ rounded="0"
43
+ prepend-icon="mdi-location-exit"
44
+ size="small"
45
+ class="my-xs-2"
46
+ >
47
+ {{ $t("outside-event") }}
48
+ </v-btn>
49
+
50
+ <v-btn
51
+ v-if="item.type === 'HYBRID'"
52
+ color="grey-lighten-3"
53
+ flat
54
+ rounded="0"
55
+ prepend-icon="mdi-cast-education"
56
+ size="small"
57
+ class="my-xs-2"
58
+ >
59
+ {{ $t("hybrid-event") }}
60
+ </v-btn>
61
+ </div>
62
+ </template>
63
+
64
+ <script setup>
65
+ import { useLocalePath, useI18n } from "#imports";
66
+ import { useDisplay } from "vuetify";
67
+ const localePath = useLocalePath();
68
+ const { smAndUp } = useDisplay();
69
+ const { locale } = useI18n();
70
+ const props = defineProps({
71
+ item: { type: Object, required: true }
72
+ });
73
+ </script>
@@ -0,0 +1,77 @@
1
+ <template>
2
+ <div class="text-overline font-weight-bold">
3
+ {{ $t("date-et-heure") }}
4
+ </div>
5
+ <div>
6
+ <div>{{ startDay }}</div>
7
+ <div>{{ $t("from-starttime-to-stoptime", [startTime, stopTime]) }}</div>
8
+ </div>
9
+
10
+ <div class="text-overline font-weight-bold mt-md-4">
11
+ {{ $t("location") }}
12
+ </div>
13
+ <div>{{ item.location }}</div>
14
+
15
+ <v-btn
16
+ variant="text"
17
+ class="ml-n4"
18
+ size="small"
19
+ :prepend-icon="
20
+ open ? 'mdi-chevron-double-down' : 'mdi-chevron-double-right'
21
+ "
22
+ @click="open = !open"
23
+ >
24
+ {{ $t("show-on-map") }}
25
+ </v-btn>
26
+ <v-expand-transition>
27
+ <v-responsive v-show="open" :aspect-ratio="1 / 1">
28
+ <iframe
29
+ title="openstreetmap"
30
+ width="100%"
31
+ height="100%"
32
+ absolute
33
+ frameborder="0"
34
+ scrolling="no"
35
+ marginheight="0"
36
+ marginwidth="0"
37
+ src="https://www.openstreetmap.org/export/embed.html?bbox=2.3413968033604786%2C48.84311283480419%2C2.3779606766514942%2C48.8594349634343&amp;layer=mapnik&amp;marker=48.851274564242196%2C2.359678740005961"
38
+ /><br /><small
39
+ ><a
40
+ href="https:/www.openstreetmap.org/?mlat=48.85127&amp;mlon=2.35968#map=16/48.85127/2.35968"
41
+ >Afficher une carte plus grande</a
42
+ ></small
43
+ >
44
+ >
45
+ </v-responsive>
46
+ </v-expand-transition>
47
+ <br />
48
+ <v-btn
49
+ variant="text"
50
+ class="ml-n4"
51
+ size="small"
52
+ prepend-icon="mdi-open-in-new"
53
+ >
54
+ {{ $t("details") }}
55
+ </v-btn>
56
+ </template>
57
+
58
+ <script setup>
59
+ import { ref } from "vue";
60
+ import { getDetailedFormatedDate } from "../../composables/useUtils";
61
+ import { useI18n } from "#imports";
62
+ const { locale } = useI18n();
63
+ const props = defineProps({
64
+ item: {
65
+ type: Object,
66
+ required: true
67
+ }
68
+ });
69
+ const open = ref(false);
70
+ const detailedStart = getDetailedFormatedDate(props.item.start, locale.value);
71
+ const startDay = ref(
72
+ `${detailedStart.day} ${detailedStart.month} ${detailedStart.year}`
73
+ );
74
+ const startTime = ref(detailedStart.hours);
75
+ const detailedStop = getDetailedFormatedDate(props.item.stop, locale.value);
76
+ const stopTime = ref(detailedStop.hours);
77
+ </script>
@@ -0,0 +1,60 @@
1
+ <template>
2
+ <v-row
3
+ v-ripple
4
+ no-gutters
5
+ class="cursor-pointer highlight-on-hover"
6
+ @click="$router.push(localePath('/activities/events/' + item.slug[locale]))"
7
+ >
8
+ <v-col v-if="mdAndUp" align-self="center" cols="1">
9
+ <MiscAtomsImageContainer
10
+ cover
11
+ :loading="$stores.events.loading"
12
+ :src="item.image.url ? item.image : '/default.png'"
13
+ :ratio="1 / 1"
14
+ :name="item.name"
15
+ :slug="item.slug"
16
+ link="events-slug"
17
+ width="80px"
18
+ />
19
+ </v-col>
20
+
21
+ <v-col align-self="center" class="pl-2">
22
+ <div class="text-h5 dense text-overline font-weight-black">
23
+ {{
24
+ $t("list.filters.events.category." + item.category) +
25
+ " / " +
26
+ new Date(item.start).toLocaleDateString(locale, {
27
+ year: "numeric",
28
+ month: "numeric",
29
+ day: "numeric",
30
+ })
31
+ }}
32
+ </div>
33
+ <div class="text-h5 dense">
34
+ {{ item.name }}
35
+ </div>
36
+ </v-col>
37
+
38
+ <v-col align-self="center" cols="auto">
39
+ <EventsBadges :item />
40
+ </v-col>
41
+ </v-row>
42
+ </template>
43
+
44
+ <script setup>
45
+ import { useLocalePath, useI18n } from "#imports";
46
+ import { useDisplay } from "vuetify";
47
+ const { mdAndUp } = useDisplay();
48
+ const { locale } = useI18n();
49
+ const localePath = useLocalePath();
50
+ const props = defineProps({
51
+ item: {
52
+ type: Object,
53
+ required: true
54
+ },
55
+ index: {
56
+ type: Number,
57
+ required: true
58
+ }
59
+ });
60
+ </script>
@@ -0,0 +1,9 @@
1
+ <template>
2
+ <div class="text-h4">{{ item.name }}</div>
3
+ </template>
4
+
5
+ <script setup>
6
+ const props = defineProps({
7
+ item: { type: Object, required: true }
8
+ });
9
+ </script>
@@ -0,0 +1,50 @@
1
+ <template>
2
+ <v-dialog max-width="500">
3
+ <template #activator="{ props: activatorProps }">
4
+ <v-btn
5
+ variant="outlined"
6
+ tile
7
+ block
8
+ v-bind="activatorProps"
9
+ size="x-large"
10
+ prepend-icon="mdi-circle-medium"
11
+ >
12
+ <template #prepend>
13
+ <v-icon size="x-large" color="success" />
14
+ </template>
15
+ <div class="text-wrap register-text">
16
+ {{ $t("register") }}
17
+ </div>
18
+ </v-btn>
19
+ </template>
20
+
21
+ <template #default="{ isActive }">
22
+ <v-card :title="$t('events.register')">
23
+ <v-card-text>
24
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do
25
+ eiusmod tempor incididunt ut labore et dolore magna aliqua.
26
+ </v-card-text>
27
+
28
+ <v-card-actions>
29
+ <v-spacer />
30
+
31
+ <v-btn :text="$t('cancel')" @click="isActive.value = false" />
32
+ <v-btn
33
+ :text="$t('events.register-me')"
34
+ @click="isActive.value = false"
35
+ />
36
+ </v-card-actions>
37
+ </v-card>
38
+ </template>
39
+ </v-dialog>
40
+ </template>
41
+
42
+ <script setup>
43
+ const props = defineProps({
44
+ item: { type: Object, required: true }
45
+ });
46
+ </script>
47
+
48
+ <style>
49
+ .register-text{font-size:.8rem}
50
+ </style>
@@ -0,0 +1,44 @@
1
+ <template>
2
+ <v-sheet
3
+ :to="
4
+ localePath({
5
+ name: 'activities-events-slug',
6
+ params: { slug: item.name },
7
+ })
8
+ "
9
+ >
10
+ <v-row>
11
+ <v-col v-if="lgAndUp" cols="3">
12
+ <MiscAtomsImageContainer
13
+ cover
14
+ :src="item.image"
15
+ :ratio="1 / 1"
16
+ :link="item.name"
17
+ :loading="rootStore.loading"
18
+ name="activities-events-slug"
19
+ />
20
+ </v-col>
21
+ <v-col cols="12" lg="9">
22
+ <v-skeleton-loader v-if="rootStore.loading" type="heading, text@3" />
23
+ <template v-else>
24
+ <div class="text-h6">
25
+ {{ item.name }}
26
+ </div>
27
+ <div class="text-body-1">
28
+ {{ item.description }}
29
+ </div>
30
+ </template>
31
+ </v-col>
32
+ </v-row>
33
+ </v-sheet>
34
+ </template>
35
+
36
+ <script setup>
37
+ import { useDisplay } from "vuetify";
38
+ import { useRootStore } from "../../stores/root";
39
+ import { useLocalePath } from "#imports";
40
+ const localePath = useLocalePath();
41
+ const rootStore = useRootStore();
42
+ const { lgAndUp } = useDisplay();
43
+ const props = defineProps({ item: { type: Object, required: true } });
44
+ </script>
@@ -0,0 +1,118 @@
1
+ <template>
2
+ <v-divider v-if="index > 0" />
3
+ <v-row class="py-8 px-6 highlight-on-hover" no-gutters>
4
+ <v-col cols="12" md="1">
5
+ <MiscAtomsDateStamp
6
+ v-if="item.start"
7
+ :loading="$stores['events'].loading"
8
+ :date-start="item.start"
9
+ :date-stop="item.stop"
10
+ class="pr-6 mt-md-2"
11
+ />
12
+ </v-col>
13
+ <v-col cols="12" md="7" class="px-md-6 mt-6 mt-md-0">
14
+ <v-row no-gutters>
15
+ <v-col cols="12" class="pr-lg-6">
16
+ <v-skeleton-loader
17
+ v-if="rootStore.loading || $stores['events'].loading"
18
+ :type="
19
+ [
20
+ 'heading, subtitle, text@6,subtitle, text, ossein, button, button',
21
+ 'heading, subtitle, text@6,subtitle, text, ossein, button, button',
22
+ 'heading, subtitle, text@6, ossein, button, button',
23
+ 'heading, subtitle, text@6, ossein, button, button',
24
+ 'heading, subtitle, text@6, ossein, button, button',
25
+ 'heading, subtitle, text@6, ossein, button, button',
26
+ ][['xs', 'sm', 'md', 'lg', 'xl', 'xxl'].indexOf(name || 'md')]
27
+ "
28
+ />
29
+
30
+ <div v-else>
31
+ <nuxt-link
32
+ v-if="item.name"
33
+ :to="
34
+ localePath({
35
+ name: 'activities-events-slug',
36
+ params: { slug: item.slug[locale] },
37
+ })
38
+ "
39
+ class="text-h4 text-black text-wrap mt-4"
40
+ >
41
+ {{ item.name }}
42
+ </nuxt-link>
43
+ <div class="mt-2 text-h6 text-overline font-weight-black">
44
+ {{ $t("list.filters.events.category." + item.category) }}
45
+ </div>
46
+
47
+ <p
48
+ class="text-wrap clamped-text"
49
+ :style="
50
+ '-webkit-line-clamp:' +
51
+ [5, 5, 5, 10, 12, 14][
52
+ ['xs', 'sm', 'md', 'lg', 'xl', 'xxl'].indexOf(name || 'md')
53
+ ]
54
+ "
55
+ >
56
+ <MDC v-if="item.summary" :value="item.summary" />
57
+ </p>
58
+
59
+ <div v-if="lgAndUp" class="d-flex flex-row align-center flex-wrap">
60
+ <EventsBadges :item />
61
+ </div>
62
+ </div>
63
+ </v-col>
64
+ </v-row>
65
+ <v-row
66
+ v-if="mdAndDown"
67
+ class="d-flex flex-row align-center flex-wrap"
68
+ no-gutters
69
+ >
70
+ <v-col cols="12">
71
+ <v-skeleton-loader
72
+ v-if="rootStore.loading || $stores['events'].loading"
73
+ :type="
74
+ ['article, heading, text, heading, text, button, button'][
75
+ ['md'].indexOf(name || 'md')
76
+ ]
77
+ "
78
+ />
79
+
80
+ <div v-else>
81
+ <EventsBadges :item="item" />
82
+ </div>
83
+ </v-col>
84
+ </v-row>
85
+ </v-col>
86
+ <v-col cols="12" md="4">
87
+ <MiscAtomsImageContainer
88
+ cover
89
+ :slug="item.slug[locale]"
90
+ link="activities-events-slug"
91
+ :loading="$stores['events'].loading"
92
+ :src="item.image && item.image.url ? item.image : '/default.png'"
93
+ :ratio="1 / 1"
94
+ />
95
+ </v-col>
96
+ </v-row>
97
+ </template>
98
+
99
+ <script setup>
100
+ import { useDisplay } from "vuetify";
101
+ import { useRootStore } from "../../stores/root";
102
+ import { useNuxtApp, useI18n, useLocalePath } from "#imports";
103
+ const { locale } = useI18n();
104
+ const { name, mdAndDown, lgAndUp } = useDisplay();
105
+ const localePath = useLocalePath();
106
+ const rootStore = useRootStore();
107
+ const { $stores } = useNuxtApp();
108
+ const props = defineProps({
109
+ item: {
110
+ type: Object,
111
+ required: true
112
+ },
113
+ index: {
114
+ type: Number,
115
+ required: true
116
+ }
117
+ });
118
+ </script>
@@ -0,0 +1,63 @@
1
+ <template>
2
+ <v-sheet v-motion 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
+ :to="
28
+ localePath({
29
+ name: 'activities-events-slug',
30
+ params: { slug: item.slug[locale] },
31
+ })
32
+ "
33
+ style="cursor: pointer"
34
+ />
35
+ <nuxt-link
36
+ class="mt-6 pl-0 text-h6 text-md-h5 font-weight-medium sliding-item-title cursor-pointer"
37
+ :to="
38
+ localePath({
39
+ name: 'activities-events-slug',
40
+ params: { slug: item.slug[locale] },
41
+ })
42
+ "
43
+ >
44
+ <div class="text-overline text-uppercase">
45
+ {{ $t(item.category) }}
46
+ </div>
47
+ {{ item.name }}
48
+ </nuxt-link>
49
+ </div>
50
+ </v-sheet>
51
+ </template>
52
+
53
+ <script setup>
54
+ import { useDisplay } from "vuetify";
55
+ import { useLocalePath, useI18n } from "#imports";
56
+ const { locale } = useI18n();
57
+ const { name } = useDisplay();
58
+ const localePath = useLocalePath();
59
+ defineProps({
60
+ item: { type: Object, required: true },
61
+ loading: { type: Boolean, required: true, default: false }
62
+ });
63
+ </script>