@paris-ias/list 1.0.112 → 1.0.114

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 (152) hide show
  1. package/dist/module.json +1 -1
  2. package/dist/runtime/components/list/atoms/SearchInput.vue +4 -6
  3. package/dist/runtime/components/list/molecules/Pagination.vue +2 -0
  4. package/dist/runtime/components/list/organisms/List.vue +11 -1
  5. package/dist/runtime/runtime/components/actions/ExpandedItem.vue +14 -0
  6. package/dist/runtime/runtime/components/actions/RowsItem.vue +12 -0
  7. package/dist/runtime/runtime/components/actions/View.vue +20 -0
  8. package/dist/runtime/runtime/components/affiliations/ExpandedItem.vue +14 -0
  9. package/dist/runtime/runtime/components/affiliations/RowsItem.vue +12 -0
  10. package/dist/runtime/runtime/components/affiliations/View.vue +20 -0
  11. package/dist/runtime/runtime/components/apps/ExpandedItem.vue +14 -0
  12. package/dist/runtime/runtime/components/apps/RowsItem.vue +12 -0
  13. package/dist/runtime/runtime/components/apps/View.vue +20 -0
  14. package/dist/runtime/runtime/components/disciplines/ExpandedItem.vue +14 -0
  15. package/dist/runtime/runtime/components/disciplines/RowsItem.vue +12 -0
  16. package/dist/runtime/runtime/components/disciplines/View.vue +20 -0
  17. package/dist/runtime/runtime/components/events/Badges.vue +73 -0
  18. package/dist/runtime/runtime/components/events/DateTimePlace.vue +77 -0
  19. package/dist/runtime/runtime/components/events/DenseItem.vue +60 -0
  20. package/dist/runtime/runtime/components/events/ExpandedItem.vue +9 -0
  21. package/dist/runtime/runtime/components/events/RegisterModal.vue +50 -0
  22. package/dist/runtime/runtime/components/events/RelatedItem.vue +44 -0
  23. package/dist/runtime/runtime/components/events/RowsItem.vue +118 -0
  24. package/dist/runtime/runtime/components/events/SlidingItem.vue +63 -0
  25. package/dist/runtime/runtime/components/events/View.vue +333 -0
  26. package/dist/runtime/runtime/components/fellowships/Badges.vue +47 -0
  27. package/dist/runtime/runtime/components/fellowships/DenseItem.vue +42 -0
  28. package/dist/runtime/runtime/components/fellowships/ExpandedItem.vue +7 -0
  29. package/dist/runtime/runtime/components/fellowships/RegisterModal.vue +41 -0
  30. package/dist/runtime/runtime/components/fellowships/RowsItem.vue +58 -0
  31. package/dist/runtime/runtime/components/fellowships/View.vue +203 -0
  32. package/dist/runtime/runtime/components/files/ExpandedItem.vue +14 -0
  33. package/dist/runtime/runtime/components/files/RowsItem.vue +12 -0
  34. package/dist/runtime/runtime/components/files/View.vue +20 -0
  35. package/dist/runtime/runtime/components/list/atoms/FiltersMenu.vue +44 -0
  36. package/dist/runtime/runtime/components/list/atoms/ResetButton.vue +33 -0
  37. package/dist/runtime/runtime/components/list/atoms/ResultsList.vue +27 -0
  38. package/dist/runtime/runtime/components/list/atoms/SearchInput.vue +59 -0
  39. package/dist/runtime/runtime/components/list/atoms/SearchItem.vue +65 -0
  40. package/dist/runtime/runtime/components/list/atoms/SearchString.vue +160 -0
  41. package/dist/runtime/runtime/components/list/atoms/SortMenu.vue +80 -0
  42. package/dist/runtime/runtime/components/list/atoms/ViewMenu.vue +63 -0
  43. package/dist/runtime/runtime/components/list/atoms/itemsPerPage.vue +33 -0
  44. package/dist/runtime/runtime/components/list/inputs/AutoComplete.vue +24 -0
  45. package/dist/runtime/runtime/components/list/inputs/BooleanSwitch.vue +20 -0
  46. package/dist/runtime/runtime/components/list/inputs/Checkbox.vue +20 -0
  47. package/dist/runtime/runtime/components/list/inputs/Select.vue +28 -0
  48. package/dist/runtime/runtime/components/list/molecules/Filters.vue +98 -0
  49. package/dist/runtime/runtime/components/list/molecules/GlobalSearchInput.vue +131 -0
  50. package/dist/runtime/runtime/components/list/molecules/Header.vue +51 -0
  51. package/dist/runtime/runtime/components/list/molecules/Pagination.vue +194 -0
  52. package/dist/runtime/runtime/components/list/molecules/ResultsContainer.vue +78 -0
  53. package/dist/runtime/runtime/components/list/organisms/List.vue +110 -0
  54. package/dist/runtime/runtime/components/list/organisms/Results.vue +72 -0
  55. package/dist/runtime/runtime/components/list/organisms/Slider.vue +180 -0
  56. package/dist/runtime/runtime/components/list/views/Dense.vue +12 -0
  57. package/dist/runtime/runtime/components/list/views/Expanded.vue +10 -0
  58. package/dist/runtime/runtime/components/list/views/Grid.vue +13 -0
  59. package/dist/runtime/runtime/components/list/views/Rows.vue +12 -0
  60. package/dist/runtime/runtime/components/list/views/Slider.vue +147 -0
  61. package/dist/runtime/runtime/components/list/views/Table.vue +13 -0
  62. package/dist/runtime/runtime/components/mailing/ExpandedItem.vue +14 -0
  63. package/dist/runtime/runtime/components/mailing/RowsItem.vue +12 -0
  64. package/dist/runtime/runtime/components/mailing/View.vue +20 -0
  65. package/dist/runtime/runtime/components/misc/atoms/DateStamp.vue +101 -0
  66. package/dist/runtime/runtime/components/misc/atoms/ImageContainer.vue +127 -0
  67. package/dist/runtime/runtime/components/misc/atoms/ShareMenu.vue +61 -0
  68. package/dist/runtime/runtime/components/misc/atoms/Socials.vue +120 -0
  69. package/dist/runtime/runtime/components/misc/molecules/ChipContainer.vue +31 -0
  70. package/dist/runtime/runtime/components/misc/molecules/Related.vue +28 -0
  71. package/dist/runtime/runtime/components/misc/molecules/RelatedItems.vue +27 -0
  72. package/dist/runtime/runtime/components/misc/molecules/SearchItem.vue +26 -0
  73. package/dist/runtime/runtime/components/news/DenseItem.vue +73 -0
  74. package/dist/runtime/runtime/components/news/ExpandedItem.vue +145 -0
  75. package/dist/runtime/runtime/components/news/Header.vue +7 -0
  76. package/dist/runtime/runtime/components/news/RelatedItem.vue +44 -0
  77. package/dist/runtime/runtime/components/news/RowsItem.vue +182 -0
  78. package/dist/runtime/runtime/components/news/View.vue +174 -0
  79. package/dist/runtime/runtime/components/people/DenseItem.vue +60 -0
  80. package/dist/runtime/runtime/components/people/ExpandedItem.vue +14 -0
  81. package/dist/runtime/runtime/components/people/GroupBadges.vue +54 -0
  82. package/dist/runtime/runtime/components/people/RelatedItem.vue +41 -0
  83. package/dist/runtime/runtime/components/people/RowsItem.vue +93 -0
  84. package/dist/runtime/runtime/components/people/View.vue +172 -0
  85. package/dist/runtime/runtime/components/projects/DenseItem.vue +77 -0
  86. package/dist/runtime/runtime/components/projects/ExpandedItem.vue +12 -0
  87. package/dist/runtime/runtime/components/projects/RelatedItem.vue +44 -0
  88. package/dist/runtime/runtime/components/projects/RowsItem.vue +103 -0
  89. package/dist/runtime/runtime/components/projects/View.vue +130 -0
  90. package/dist/runtime/runtime/components/publications/DenseItem.vue +89 -0
  91. package/dist/runtime/runtime/components/publications/RelatedItem.vue +44 -0
  92. package/dist/runtime/runtime/components/publications/RowsItem.vue +105 -0
  93. package/dist/runtime/runtime/components/publications/View.vue +132 -0
  94. package/dist/runtime/runtime/components/tags/ExpandedItem.vue +14 -0
  95. package/dist/runtime/runtime/components/tags/RowsItem.vue +12 -0
  96. package/dist/runtime/runtime/components/tags/View.vue +20 -0
  97. package/dist/runtime/runtime/components/users/ExpandedItem.vue +14 -0
  98. package/dist/runtime/runtime/components/users/RowsItem.vue +12 -0
  99. package/dist/runtime/runtime/components/users/View.vue +20 -0
  100. package/dist/runtime/runtime/composables/useFetchItem.d.ts +6 -0
  101. package/dist/runtime/runtime/composables/useFetchItem.js +49 -0
  102. package/dist/runtime/runtime/composables/useIcons.d.ts +1 -0
  103. package/dist/runtime/runtime/composables/useIcons.js +30 -0
  104. package/dist/runtime/runtime/composables/useUtils.d.ts +12 -0
  105. package/dist/runtime/runtime/composables/useUtils.js +48 -0
  106. package/dist/runtime/runtime/graphql/buildFiltersValues.gql +35 -0
  107. package/dist/runtime/runtime/graphql/item/action.gql +22 -0
  108. package/dist/runtime/runtime/graphql/item/affiliations.gql +37 -0
  109. package/dist/runtime/runtime/graphql/item/apps.gql +34 -0
  110. package/dist/runtime/runtime/graphql/item/disciplines.gql +17 -0
  111. package/dist/runtime/runtime/graphql/item/events.gql +120 -0
  112. package/dist/runtime/runtime/graphql/item/fellowships.gql +164 -0
  113. package/dist/runtime/runtime/graphql/item/files.gql +25 -0
  114. package/dist/runtime/runtime/graphql/item/mailing.gql +10 -0
  115. package/dist/runtime/runtime/graphql/item/news.gql +129 -0
  116. package/dist/runtime/runtime/graphql/item/people.gql +174 -0
  117. package/dist/runtime/runtime/graphql/item/projects.gql +171 -0
  118. package/dist/runtime/runtime/graphql/item/publications.gql +169 -0
  119. package/dist/runtime/runtime/graphql/item/tags.gql +13 -0
  120. package/dist/runtime/runtime/graphql/item/users.gql +14 -0
  121. package/dist/runtime/runtime/graphql/list/action.gql +31 -0
  122. package/dist/runtime/runtime/graphql/list/affiliations.gql +42 -0
  123. package/dist/runtime/runtime/graphql/list/apps.gql +42 -0
  124. package/dist/runtime/runtime/graphql/list/disciplines.gql +22 -0
  125. package/dist/runtime/runtime/graphql/list/events.gql +44 -0
  126. package/dist/runtime/runtime/graphql/list/fellowships.gql +53 -0
  127. package/dist/runtime/runtime/graphql/list/files.gql +37 -0
  128. package/dist/runtime/runtime/graphql/list/mailing.gql +22 -0
  129. package/dist/runtime/runtime/graphql/list/news.gql +40 -0
  130. package/dist/runtime/runtime/graphql/list/people.gql +50 -0
  131. package/dist/runtime/runtime/graphql/list/projects.gql +37 -0
  132. package/dist/runtime/runtime/graphql/list/publications.gql +38 -0
  133. package/dist/runtime/runtime/graphql/list/search.gql +161 -0
  134. package/dist/runtime/runtime/graphql/list/tags.gql +22 -0
  135. package/dist/runtime/runtime/graphql/list/users.gql +38 -0
  136. package/dist/runtime/runtime/graphql/login.gql +0 -0
  137. package/dist/runtime/runtime/plugins/pinia.d.ts +2 -0
  138. package/dist/runtime/runtime/plugins/pinia.js +134 -0
  139. package/dist/runtime/runtime/plugins/vuetify.d.ts +2 -0
  140. package/dist/runtime/runtime/plugins/vuetify.js +21 -0
  141. package/dist/runtime/runtime/public/default.png +0 -0
  142. package/dist/runtime/runtime/public/filters.json +72 -0
  143. package/dist/runtime/runtime/server/tsconfig.json +3 -0
  144. package/dist/runtime/runtime/stores/factory.d.ts +25 -0
  145. package/dist/runtime/runtime/stores/factory.js +19 -0
  146. package/dist/runtime/runtime/stores/root.d.ts +60 -0
  147. package/dist/runtime/runtime/stores/root.js +315 -0
  148. package/dist/runtime/runtime/translations/en.json +350 -0
  149. package/dist/runtime/runtime/translations/fr.json +349 -0
  150. package/dist/runtime/runtime/types/imports.d.ts +13 -0
  151. package/dist/runtime/runtime/types/stores.d.ts +11 -0
  152. package/package.json +1 -1
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.112",
4
+ "version": "1.0.114",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.0",
7
7
  "unbuild": "3.5.0"
@@ -13,10 +13,8 @@
13
13
  tile
14
14
  type="search"
15
15
  :loading="rootStore.loading"
16
- @keyup.enter="type === 'all' ? null : $router.push(localePath('/search'))"
17
- @click:append="
18
- type === 'all' ? null : $router.push(localePath('/search'))
19
- "
16
+ @keyup.enter="type === 'all' ? null : router.push(localePath('/search'))"
17
+ @click:append="type === 'all' ? null : router.push(localePath('/search'))"
20
18
  >
21
19
  <!-- :loading="$nuxt.loading || $store.state.loading" :class="{ 'mt-3':
22
20
  $store.state.scrolled }" -->
@@ -36,8 +34,8 @@
36
34
  <script setup>
37
35
  import { useDebounceFn } from "@vueuse/core";
38
36
  import { useRootStore } from "../../../stores/root";
39
- import { computed, useI18n } from "#imports";
40
- const { $router } = useNuxtApp();
37
+ import { computed, useI18n, useRouter } from "#imports";
38
+ const router = useRouter();
41
39
  const localePath = useLocalePath();
42
40
  const { locale } = useI18n();
43
41
  const rootStore = useRootStore();
@@ -177,8 +177,10 @@ const createGap = (pageIndex) => {
177
177
  isGap: true
178
178
  };
179
179
  };
180
+ const emit = defineEmits(["update"]);
180
181
  const updatePage = (page) => {
181
182
  rootStore.updatePage({ page, type: props.type, lang: locale.value });
183
+ emit("update", page);
182
184
  };
183
185
  const getGapPage = (index) => {
184
186
  return Math.floor(
@@ -26,6 +26,7 @@
26
26
  :page-padding="1"
27
27
  :page-gap="2"
28
28
  :hide-prev-next="false"
29
+ @update="onPageChange"
29
30
  />
30
31
  </div>
31
32
  </template>
@@ -39,10 +40,12 @@ import {
39
40
  computed,
40
41
  onBeforeUnmount,
41
42
  onMounted,
42
- useI18n
43
+ useI18n,
44
+ useRoute
43
45
  } from "#imports";
44
46
  const { $stores } = useNuxtApp();
45
47
  const { locale } = useI18n();
48
+ const route = useRoute();
46
49
  const rootStore = useRootStore();
47
50
  const props = defineProps({
48
51
  addBtn: {
@@ -103,4 +106,11 @@ try {
103
106
  onBeforeUnmount(() => {
104
107
  rootStore.resetState(props.type, locale.value);
105
108
  });
109
+ const onPageChange = (newPage) => {
110
+ rootStore.updatePage({ page: newPage, type: props.type, lang: locale.value });
111
+ window.scrollTo({
112
+ top: 0,
113
+ behavior: "smooth"
114
+ });
115
+ };
106
116
  </script>
@@ -0,0 +1,14 @@
1
+ <template>
2
+ <div>
3
+ {{ item.name }}
4
+ </div>
5
+ </template>
6
+
7
+ <script setup>
8
+ const props = defineProps({
9
+ item: {
10
+ type: Object,
11
+ required: true
12
+ }
13
+ });
14
+ </script>
@@ -0,0 +1,12 @@
1
+ <template>
2
+ {{ item }}
3
+ </template>
4
+
5
+ <script setup>
6
+ defineProps({
7
+ item: {
8
+ type: Object,
9
+ required: true
10
+ }
11
+ });
12
+ </script>
@@ -0,0 +1,20 @@
1
+ <template>
2
+ {{ item }}
3
+ </template>
4
+
5
+ <script setup>
6
+ import { useNuxtApp } from "#imports";
7
+ const { $stores } = useNuxtApp();
8
+ defineProps({
9
+ item: {
10
+ type: Object,
11
+ required: true
12
+ },
13
+ loading: {
14
+ type: Boolean,
15
+ required: false,
16
+ default: false
17
+ }
18
+ });
19
+ $stores.actions.loading = false;
20
+ </script>
@@ -0,0 +1,14 @@
1
+ <template>
2
+ <div>
3
+ {{ item.name }}
4
+ </div>
5
+ </template>
6
+
7
+ <script setup>
8
+ const props = defineProps({
9
+ item: {
10
+ type: Object,
11
+ required: true
12
+ }
13
+ });
14
+ </script>
@@ -0,0 +1,12 @@
1
+ <template>
2
+ {{ item }}
3
+ </template>
4
+
5
+ <script setup>
6
+ defineProps({
7
+ item: {
8
+ type: Object,
9
+ required: true
10
+ }
11
+ });
12
+ </script>
@@ -0,0 +1,20 @@
1
+ <template>
2
+ {{ item }}
3
+ </template>
4
+
5
+ <script setup>
6
+ import { useNuxtApp } from "#imports";
7
+ const { $stores } = useNuxtApp();
8
+ defineProps({
9
+ item: {
10
+ type: Object,
11
+ required: true
12
+ },
13
+ loading: {
14
+ type: Boolean,
15
+ required: false,
16
+ default: false
17
+ }
18
+ });
19
+ $stores.affiliations.loading = false;
20
+ </script>
@@ -0,0 +1,14 @@
1
+ <template>
2
+ <div>
3
+ {{ item.name }}
4
+ </div>
5
+ </template>
6
+
7
+ <script setup>
8
+ const props = defineProps({
9
+ item: {
10
+ type: Object,
11
+ required: true
12
+ }
13
+ });
14
+ </script>
@@ -0,0 +1,12 @@
1
+ <template>
2
+ {{ item }}
3
+ </template>
4
+
5
+ <script setup>
6
+ defineProps({
7
+ item: {
8
+ type: Object,
9
+ required: true
10
+ }
11
+ });
12
+ </script>
@@ -0,0 +1,20 @@
1
+ <template>
2
+ {{ item }}
3
+ </template>
4
+
5
+ <script setup>
6
+ import { useNuxtApp } from "#imports";
7
+ const { $stores } = useNuxtApp();
8
+ defineProps({
9
+ item: {
10
+ type: Object,
11
+ required: true
12
+ },
13
+ loading: {
14
+ type: Boolean,
15
+ required: false,
16
+ default: false
17
+ }
18
+ });
19
+ $stores.apps.loading = false;
20
+ </script>
@@ -0,0 +1,14 @@
1
+ <template>
2
+ <div>
3
+ {{ item.name }}
4
+ </div>
5
+ </template>
6
+
7
+ <script setup>
8
+ const props = defineProps({
9
+ item: {
10
+ type: Object,
11
+ required: true
12
+ }
13
+ });
14
+ </script>
@@ -0,0 +1,12 @@
1
+ <template>
2
+ {{ item }}
3
+ </template>
4
+
5
+ <script setup>
6
+ defineProps({
7
+ item: {
8
+ type: Object,
9
+ required: true
10
+ }
11
+ });
12
+ </script>
@@ -0,0 +1,20 @@
1
+ <template>
2
+ {{ item }}
3
+ </template>
4
+
5
+ <script setup>
6
+ import { useNuxtApp } from "#imports";
7
+ const { $stores } = useNuxtApp();
8
+ defineProps({
9
+ item: {
10
+ type: Object,
11
+ required: true
12
+ },
13
+ loading: {
14
+ type: Boolean,
15
+ required: false,
16
+ default: false
17
+ }
18
+ });
19
+ $stores.disciplines.loading = false;
20
+ </script>
@@ -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>