@datagouv/components-next 1.4.1-dev.1373.g379aceb6 → 1.4.1-dev.1375.ge1f9e509
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/assets/main.css +4 -0
- package/dist/{Control-CeBb5PEu.js → Control-DPuXeUqi.js} +3 -12
- package/dist/{Datafair.client-Ci2WOgAS.js → Datafair.client-LlEgG7WU.js} +2 -3
- package/dist/{Image-CBQwYbQB.js → Image-DVWRoLLI.js} +7 -22
- package/dist/{ImagePreview.client-B4RtxuiJ.js → ImagePreview.client-Db5dmxMP.js} +2 -3
- package/dist/{JsonPreview.client-r7swv2fp.js → JsonPreview.client-DKy2AexC.js} +4 -6
- package/dist/{Layer-BPuffNS-.js → Layer-D_5tYbVm.js} +7 -9
- package/dist/{Map-QeL96qbQ.js → Map-CTBJEae_.js} +937 -967
- package/dist/{MapContainer.client-CxH1a8Tn.js → MapContainer.client-Clk9_bbS.js} +13 -15
- package/dist/{OSM-DT4I7v8A.js → OSM-B5Zc3qAf.js} +2 -3
- package/dist/{PdfPreview.client-BjeMcqcy.js → PdfPreview.client-D3wHTDb9.js} +130 -378
- package/dist/{PdfSkeleton-CVZxJaeL.js → PdfSkeleton-nas5Pmia.js} +2 -3
- package/dist/{Pmtiles.client-D8idR2l7.js → Pmtiles.client-NGYdeSJY.js} +151 -350
- package/dist/{PreviewError-Cx7CItT_.js → PreviewError-EeaGx3SL.js} +399 -392
- package/dist/{PreviewWrapper-Cd1RSmS-.js → PreviewWrapper-BhldDdXK.js} +2 -3
- package/dist/{ScaleLine-Cwwk9wJo.js → ScaleLine-C_tuJ6VG.js} +3 -4
- package/dist/Tile-8nHSuqcv.js +571 -0
- package/dist/{Tile-4WpHaLOZ.js → Tile-Bu5lF4M5.js} +8 -13
- package/dist/{TileImage-CZZ4lgsm.js → TileImage-CgO5alXc.js} +105 -113
- package/dist/{View-DWqx4Jqr.js → View-Dad8DfSD.js} +25 -51
- package/dist/{XmlPreview.client-cSebx8br.js → XmlPreview.client-CmGbc3c3.js} +5 -7
- package/dist/assets/maplibre-gl-worker-CEzvAyZY.js +10 -0
- package/dist/components-next.css +1 -1
- package/dist/components-next.js +15585 -15914
- package/dist/components.css +1 -1
- package/dist/{en-C_qOt4Jn.js → en-OIaJCts4.js} +1 -2
- package/dist/{france-DPcdJc84.js → france-BtSQqcqV.js} +5 -9
- package/dist/{hvd-ZlsiTVFh.js → hvd-CTia2VCz.js} +1 -2
- package/dist/{inspire-DZQ-yA5f.js → inspire-Cc-Kc4K-.js} +1 -2
- package/dist/{leaflet-src-lLkzhpcP.js → leaflet-src-BY_Zq0V0.js} +77 -126
- package/dist/{proj-DM6GW1n3.js → proj-COhZ08DR.js} +19 -37
- package/dist/{purify.es-D6pPunDo.js → purify.es-CGAWnSTR.js} +4 -27
- package/dist/{rolldown-runtime-CEFd7nDs.js → rolldown-runtime-DsPmjQRF.js} +2 -3
- package/dist/{sl-BxQ_ZY_w.js → sl-CKkMwQhf.js} +1 -2
- package/dist/{spd-Cs37HjuR.js → spd-Djcs02gw.js} +1 -2
- package/dist/{sr-JDtennFO.js → sr-DabGmchD.js} +1 -2
- package/dist/{src-D_UE0st7.js → src-D_o-aUzl.js} +1612 -2428
- package/dist/{text-clamp.esm-DRvX2Gzm.js → text-clamp.esm-DE3022VR.js} +3 -5
- package/dist/{transform-Ct1GejD-.js → transform-CNeEnSK9.js} +7 -13
- package/dist/{vue3-json-viewer-BJgUfh-l.js → vue3-json-viewer-CUx5EFVA.js} +1 -2
- package/dist/{vue3-xml-viewer.common-DbJwzvCC.js → vue3-xml-viewer.common-C0bbtsGT.js} +2 -3
- package/package.json +2 -2
- package/src/components/CardMedia.vue +42 -0
- package/src/components/ChartCard.vue +53 -59
- package/src/components/DataserviceCard.vue +69 -85
- package/src/components/DataserviceQualityInline.vue +4 -20
- package/src/components/DataserviceQualityTooltipContent.vue +57 -65
- package/src/components/DatasetCard.vue +80 -93
- package/src/components/DatasetQualityInline.vue +4 -20
- package/src/components/DatasetQualityTooltipContent.vue +60 -62
- package/src/components/DiscussionMessageCard.vue +19 -22
- package/src/components/ObjectCard.vue +89 -18
- package/src/components/ObjectCardBadge.vue +27 -16
- package/src/components/ObjectCardMeta.vue +15 -0
- package/src/components/ObjectCardMetric.vue +23 -0
- package/src/components/ObjectCardMetrics.vue +6 -0
- package/src/components/ObjectCardOwner.vue +170 -17
- package/src/components/ObjectCardQuality.vue +32 -0
- package/src/components/ObjectCardShortDescription.vue +1 -1
- package/src/components/OrganizationCard.vue +101 -69
- package/src/components/OrganizationNameInline.vue +49 -0
- package/src/components/OrganizationTypeBadge.vue +21 -0
- package/src/components/OwnerType.vue +1 -1
- package/src/components/OwnerTypeIcon.vue +7 -3
- package/src/components/PostCard.vue +31 -35
- package/src/components/ProgressBar.vue +6 -3
- package/src/components/QualityItem.vue +9 -18
- package/src/components/QualityScore.vue +7 -1
- package/src/components/ReuseCard.vue +114 -95
- package/src/components/ReuseDetails.vue +19 -29
- package/src/components/SchemaCard.vue +30 -27
- package/src/components/Search/GlobalSearch.vue +7 -4
- package/src/components/Toggletip.vue +24 -12
- package/src/components/Tooltip.vue +113 -29
- package/src/components/TopicCard.vue +69 -78
- package/src/main.ts +0 -4
- package/dist/Tile-BV44yf69.js +0 -574
- package/dist/assets/maplibre-gl-worker-C24SsKwV.js +0 -10
- package/src/components/ObjectCardHeader.vue +0 -42
- package/src/components/OrganizationHorizontalCard.vue +0 -87
- package/src/components/ReuseHorizontalCard.vue +0 -81
|
@@ -1,69 +1,61 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
<
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
/>
|
|
60
|
-
<QualityItem
|
|
61
|
-
:passed="quality.access_conditions_clear"
|
|
62
|
-
:message-passed="t(`Conditions d'accès claires`)"
|
|
63
|
-
:message-failed="t(`Conditions d'accès non précisées`)"
|
|
64
|
-
class="pb-0"
|
|
65
|
-
/>
|
|
66
|
-
</ul>
|
|
2
|
+
<section class="flex flex-col gap-3">
|
|
3
|
+
<p class="m-0 text-sm/[22px] font-semibold text-gray-title">
|
|
4
|
+
{{ t("Qualité des métadonnées :") }}
|
|
5
|
+
</p>
|
|
6
|
+
<ul class="list-none flex flex-col gap-2 m-0 p-0">
|
|
7
|
+
<QualityItem
|
|
8
|
+
:passed="quality.has_description"
|
|
9
|
+
:message-passed="t('Description renseignée')"
|
|
10
|
+
:message-failed="t('Description non renseignée')"
|
|
11
|
+
/>
|
|
12
|
+
<QualityItem
|
|
13
|
+
:passed="quality.has_machine_documentation"
|
|
14
|
+
:message-passed="t('Documentation machine (OpenAPI) disponible')"
|
|
15
|
+
:message-failed="t('Documentation machine (OpenAPI) manquante')"
|
|
16
|
+
/>
|
|
17
|
+
<QualityItem
|
|
18
|
+
:passed="quality.has_technical_documentation"
|
|
19
|
+
:message-passed="t('Documentation technique renseignée')"
|
|
20
|
+
:message-failed="t('Documentation technique manquante')"
|
|
21
|
+
/>
|
|
22
|
+
<QualityItem
|
|
23
|
+
:passed="quality.has_business_documentation"
|
|
24
|
+
:message-passed="t('Documentation métier renseignée')"
|
|
25
|
+
:message-failed="t('Documentation métier manquante')"
|
|
26
|
+
/>
|
|
27
|
+
<QualityItem
|
|
28
|
+
:passed="quality.license"
|
|
29
|
+
:message-passed="t('Licence renseignée')"
|
|
30
|
+
:message-failed="t('Licence non renseignée')"
|
|
31
|
+
/>
|
|
32
|
+
<QualityItem
|
|
33
|
+
:passed="quality.has_contact_point"
|
|
34
|
+
:message-passed="t('Point de contact renseigné')"
|
|
35
|
+
:message-failed="t('Point de contact non renseigné')"
|
|
36
|
+
/>
|
|
37
|
+
<QualityItem
|
|
38
|
+
:passed="quality.has_base_api_url"
|
|
39
|
+
:message-passed="t(`URL de base de l'API renseignée`)"
|
|
40
|
+
:message-failed="t(`URL de base de l'API non renseignée`)"
|
|
41
|
+
/>
|
|
42
|
+
<QualityItem
|
|
43
|
+
:passed="quality.availability_documented"
|
|
44
|
+
:message-passed="t('Disponibilité documentée')"
|
|
45
|
+
:message-failed="t('Disponibilité non documentée')"
|
|
46
|
+
/>
|
|
47
|
+
<QualityItem
|
|
48
|
+
:passed="quality.rate_limiting_documented"
|
|
49
|
+
:message-passed="t(`Limite d'appels documentée`)"
|
|
50
|
+
:message-failed="t(`Limite d'appels non documentée`)"
|
|
51
|
+
/>
|
|
52
|
+
<QualityItem
|
|
53
|
+
:passed="quality.access_conditions_clear"
|
|
54
|
+
:message-passed="t(`Conditions d'accès claires`)"
|
|
55
|
+
:message-failed="t(`Conditions d'accès non précisées`)"
|
|
56
|
+
/>
|
|
57
|
+
</ul>
|
|
58
|
+
</section>
|
|
67
59
|
</template>
|
|
68
60
|
|
|
69
61
|
<script setup lang="ts">
|
|
@@ -1,25 +1,15 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<ObjectCard
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
{{ t('Brouillon') }}
|
|
9
|
-
</ObjectCardBadge>
|
|
10
|
-
<ObjectCardBadge
|
|
11
|
-
v-else-if="dataset.archived"
|
|
12
|
-
:icon="RiArchiveLine"
|
|
13
|
-
>
|
|
14
|
-
{{ t('Archivé') }}
|
|
15
|
-
</ObjectCardBadge>
|
|
16
|
-
</template>
|
|
17
|
-
|
|
2
|
+
<ObjectCard
|
|
3
|
+
:url="datasetUrl || dataset.page"
|
|
4
|
+
:target="datasetUrlInNewTab ? '_blank' : undefined"
|
|
5
|
+
:icon="RiDatabase2Line"
|
|
6
|
+
:title-tag
|
|
7
|
+
>
|
|
18
8
|
<template #media>
|
|
19
9
|
<OrganizationLogo
|
|
20
10
|
v-if="dataset.organization"
|
|
21
11
|
:organization="dataset.organization"
|
|
22
|
-
size-class="size-12"
|
|
12
|
+
size-class="size-12 p-1"
|
|
23
13
|
/>
|
|
24
14
|
<Avatar
|
|
25
15
|
v-else-if="dataset.owner"
|
|
@@ -32,33 +22,41 @@
|
|
|
32
22
|
class="size-12"
|
|
33
23
|
/>
|
|
34
24
|
</template>
|
|
35
|
-
<
|
|
36
|
-
|
|
37
|
-
:url="datasetUrl || dataset.page"
|
|
38
|
-
:target="datasetUrlInNewTab ? '_blank' : undefined"
|
|
39
|
-
:title-tag="titleTag"
|
|
40
|
-
>
|
|
41
|
-
{{ dataset.title }}
|
|
42
|
-
<template
|
|
25
|
+
<template #title>
|
|
26
|
+
{{ dataset.title }}<small
|
|
43
27
|
v-if="dataset.acronym"
|
|
44
|
-
|
|
28
|
+
class="ml-2"
|
|
29
|
+
>{{ dataset.acronym }}</small>
|
|
30
|
+
</template>
|
|
31
|
+
<template
|
|
32
|
+
v-if="dataset.private || dataset.archived"
|
|
33
|
+
#badge
|
|
34
|
+
>
|
|
35
|
+
<ObjectCardBadge
|
|
36
|
+
v-if="dataset.private"
|
|
37
|
+
:icon="RiLockLine"
|
|
45
38
|
>
|
|
46
|
-
|
|
47
|
-
</
|
|
48
|
-
|
|
49
|
-
|
|
39
|
+
{{ t('Brouillon') }}
|
|
40
|
+
</ObjectCardBadge>
|
|
41
|
+
<ObjectCardBadge
|
|
42
|
+
v-else
|
|
43
|
+
:icon="RiArchiveLine"
|
|
44
|
+
>
|
|
45
|
+
{{ t('Archivé') }}
|
|
46
|
+
</ObjectCardBadge>
|
|
47
|
+
</template>
|
|
48
|
+
|
|
49
|
+
<ObjectCardOwner
|
|
50
50
|
v-if="dataset.organization || dataset.owner"
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
/>
|
|
58
|
-
<RiSubtractLine class="hidden md:block size-4 flex-none fill-gray-medium" />
|
|
51
|
+
show-details
|
|
52
|
+
:organization="dataset.organization"
|
|
53
|
+
:owner="dataset.owner"
|
|
54
|
+
:organization-url="organizationUrl"
|
|
55
|
+
/>
|
|
56
|
+
<ObjectCardMeta>
|
|
59
57
|
<TranslationT
|
|
60
|
-
tag="
|
|
61
|
-
class="
|
|
58
|
+
tag="span"
|
|
59
|
+
class="tabular-nums"
|
|
62
60
|
keypath="Mis à jour {date}"
|
|
63
61
|
>
|
|
64
62
|
<template #date>
|
|
@@ -69,58 +67,38 @@
|
|
|
69
67
|
/>
|
|
70
68
|
</template>
|
|
71
69
|
</TranslationT>
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
<DatasetQualityInline :quality="dataset.quality" />
|
|
76
|
-
</div>
|
|
77
|
-
<RiSubtractLine
|
|
78
|
-
aria-hidden="true"
|
|
79
|
-
class="hidden sm:block size-3"
|
|
70
|
+
<DatasetQualityInline
|
|
71
|
+
:quality="dataset.quality"
|
|
72
|
+
class="max-[480px]:hidden"
|
|
80
73
|
/>
|
|
81
|
-
<
|
|
82
|
-
<
|
|
83
|
-
|
|
84
|
-
:
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
:
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
<RiLineChartLine
|
|
105
|
-
aria-hidden="true"
|
|
106
|
-
class="size-3.5"
|
|
107
|
-
/>{{ summarize(dataset.metrics.reuses) }}
|
|
108
|
-
</p>
|
|
109
|
-
<p
|
|
110
|
-
class="text-sm mb-0 flex items-center gap-0.5"
|
|
111
|
-
:aria-label="t('{n} abonnés | {n} abonné | {n} abonnés', dataset.metrics.followers)"
|
|
112
|
-
>
|
|
113
|
-
<RiStarLine
|
|
114
|
-
aria-hidden="true"
|
|
115
|
-
class="size-3.5"
|
|
116
|
-
/>{{ summarize(dataset.metrics.followers) }}
|
|
117
|
-
</p>
|
|
118
|
-
</div>
|
|
119
|
-
</div>
|
|
74
|
+
<ObjectCardMetrics class="max-[480px]:hidden">
|
|
75
|
+
<ObjectCardMetric
|
|
76
|
+
:icon="RiEyeLine"
|
|
77
|
+
:value="dataset.metrics.views"
|
|
78
|
+
:label="t('{n} vues | {n} vue | {n} vues', dataset.metrics.views)"
|
|
79
|
+
/>
|
|
80
|
+
<ObjectCardMetric
|
|
81
|
+
:icon="RiDownloadLine"
|
|
82
|
+
:value="dataset.metrics.resources_downloads"
|
|
83
|
+
:label="t('{n} téléchargements des ressources | {n} téléchargement des ressources | {n} téléchargements des ressources', dataset.metrics.resources_downloads)"
|
|
84
|
+
/>
|
|
85
|
+
<ObjectCardMetric
|
|
86
|
+
:icon="RiLineChartLine"
|
|
87
|
+
:value="dataset.metrics.reuses"
|
|
88
|
+
:label="t('{n} réutilisations | {n} réutilisation | {n} réutilisations', dataset.metrics.reuses)"
|
|
89
|
+
/>
|
|
90
|
+
<ObjectCardMetric
|
|
91
|
+
:icon="RiStarLine"
|
|
92
|
+
:value="dataset.metrics.followers"
|
|
93
|
+
:label="t('{n} abonnés | {n} abonné | {n} abonnés', dataset.metrics.followers)"
|
|
94
|
+
/>
|
|
95
|
+
</ObjectCardMetrics>
|
|
96
|
+
</ObjectCardMeta>
|
|
120
97
|
<slot>
|
|
121
98
|
<ObjectCardShortDescription
|
|
122
99
|
v-if="showDescriptionShort"
|
|
123
|
-
:text="getDescriptionShort(
|
|
100
|
+
:text="getDescriptionShort(dataset)"
|
|
101
|
+
class="max-md:hidden"
|
|
124
102
|
/>
|
|
125
103
|
</slot>
|
|
126
104
|
</ObjectCard>
|
|
@@ -128,20 +106,29 @@
|
|
|
128
106
|
|
|
129
107
|
<script setup lang="ts">
|
|
130
108
|
import type { RouteLocationRaw } from 'vue-router'
|
|
131
|
-
import {
|
|
109
|
+
import {
|
|
110
|
+
RiArchiveLine,
|
|
111
|
+
RiDatabase2Line,
|
|
112
|
+
RiDownloadLine,
|
|
113
|
+
RiEyeLine,
|
|
114
|
+
RiLineChartLine,
|
|
115
|
+
RiLockLine,
|
|
116
|
+
RiStarLine,
|
|
117
|
+
} from '@remixicon/vue'
|
|
132
118
|
import type { Dataset, DatasetV2 } from '../types/datasets'
|
|
133
119
|
import type { TitleTag } from '../types/ui'
|
|
134
|
-
import { summarize } from '../functions/helpers'
|
|
135
120
|
import { getDescriptionShort } from '../functions/description'
|
|
136
121
|
import { useTranslation } from '../composables/useTranslation'
|
|
137
122
|
import DatasetQualityInline from './DatasetQualityInline.vue'
|
|
138
123
|
import Avatar from './Avatar.vue'
|
|
139
124
|
import Placeholder from './Placeholder.vue'
|
|
140
125
|
import OrganizationLogo from './OrganizationLogo.vue'
|
|
141
|
-
import ObjectCardOwner from './ObjectCardOwner.vue'
|
|
142
126
|
import ObjectCard from './ObjectCard.vue'
|
|
143
127
|
import ObjectCardBadge from './ObjectCardBadge.vue'
|
|
144
|
-
import
|
|
128
|
+
import ObjectCardMeta from './ObjectCardMeta.vue'
|
|
129
|
+
import ObjectCardMetric from './ObjectCardMetric.vue'
|
|
130
|
+
import ObjectCardMetrics from './ObjectCardMetrics.vue'
|
|
131
|
+
import ObjectCardOwner from './ObjectCardOwner.vue'
|
|
145
132
|
import ObjectCardShortDescription from './ObjectCardShortDescription.vue'
|
|
146
133
|
import FormattedDate from './FormattedDate.vue'
|
|
147
134
|
import TranslationT from './TranslationT.vue'
|
|
@@ -156,7 +143,7 @@ type Props = {
|
|
|
156
143
|
titleTag?: TitleTag
|
|
157
144
|
}
|
|
158
145
|
|
|
159
|
-
|
|
146
|
+
withDefaults(defineProps<Props>(), {
|
|
160
147
|
showDescriptionShort: true,
|
|
161
148
|
})
|
|
162
149
|
|
|
@@ -1,31 +1,15 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<
|
|
3
|
-
<
|
|
4
|
-
|
|
5
|
-
button-class="border-transparent -outline-offset-2 inline-flex items-center justify-center hover:bg-gray-lower transition-colors"
|
|
6
|
-
:button-props="{ class: 'relative z-2 gap-1 rounded-sm px-1 -mx-1 group/quality', title: t('Qualité des métadonnées') }"
|
|
7
|
-
>
|
|
8
|
-
<RiInformationLine class="size-3.5 shrink-0" />
|
|
9
|
-
<span class="text-gray-medium text-sm group-hover/quality:underline">{{ t('Métadonnées :') }}</span>
|
|
10
|
-
<QualityScore :score="quality.score" />
|
|
11
|
-
<template #toggletip>
|
|
12
|
-
<DatasetQualityTooltipContent :quality />
|
|
13
|
-
</template>
|
|
14
|
-
</Toggletip>
|
|
15
|
-
</div>
|
|
2
|
+
<ObjectCardQuality :score="quality.score">
|
|
3
|
+
<DatasetQualityTooltipContent :quality />
|
|
4
|
+
</ObjectCardQuality>
|
|
16
5
|
</template>
|
|
17
6
|
|
|
18
7
|
<script setup lang="ts">
|
|
19
|
-
import { RiInformationLine } from '@remixicon/vue'
|
|
20
8
|
import type { Quality } from '../types/datasets'
|
|
21
|
-
import QualityScore from './QualityScore.vue'
|
|
22
9
|
import DatasetQualityTooltipContent from './DatasetQualityTooltipContent.vue'
|
|
23
|
-
import
|
|
24
|
-
import { useTranslation } from '../composables/useTranslation'
|
|
10
|
+
import ObjectCardQuality from './ObjectCardQuality.vue'
|
|
25
11
|
|
|
26
12
|
defineProps<{
|
|
27
13
|
quality: Quality
|
|
28
14
|
}>()
|
|
29
|
-
|
|
30
|
-
const { t } = useTranslation()
|
|
31
15
|
</script>
|
|
@@ -1,67 +1,65 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
<
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
<
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
:message-failed="t('Certains fichiers ne sont pas disponibles')"
|
|
52
|
-
class="pb-0"
|
|
53
|
-
/>
|
|
54
|
-
</ul>
|
|
55
|
-
<div class="fr-grid-row fr-grid-row--right">
|
|
56
|
-
<a
|
|
57
|
-
:href="config.datasetQualityGuideUrl"
|
|
58
|
-
target="_blank"
|
|
59
|
-
rel="noopener"
|
|
60
|
-
:title="t('En savoir plus sur cet indicateur - ouvre une nouvelle fenêtre')"
|
|
2
|
+
<section class="flex flex-col gap-3">
|
|
3
|
+
<p class="m-0 text-sm/[22px] font-semibold text-gray-title">
|
|
4
|
+
{{ t("Qualité des métadonnées :") }}
|
|
5
|
+
</p>
|
|
6
|
+
<ul class="list-none flex flex-col gap-2 m-0 p-0">
|
|
7
|
+
<DatasetQualityItem
|
|
8
|
+
:passed="quality.dataset_description_quality"
|
|
9
|
+
:message-passed="t('Description des données renseignée')"
|
|
10
|
+
:message-failed="t('Description des données non renseignée')"
|
|
11
|
+
/>
|
|
12
|
+
<DatasetQualityItem
|
|
13
|
+
:passed="quality.resources_documentation"
|
|
14
|
+
:message-passed="t('Fichiers documentés')"
|
|
15
|
+
:message-failed="t('Documentation des fichiers manquante')"
|
|
16
|
+
/>
|
|
17
|
+
<DatasetQualityItem
|
|
18
|
+
:passed="quality.license"
|
|
19
|
+
:message-passed="t('Licence renseignée')"
|
|
20
|
+
:message-failed="t('Licence non renseignée')"
|
|
21
|
+
/>
|
|
22
|
+
<DatasetQualityItem
|
|
23
|
+
:passed="quality.update_frequency && !!quality.update_fulfilled_in_time"
|
|
24
|
+
:message-passed="t('Fréquence de mise à jour respectée')"
|
|
25
|
+
:message-failed="quality.update_frequency ? t('Fréquence de mise à jour non respectée') : t('Fréquence de mise à jour non renseignée')"
|
|
26
|
+
/>
|
|
27
|
+
<DatasetQualityItem
|
|
28
|
+
:passed="quality.has_open_format"
|
|
29
|
+
:message-passed="t('Formats de fichiers standards')"
|
|
30
|
+
:message-failed="t('Formats de fichiers non standards')"
|
|
31
|
+
/>
|
|
32
|
+
<DatasetQualityItem
|
|
33
|
+
:passed="quality.temporal_coverage"
|
|
34
|
+
:message-passed="t('Couverture temporelle renseignée')"
|
|
35
|
+
:message-failed="t('Couverture temporelle non renseignée')"
|
|
36
|
+
/>
|
|
37
|
+
<DatasetQualityItem
|
|
38
|
+
:passed="quality.spatial"
|
|
39
|
+
:message-passed="t('Couverture spatiale renseignée')"
|
|
40
|
+
:message-failed="t('Couverture spatiale non renseignée')"
|
|
41
|
+
/>
|
|
42
|
+
<DatasetQualityItem
|
|
43
|
+
:passed="quality.all_resources_available"
|
|
44
|
+
:message-passed="t('Tous les fichiers sont disponibles')"
|
|
45
|
+
:message-failed="t('Certains fichiers ne sont pas disponibles')"
|
|
46
|
+
/>
|
|
47
|
+
</ul>
|
|
48
|
+
<p
|
|
49
|
+
v-if="config.datasetQualityGuideUrl"
|
|
50
|
+
class="m-0 text-sm/[22px] font-medium"
|
|
61
51
|
>
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
52
|
+
<a
|
|
53
|
+
:href="config.datasetQualityGuideUrl"
|
|
54
|
+
target="_blank"
|
|
55
|
+
rel="noopener"
|
|
56
|
+
class="text-gray-title bg-none underline underline-offset-3"
|
|
57
|
+
:title="t('En savoir plus sur cet indicateur - ouvre une nouvelle fenêtre')"
|
|
58
|
+
>
|
|
59
|
+
{{ t("En savoir plus sur cet indicateur") }}
|
|
60
|
+
</a>
|
|
61
|
+
</p>
|
|
62
|
+
</section>
|
|
65
63
|
</template>
|
|
66
64
|
|
|
67
65
|
<script setup lang="ts">
|
|
@@ -1,27 +1,23 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<ObjectCard
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
>
|
|
2
|
+
<ObjectCard
|
|
3
|
+
:url="discussionUrl || discussion.self_web_url || '#'"
|
|
4
|
+
:icon="RiChat3Line"
|
|
5
|
+
>
|
|
6
|
+
<template #title>
|
|
7
7
|
{{ discussion.title }}
|
|
8
|
-
</
|
|
8
|
+
</template>
|
|
9
9
|
|
|
10
|
-
<
|
|
11
|
-
v-if="discussion.organization || discussion.user"
|
|
12
|
-
class="text-sm flex flex-wrap md:flex-nowrap gap-y-1 items-center truncate"
|
|
13
|
-
>
|
|
10
|
+
<ObjectCardMeta class="mt-2">
|
|
14
11
|
<ObjectCardOwner
|
|
12
|
+
v-if="discussion.organization || discussion.user"
|
|
13
|
+
show-details
|
|
15
14
|
:organization="discussion.organization"
|
|
16
15
|
:owner="discussion.user"
|
|
17
16
|
:organization-url="organizationUrl"
|
|
18
17
|
/>
|
|
19
|
-
<RiSubtractLine
|
|
20
|
-
aria-hidden="true"
|
|
21
|
-
class="size-4 flex-none fill-gray-medium"
|
|
22
|
-
/>
|
|
23
18
|
<TranslationT
|
|
24
|
-
|
|
19
|
+
tag="span"
|
|
20
|
+
class="tabular-nums"
|
|
25
21
|
keypath="Posté {date}"
|
|
26
22
|
>
|
|
27
23
|
<template #date>
|
|
@@ -32,24 +28,25 @@
|
|
|
32
28
|
/>
|
|
33
29
|
</template>
|
|
34
30
|
</TranslationT>
|
|
35
|
-
</
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
31
|
+
</ObjectCardMeta>
|
|
32
|
+
<ObjectCardShortDescription
|
|
33
|
+
:text="firstMessageContent"
|
|
34
|
+
class="mt-2 max-md:hidden"
|
|
35
|
+
/>
|
|
39
36
|
<slot />
|
|
40
37
|
</ObjectCard>
|
|
41
38
|
</template>
|
|
42
39
|
|
|
43
40
|
<script setup lang="ts">
|
|
44
|
-
import { RiChat3Line
|
|
41
|
+
import { RiChat3Line } from '@remixicon/vue'
|
|
45
42
|
import { computed } from 'vue'
|
|
46
43
|
import type { RouteLocationRaw } from 'vue-router'
|
|
47
44
|
import type { Thread } from '../types/discussions'
|
|
45
|
+
import FormattedDate from './FormattedDate.vue'
|
|
48
46
|
import ObjectCard from './ObjectCard.vue'
|
|
49
|
-
import
|
|
47
|
+
import ObjectCardMeta from './ObjectCardMeta.vue'
|
|
50
48
|
import ObjectCardOwner from './ObjectCardOwner.vue'
|
|
51
49
|
import ObjectCardShortDescription from './ObjectCardShortDescription.vue'
|
|
52
|
-
import FormattedDate from './FormattedDate.vue'
|
|
53
50
|
import TranslationT from './TranslationT.vue'
|
|
54
51
|
|
|
55
52
|
const props = defineProps<{
|