@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,42 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<component
|
|
3
|
-
:is="titleTag"
|
|
4
|
-
class="w-full text-base font-bold flex"
|
|
5
|
-
>
|
|
6
|
-
<AppLink
|
|
7
|
-
:to="url"
|
|
8
|
-
class="text-gray-title text-base bg-none flex items-center w-full truncate gap-1"
|
|
9
|
-
:target="target"
|
|
10
|
-
>
|
|
11
|
-
<component
|
|
12
|
-
:is="icon"
|
|
13
|
-
aria-hidden="true"
|
|
14
|
-
class="size-4 flex-none"
|
|
15
|
-
/>
|
|
16
|
-
<span
|
|
17
|
-
class="block truncate"
|
|
18
|
-
:class="$slots.extra ? 'flex-initial' : 'flex-1'"
|
|
19
|
-
>
|
|
20
|
-
<slot />
|
|
21
|
-
</span>
|
|
22
|
-
<slot name="extra" />
|
|
23
|
-
<span class="absolute inset-0" />
|
|
24
|
-
</AppLink>
|
|
25
|
-
</component>
|
|
26
|
-
</template>
|
|
27
|
-
|
|
28
|
-
<script setup lang="ts">
|
|
29
|
-
import type { Component } from 'vue'
|
|
30
|
-
import type { RouteLocationRaw } from 'vue-router'
|
|
31
|
-
import type { TitleTag } from '../types/ui'
|
|
32
|
-
import AppLink from './AppLink.vue'
|
|
33
|
-
|
|
34
|
-
withDefaults(defineProps<{
|
|
35
|
-
icon: Component
|
|
36
|
-
url: RouteLocationRaw
|
|
37
|
-
target?: string
|
|
38
|
-
titleTag?: TitleTag
|
|
39
|
-
}>(), {
|
|
40
|
-
titleTag: 'h3',
|
|
41
|
-
})
|
|
42
|
-
</script>
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<ObjectCard>
|
|
3
|
-
<template #media>
|
|
4
|
-
<OrganizationLogo
|
|
5
|
-
:organization="organization"
|
|
6
|
-
size-class="size-12"
|
|
7
|
-
/>
|
|
8
|
-
</template>
|
|
9
|
-
<ObjectCardHeader
|
|
10
|
-
:icon="RiBuilding2Line"
|
|
11
|
-
:url="organization.page"
|
|
12
|
-
>
|
|
13
|
-
<OrganizationNameWithCertificate
|
|
14
|
-
:show-type="false"
|
|
15
|
-
:organization
|
|
16
|
-
size="sm"
|
|
17
|
-
color-class="text-gray-title"
|
|
18
|
-
/>
|
|
19
|
-
</ObjectCardHeader>
|
|
20
|
-
<div class="text-sm flex flex-wrap md:flex-nowrap gap-y-1 items-center truncate">
|
|
21
|
-
<template v-if="type !== 'other'">
|
|
22
|
-
<OwnerType
|
|
23
|
-
class="mb-0"
|
|
24
|
-
:type
|
|
25
|
-
/>
|
|
26
|
-
<RiSubtractLine
|
|
27
|
-
v-if="'metrics' in organization"
|
|
28
|
-
aria-hidden="true"
|
|
29
|
-
class="hidden md:block size-4 flex-none fill-gray-medium"
|
|
30
|
-
/>
|
|
31
|
-
</template>
|
|
32
|
-
<div
|
|
33
|
-
v-if="'metrics' in organization"
|
|
34
|
-
class="text-gray-medium flex items-center text-sm gap-0.5"
|
|
35
|
-
:aria-label="t('{datasets} jeux de donn\u00e9es, {dataservices} API et {reuses} r\u00e9utilisations', {
|
|
36
|
-
datasets: organization.metrics.datasets,
|
|
37
|
-
dataservices: organization.metrics.dataservices,
|
|
38
|
-
reuses: organization.metrics.reuses,
|
|
39
|
-
})"
|
|
40
|
-
>
|
|
41
|
-
<RiDatabase2Line
|
|
42
|
-
aria-hidden="true"
|
|
43
|
-
class="size-3.5"
|
|
44
|
-
/> {{ summarize(organization.metrics.datasets) }}
|
|
45
|
-
<RiTerminalLine
|
|
46
|
-
aria-hidden="true"
|
|
47
|
-
class="size-3.5 ml-1"
|
|
48
|
-
/> {{ summarize(organization.metrics.dataservices) }}
|
|
49
|
-
<RiLineChartLine
|
|
50
|
-
aria-hidden="true"
|
|
51
|
-
class="size-3.5 ml-1"
|
|
52
|
-
/> {{ summarize(organization.metrics.reuses) }}
|
|
53
|
-
<RiStarLine
|
|
54
|
-
aria-hidden="true"
|
|
55
|
-
class="size-3.5 ml-1"
|
|
56
|
-
/> {{ summarize(organization.metrics.followers) }}
|
|
57
|
-
</div>
|
|
58
|
-
</div>
|
|
59
|
-
<ObjectCardShortDescription
|
|
60
|
-
v-if="'description' in organization"
|
|
61
|
-
:text="organization.description"
|
|
62
|
-
/>
|
|
63
|
-
</ObjectCard>
|
|
64
|
-
</template>
|
|
65
|
-
|
|
66
|
-
<script setup lang="ts">
|
|
67
|
-
import { RiBuilding2Line, RiDatabase2Line, RiLineChartLine, RiStarLine, RiSubtractLine, RiTerminalLine } from '@remixicon/vue'
|
|
68
|
-
import { computed } from 'vue'
|
|
69
|
-
import { getOrganizationType } from '../functions/organizations'
|
|
70
|
-
import { summarize } from '../functions/helpers'
|
|
71
|
-
import { useTranslation } from '../composables/useTranslation'
|
|
72
|
-
import type { Organization, OrganizationReference } from '../types/organizations'
|
|
73
|
-
import OrganizationLogo from './OrganizationLogo.vue'
|
|
74
|
-
import OrganizationNameWithCertificate from './OrganizationNameWithCertificate.vue'
|
|
75
|
-
import OwnerType from './OwnerType.vue'
|
|
76
|
-
import ObjectCard from './ObjectCard.vue'
|
|
77
|
-
import ObjectCardHeader from './ObjectCardHeader.vue'
|
|
78
|
-
import ObjectCardShortDescription from './ObjectCardShortDescription.vue'
|
|
79
|
-
|
|
80
|
-
const props = defineProps<{
|
|
81
|
-
organization: Organization | OrganizationReference
|
|
82
|
-
}>()
|
|
83
|
-
|
|
84
|
-
const { t } = useTranslation()
|
|
85
|
-
|
|
86
|
-
const type = computed(() => getOrganizationType(props.organization))
|
|
87
|
-
</script>
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<ObjectCard media-size="lg">
|
|
3
|
-
<template #badge>
|
|
4
|
-
<ObjectCardBadge
|
|
5
|
-
v-if="reuse.private"
|
|
6
|
-
:icon="RiLockLine"
|
|
7
|
-
>
|
|
8
|
-
{{ t('Brouillon') }}
|
|
9
|
-
</ObjectCardBadge>
|
|
10
|
-
<ObjectCardBadge
|
|
11
|
-
v-else-if="reuse.archived"
|
|
12
|
-
:icon="RiArchiveLine"
|
|
13
|
-
>
|
|
14
|
-
{{ t('Archivé') }}
|
|
15
|
-
</ObjectCardBadge>
|
|
16
|
-
</template>
|
|
17
|
-
|
|
18
|
-
<template #media>
|
|
19
|
-
<img
|
|
20
|
-
v-if="reuse.image"
|
|
21
|
-
:src="reuse.image"
|
|
22
|
-
class="w-full h-full object-cover"
|
|
23
|
-
:alt="reuse.title"
|
|
24
|
-
>
|
|
25
|
-
<Placeholder
|
|
26
|
-
v-else
|
|
27
|
-
type="Reuse"
|
|
28
|
-
class="w-full h-full"
|
|
29
|
-
/>
|
|
30
|
-
</template>
|
|
31
|
-
|
|
32
|
-
<ObjectCardHeader
|
|
33
|
-
:icon="RiLineChartLine"
|
|
34
|
-
:url="reuseUrl || reuse.page"
|
|
35
|
-
>
|
|
36
|
-
{{ reuse.title }}
|
|
37
|
-
</ObjectCardHeader>
|
|
38
|
-
|
|
39
|
-
<div
|
|
40
|
-
v-if="reuse.organization || reuse.owner"
|
|
41
|
-
class="text-sm flex flex-wrap md:flex-nowrap gap-y-1 items-center truncate"
|
|
42
|
-
>
|
|
43
|
-
<ObjectCardOwner
|
|
44
|
-
:organization="reuse.organization"
|
|
45
|
-
:owner="reuse.owner"
|
|
46
|
-
:organization-url="organizationUrl"
|
|
47
|
-
/>
|
|
48
|
-
</div>
|
|
49
|
-
|
|
50
|
-
<div class="mx-0 -mb-1 flex flex-wrap items-center text-sm text-gray-medium mt-1">
|
|
51
|
-
<ReuseDetails :reuse />
|
|
52
|
-
</div>
|
|
53
|
-
|
|
54
|
-
<ObjectCardShortDescription :text="reuse.description" />
|
|
55
|
-
|
|
56
|
-
<slot />
|
|
57
|
-
</ObjectCard>
|
|
58
|
-
</template>
|
|
59
|
-
|
|
60
|
-
<script setup lang="ts">
|
|
61
|
-
import { RiArchiveLine, RiLineChartLine, RiLockLine } from '@remixicon/vue'
|
|
62
|
-
import type { RouteLocationRaw } from 'vue-router'
|
|
63
|
-
import type { Reuse, ReuseV2 } from '../types/reuses'
|
|
64
|
-
import { useTranslation } from '../composables/useTranslation'
|
|
65
|
-
import ReuseDetails from './ReuseDetails.vue'
|
|
66
|
-
import Placeholder from './Placeholder.vue'
|
|
67
|
-
import ObjectCard from './ObjectCard.vue'
|
|
68
|
-
import ObjectCardHeader from './ObjectCardHeader.vue'
|
|
69
|
-
import ObjectCardOwner from './ObjectCardOwner.vue'
|
|
70
|
-
import ObjectCardShortDescription from './ObjectCardShortDescription.vue'
|
|
71
|
-
import ObjectCardBadge from './ObjectCardBadge.vue'
|
|
72
|
-
|
|
73
|
-
defineProps<{
|
|
74
|
-
reuse: Reuse | ReuseV2
|
|
75
|
-
reuseUrl?: RouteLocationRaw
|
|
76
|
-
// undefined falls back to the organization's data.gouv.fr page; pass null to render plain, non-linked text
|
|
77
|
-
organizationUrl?: RouteLocationRaw | null
|
|
78
|
-
}>()
|
|
79
|
-
|
|
80
|
-
const { t } = useTranslation()
|
|
81
|
-
</script>
|