@datagouv/components-next 1.0.2-dev.204 → 1.0.2-dev.206
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/{Datafair.client-Cvuga2fe.js → Datafair.client-CKO7zvcu.js} +1 -1
- package/dist/{ImagePreview.client-BXpk0FV-.js → ImagePreview.client-Ds2a8rNF.js} +1 -1
- package/dist/{JsonPreview.client-D8dODX5U.js → JsonPreview.client-B1qB66gi.js} +2 -2
- package/dist/{MapContainer.client-BJVvyB2o.js → MapContainer.client-CmhRqcQO.js} +2 -2
- package/dist/{PdfPreview.client-DGy-H39T.js → PdfPreview.client-4DPbht9W.js} +2 -2
- package/dist/{Pmtiles.client-4prB0MP3.js → Pmtiles.client-B-SqGzWJ.js} +1 -1
- package/dist/{PreviewWrapper.vue_vue_type_script_setup_true_lang-BoORZnnB.js → PreviewWrapper.vue_vue_type_script_setup_true_lang-BhUv9AsR.js} +1 -1
- package/dist/{XmlPreview.client-DZnb0Kgw.js → XmlPreview.client-Dyw-XIcJ.js} +3 -3
- package/dist/components-next.js +1 -1
- package/dist/{index-EN--nWTY.js → index-D3tWi9cQ.js} +1 -1
- package/dist/{leaflet-src-RBL-h8nt.js → leaflet-src-RJqDGxU9.js} +1 -1
- package/dist/{main-CICNrWF8.js → main-DV8PLxLT.js} +2478 -2462
- package/dist/{vue3-xml-viewer.common-BzKiHzXQ.js → vue3-xml-viewer.common-w91Jvccv.js} +1 -1
- package/package.json +1 -1
- package/src/components/ResourceAccordion/Metadata.vue +18 -1
package/package.json
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import { computed } from 'vue'
|
|
3
|
+
import { RiInformationLine } from '@remixicon/vue'
|
|
3
4
|
import type { Resource } from '../../types/resources'
|
|
4
5
|
import CopyButton from '../CopyButton.vue'
|
|
5
6
|
import DescriptionDetails from '../DescriptionDetails.vue'
|
|
@@ -7,6 +8,7 @@ import DescriptionTerm from '../DescriptionTerm.vue'
|
|
|
7
8
|
import FormattedDate from '../FormattedDate.vue'
|
|
8
9
|
import { filesize } from '../../functions/helpers'
|
|
9
10
|
import ExtraAccordion from '../ExtraAccordion.vue'
|
|
11
|
+
import Toggletip from '../Toggletip.vue'
|
|
10
12
|
import { getResourceTitleId, getResourceLabel, getResourceFilesize } from '../../functions/resources'
|
|
11
13
|
import { useTranslation } from '../../composables/useTranslation'
|
|
12
14
|
|
|
@@ -41,8 +43,23 @@ const { t } = useTranslation()
|
|
|
41
43
|
</a>
|
|
42
44
|
</code>
|
|
43
45
|
</DescriptionDetails>
|
|
44
|
-
<DescriptionTerm>
|
|
46
|
+
<DescriptionTerm class="flex items-center">
|
|
45
47
|
{{ t('URL stable') }}
|
|
48
|
+
<Toggletip
|
|
49
|
+
:styled-button="false"
|
|
50
|
+
button-class="ml-1 border-transparent -outline-offset-2 inline-flex items-center justify-center rounded-sm p-1 text-gray-medium hover:bg-gray-lower transition-colors"
|
|
51
|
+
>
|
|
52
|
+
<RiInformationLine
|
|
53
|
+
class="size-4"
|
|
54
|
+
aria-hidden="true"
|
|
55
|
+
/>
|
|
56
|
+
<span class="sr-only">{{ t(`Qu'est-ce qu'une URL stable ?`) }}</span>
|
|
57
|
+
<template #toggletip>
|
|
58
|
+
<p class="fr-text--sm m-0">
|
|
59
|
+
{{ t(`Cette URL redirige toujours vers la dernière version du fichier. L'URL du fichier, elle, change à chaque mise à jour : privilégiez l'URL stable pour partager la ressource ou l'utiliser dans un script.`) }}
|
|
60
|
+
</p>
|
|
61
|
+
</template>
|
|
62
|
+
</Toggletip>
|
|
46
63
|
<CopyButton
|
|
47
64
|
:label="t(`Copier l'URL stable`)"
|
|
48
65
|
:copied-label="t('URL stable copiée !')"
|