@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,5 +1,8 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<ObjectCard
|
|
2
|
+
<ObjectCard
|
|
3
|
+
:url="topicUrl || topic.page || '#'"
|
|
4
|
+
:icon="RiBookShelfLine"
|
|
5
|
+
>
|
|
3
6
|
<template
|
|
4
7
|
v-if="showLogo"
|
|
5
8
|
#media
|
|
@@ -7,7 +10,7 @@
|
|
|
7
10
|
<OrganizationLogo
|
|
8
11
|
v-if="topic.organization"
|
|
9
12
|
:organization="topic.organization"
|
|
10
|
-
size-class="size-12"
|
|
13
|
+
size-class="size-12 p-1"
|
|
11
14
|
/>
|
|
12
15
|
<Avatar
|
|
13
16
|
v-else-if="topic.owner"
|
|
@@ -20,100 +23,82 @@
|
|
|
20
23
|
class="size-12"
|
|
21
24
|
/>
|
|
22
25
|
</template>
|
|
23
|
-
|
|
24
|
-
<ObjectCardHeader
|
|
25
|
-
:icon="RiBookShelfLine"
|
|
26
|
-
:url="topicUrl || topic.page || '#'"
|
|
27
|
-
>
|
|
26
|
+
<template #title>
|
|
28
27
|
{{ topic.name }}
|
|
29
|
-
</
|
|
28
|
+
</template>
|
|
30
29
|
|
|
31
|
-
<
|
|
30
|
+
<ObjectCardOwner
|
|
32
31
|
v-if="topic.organization || topic.owner"
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
<RiSubtractLine
|
|
41
|
-
v-if="(topic.organization || topic.owner) && topic.last_modified"
|
|
42
|
-
aria-hidden="true"
|
|
43
|
-
class="hidden md:block size-4 flex-none fill-gray-medium"
|
|
44
|
-
/>
|
|
32
|
+
:show-logo="!showLogo"
|
|
33
|
+
show-details
|
|
34
|
+
:organization="topic.organization"
|
|
35
|
+
:owner="topic.owner"
|
|
36
|
+
:organization-url="organizationUrl"
|
|
37
|
+
/>
|
|
38
|
+
<ObjectCardMeta v-if="topic.last_modified">
|
|
45
39
|
<TranslationT
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
class="w-full md:w-auto text-gray-medium whitespace-nowrap"
|
|
40
|
+
tag="span"
|
|
41
|
+
class="tabular-nums"
|
|
49
42
|
keypath="Mis à jour {date}"
|
|
50
43
|
>
|
|
51
44
|
<template #date>
|
|
52
45
|
<FormattedDate
|
|
53
46
|
:date="topic.last_modified"
|
|
54
47
|
format="relative"
|
|
55
|
-
:options="{ dateStyle: '
|
|
48
|
+
:options="{ dateStyle: 'medium' }"
|
|
56
49
|
/>
|
|
57
50
|
</template>
|
|
58
51
|
</TranslationT>
|
|
59
|
-
</
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
<div
|
|
64
|
-
v-if="showStats && (topic.nb_datasets || topic.nb_dataservices || topic.nb_reuses)"
|
|
65
|
-
class="flex items-center gap-4 mt-2 text-xs text-gray-medium"
|
|
52
|
+
</ObjectCardMeta>
|
|
53
|
+
<ObjectCardMeta
|
|
54
|
+
v-if="showStats && hasStats"
|
|
55
|
+
class="max-[480px]:hidden"
|
|
66
56
|
>
|
|
67
|
-
<
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
class="size-4"
|
|
57
|
+
<ObjectCardMetrics>
|
|
58
|
+
<ObjectCardMetric
|
|
59
|
+
v-if="topic.nb_datasets !== undefined"
|
|
60
|
+
:icon="RiDatabase2Line"
|
|
61
|
+
:value="topic.nb_datasets"
|
|
62
|
+
:label="t('{n} jeux de données | {n} jeu de données | {n} jeux de données', topic.nb_datasets)"
|
|
74
63
|
/>
|
|
75
|
-
<
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
class="flex items-center gap-1"
|
|
81
|
-
>
|
|
82
|
-
<RiTerminalLine
|
|
83
|
-
aria-hidden="true"
|
|
84
|
-
class="size-4"
|
|
64
|
+
<ObjectCardMetric
|
|
65
|
+
v-if="topic.nb_dataservices !== undefined"
|
|
66
|
+
:icon="RiTerminalLine"
|
|
67
|
+
:value="topic.nb_dataservices"
|
|
68
|
+
:label="t('{n} API', topic.nb_dataservices)"
|
|
85
69
|
/>
|
|
86
|
-
<
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
class="flex items-center gap-1"
|
|
92
|
-
>
|
|
93
|
-
<RiLineChartLine
|
|
94
|
-
aria-hidden="true"
|
|
95
|
-
class="size-4"
|
|
70
|
+
<ObjectCardMetric
|
|
71
|
+
v-if="topic.nb_reuses !== undefined"
|
|
72
|
+
:icon="RiLineChartLine"
|
|
73
|
+
:value="topic.nb_reuses"
|
|
74
|
+
:label="t('{n} réutilisations | {n} réutilisation | {n} réutilisations', topic.nb_reuses)"
|
|
96
75
|
/>
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
76
|
+
</ObjectCardMetrics>
|
|
77
|
+
</ObjectCardMeta>
|
|
78
|
+
<ObjectCardShortDescription
|
|
79
|
+
:text="topic.description"
|
|
80
|
+
class="max-md:hidden"
|
|
81
|
+
/>
|
|
101
82
|
<slot />
|
|
102
83
|
</ObjectCard>
|
|
103
84
|
</template>
|
|
104
85
|
|
|
105
86
|
<script setup lang="ts">
|
|
106
|
-
import {
|
|
87
|
+
import { computed } from 'vue'
|
|
88
|
+
import { RiBookShelfLine, RiDatabase2Line, RiLineChartLine, RiTerminalLine } from '@remixicon/vue'
|
|
107
89
|
import type { RouteLocationRaw } from 'vue-router'
|
|
108
90
|
import type { TopicV2 } from '../types/topics'
|
|
109
|
-
import
|
|
91
|
+
import { useTranslation } from '../composables/useTranslation'
|
|
92
|
+
import Avatar from './Avatar.vue'
|
|
93
|
+
import FormattedDate from './FormattedDate.vue'
|
|
94
|
+
import ObjectCard from './ObjectCard.vue'
|
|
95
|
+
import ObjectCardMeta from './ObjectCardMeta.vue'
|
|
96
|
+
import ObjectCardMetric from './ObjectCardMetric.vue'
|
|
97
|
+
import ObjectCardMetrics from './ObjectCardMetrics.vue'
|
|
110
98
|
import ObjectCardOwner from './ObjectCardOwner.vue'
|
|
111
99
|
import ObjectCardShortDescription from './ObjectCardShortDescription.vue'
|
|
112
100
|
import OrganizationLogo from './OrganizationLogo.vue'
|
|
113
|
-
import Avatar from './Avatar.vue'
|
|
114
101
|
import Placeholder from './Placeholder.vue'
|
|
115
|
-
import ObjectCard from './ObjectCard.vue'
|
|
116
|
-
import FormattedDate from './FormattedDate.vue'
|
|
117
102
|
import TranslationT from './TranslationT.vue'
|
|
118
103
|
|
|
119
104
|
type TopicWithStats = TopicV2 & {
|
|
@@ -122,14 +107,20 @@ type TopicWithStats = TopicV2 & {
|
|
|
122
107
|
nb_reuses?: number
|
|
123
108
|
}
|
|
124
109
|
|
|
125
|
-
withDefaults(
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
110
|
+
const props = withDefaults(
|
|
111
|
+
defineProps<{
|
|
112
|
+
topic: TopicWithStats
|
|
113
|
+
topicUrl?: RouteLocationRaw
|
|
114
|
+
organizationUrl?: RouteLocationRaw | null
|
|
115
|
+
showLogo?: boolean
|
|
116
|
+
showStats?: boolean
|
|
117
|
+
}>(),
|
|
118
|
+
{
|
|
119
|
+
showLogo: true,
|
|
120
|
+
showStats: true,
|
|
121
|
+
},
|
|
122
|
+
)
|
|
123
|
+
const { t } = useTranslation()
|
|
124
|
+
|
|
125
|
+
const hasStats = computed(() => props.topic.nb_datasets !== undefined || props.topic.nb_dataservices !== undefined || props.topic.nb_reuses !== undefined)
|
|
135
126
|
</script>
|
package/src/main.ts
CHANGED
|
@@ -69,7 +69,6 @@ import LabelTag from './components/DatasetLabelTag.vue'
|
|
|
69
69
|
import LoadingBlock from './components/LoadingBlock.vue'
|
|
70
70
|
import MarkdownViewer from './components/MarkdownViewer.vue'
|
|
71
71
|
import OrganizationCard from './components/OrganizationCard.vue'
|
|
72
|
-
import OrganizationHorizontalCard from './components/OrganizationHorizontalCard.vue'
|
|
73
72
|
import ObjectCardOwner from './components/ObjectCardOwner.vue'
|
|
74
73
|
import OrganizationLogo from './components/OrganizationLogo.vue'
|
|
75
74
|
import OrganizationNameWithCertificate from './components/OrganizationNameWithCertificate.vue'
|
|
@@ -90,7 +89,6 @@ import ResourceExplorerSidebar from './components/ResourceExplorer/ResourceExplo
|
|
|
90
89
|
import ResourceExplorerViewer from './components/ResourceExplorer/ResourceExplorerViewer.vue'
|
|
91
90
|
import OpenApiViewer from './components/OpenApiViewer/OpenApiViewer.vue'
|
|
92
91
|
import ReuseCard from './components/ReuseCard.vue'
|
|
93
|
-
import ReuseHorizontalCard from './components/ReuseHorizontalCard.vue'
|
|
94
92
|
import ReuseDetails from './components/ReuseDetails.vue'
|
|
95
93
|
import SchemaCard from './components/SchemaCard.vue'
|
|
96
94
|
import SimpleBanner from './components/SimpleBanner.vue'
|
|
@@ -399,7 +397,6 @@ export {
|
|
|
399
397
|
Tag,
|
|
400
398
|
MarkdownViewer,
|
|
401
399
|
OrganizationCard,
|
|
402
|
-
OrganizationHorizontalCard,
|
|
403
400
|
OrganizationLogo,
|
|
404
401
|
OrganizationNameWithCertificate,
|
|
405
402
|
OwnerType,
|
|
@@ -421,7 +418,6 @@ export {
|
|
|
421
418
|
ResourceSelector,
|
|
422
419
|
ReuseCard,
|
|
423
420
|
ReuseDetails,
|
|
424
|
-
ReuseHorizontalCard,
|
|
425
421
|
SchemaCard,
|
|
426
422
|
SimpleBanner,
|
|
427
423
|
StatBox,
|