@datagouv/components-next 1.0.2-dev.18 → 1.0.2-dev.181
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/README.md +7 -6
- package/assets/main.css +4 -0
- package/dist/{Control-DuZJdKV_.js → Control-B9WQxlpJ.js} +1 -1
- package/dist/{Datafair.client-Ds3VQrRi.js → Datafair.client-CaxMyNif.js} +9 -9
- package/dist/{Event--kp8kMdJ.js → Event-iXDrp-fy.js} +31 -31
- package/dist/{Image-34hvypZI.js → Image-mNMBOofs.js} +9 -9
- package/dist/ImagePreview.client-CPmCyisP.js +36 -0
- package/dist/JsonPreview.client-CKOU-LBs.js +40 -0
- package/dist/{Map-BjUnLyj8.js → Map-BfqKMw0S.js} +1739 -1599
- package/dist/{MapContainer.client-B2BijMx5.js → MapContainer.client-IGYJWP5m.js} +41 -42
- package/dist/{OSM-s40W6sQ2.js → OSM-CcrUhItr.js} +15 -23
- package/dist/{PdfPreview.client-DJBMzrlC.js → PdfPreview.client-csUebU3A.js} +835 -856
- package/dist/Pmtiles.client-CLq7UHBg.js +26333 -0
- package/dist/PreviewWrapper.vue_vue_type_script_setup_true_lang-DeoHZXW1.js +60 -0
- package/dist/{ScaleLine-KW-nXqp3.js → ScaleLine-VGQ7nkMS.js} +2 -2
- package/dist/{Tile-DbNFNPfU.js → Tile-CSpn0Ca8.js} +160 -163
- package/dist/{TileImage-BsXBxMtq.js → TileImage-CpbaEFwd.js} +143 -131
- package/dist/{View-BR92hTWP.js → View-BYBpt-AU.js} +483 -422
- package/dist/XmlPreview.client-C1toAbQ0.js +34 -0
- package/dist/{common-PJfpC179.js → common-BoeTUnDZ.js} +52 -52
- package/dist/components-next.css +1 -52
- package/dist/components-next.js +193 -149
- package/dist/components.css +2 -2
- package/dist/{index-BFQX7Ccz.js → index-CaUlhl3k.js} +21842 -15810
- package/dist/{leaflet-src-7m1mB8LI.js → leaflet-src-ByYGrf8H.js} +185 -187
- package/dist/{main-vqhkVhVS.js → main-DD4ieUAo.js} +41500 -73223
- package/dist/{proj-DsetBcW7.js → proj-DxGbobp7.js} +662 -626
- package/dist/{text-clamp.esm-B5kW_XMt.js → text-clamp.esm-DVseBqZZ.js} +4 -4
- package/dist/{tilecoord-Db24Px13.js → tilecoord-DvX7WWiA.js} +273 -264
- package/dist/{vue3-json-viewer-BXwup7nO.js → vue3-json-viewer-CJLQFzXZ.js} +10 -16
- package/dist/{vue3-xml-viewer.common-BcNJo35o.js → vue3-xml-viewer.common-B1KPK4L4.js} +16 -16
- package/package.json +47 -38
- package/src/chart.ts +5 -0
- package/src/components/ActivityList/ActivityList.vue +3 -2
- package/src/components/AppLink.vue +3 -0
- package/src/components/BannerAction.vue +6 -2
- package/src/components/Chart/ChartViewer.vue +320 -0
- package/src/components/Chart/ChartViewerWrapper.vue +182 -0
- package/src/components/CopyButton.vue +6 -2
- package/src/components/DataserviceCard.vue +9 -0
- package/src/components/DataserviceQuality.vue +82 -0
- package/src/components/DataserviceQualityInline.vue +31 -0
- package/src/components/DataserviceQualityTooltipContent.vue +79 -0
- package/src/components/DatasetCard.vue +9 -4
- package/src/components/DatasetQuality.vue +11 -11
- package/src/components/DatasetQualityInline.vue +2 -2
- package/src/components/DatasetQualityTooltipContent.vue +1 -1
- package/src/components/Form/Listbox.vue +101 -0
- package/src/components/Form/SchemaSelect.vue +2 -0
- package/src/components/InfiniteLoader.vue +53 -0
- package/src/components/ObjectCardHeader.vue +11 -4
- package/src/components/OpenApiViewer/ContentTypeSelect.vue +48 -0
- package/src/components/OpenApiViewer/EndpointRequest.vue +164 -0
- package/src/components/OpenApiViewer/EndpointResponses.vue +149 -0
- package/src/components/OpenApiViewer/OpenApiViewer.vue +308 -0
- package/src/components/OpenApiViewer/SchemaPanel.vue +53 -0
- package/src/components/OpenApiViewer/SchemaTree.vue +77 -0
- package/src/components/OpenApiViewer/openapi.ts +150 -0
- package/src/components/OrganizationNameWithCertificate.vue +3 -2
- package/src/components/Pagination.vue +8 -5
- package/src/components/RadioInput.vue +7 -2
- package/src/components/ResourceAccordion/DataStructure.vue +11 -33
- package/src/components/ResourceAccordion/Datafair.client.vue +1 -1
- package/src/components/ResourceAccordion/Downloads.vue +160 -0
- package/src/components/ResourceAccordion/ImagePreview.client.vue +48 -0
- package/src/components/ResourceAccordion/JsonPreview.client.vue +23 -104
- package/src/components/ResourceAccordion/MapContainer.client.vue +2 -11
- package/src/components/ResourceAccordion/Metadata.vue +1 -2
- package/src/components/ResourceAccordion/PdfPreview.client.vue +58 -97
- package/src/components/ResourceAccordion/PdfSkeleton.vue +44 -0
- package/src/components/ResourceAccordion/Pmtiles.client.vue +28 -13
- package/src/components/ResourceAccordion/Preview.vue +11 -11
- package/src/components/ResourceAccordion/PreviewWrapper.vue +89 -0
- package/src/components/ResourceAccordion/ResourceAccordion.vue +23 -114
- package/src/components/ResourceAccordion/XmlPreview.client.vue +16 -98
- package/src/components/ResourceExplorer/ResourceExplorer.vue +102 -210
- package/src/components/ResourceExplorer/ResourceExplorerHeader.vue +74 -0
- package/src/components/ResourceExplorer/ResourceExplorerSidebar.vue +103 -71
- package/src/components/ResourceExplorer/ResourceExplorerViewer.vue +143 -291
- package/src/components/ResourceExplorer/ResourceMainAction.vue +240 -0
- package/src/components/ResourceExplorer/ResourceSelector.vue +51 -0
- package/src/components/ResourceExplorer/ResourceViewerHeader.vue +115 -0
- package/src/components/ResourceExplorer/ResourceViewerSkeleton.vue +94 -0
- package/src/components/ResourceListItem.vue +154 -0
- package/src/components/ReuseCard.vue +14 -6
- package/src/components/ReuseDetails.vue +2 -2
- package/src/components/ReuseHorizontalCard.vue +2 -2
- package/src/components/SchemaCard.vue +10 -1
- package/src/components/Search/Filter/AccessTypeFilter.vue +2 -2
- package/src/components/Search/GlobalSearch.vue +219 -117
- package/src/components/Search/SearchInput.vue +5 -4
- package/src/components/TabularExplorer/TabularActiveFilters.vue +79 -0
- package/src/components/TabularExplorer/TabularCell.vue +50 -0
- package/src/components/TabularExplorer/TabularCellPopover.vue +170 -0
- package/src/components/TabularExplorer/TabularColumnsMenu.vue +112 -0
- package/src/components/TabularExplorer/TabularExplorer.vue +299 -0
- package/src/components/TabularExplorer/TabularFilterContent.vue +362 -0
- package/src/components/TabularExplorer/TabularFilterPopover.vue +106 -0
- package/src/components/TabularExplorer/TabularMobileFilterButton.vue +21 -0
- package/src/components/TabularExplorer/TabularMobileFilters.vue +150 -0
- package/src/components/TabularExplorer/TabularRowsInfo.vue +31 -0
- package/src/components/TabularExplorer/TabularSkeleton.vue +92 -0
- package/src/components/TabularExplorer/TabularTable.vue +481 -0
- package/src/components/TabularExplorer/TabularToolbar.vue +25 -0
- package/src/components/TabularExplorer/types.ts +81 -0
- package/src/components/TabularExplorer/useColumnMetadata.ts +98 -0
- package/src/components/TabularExplorer/useTabularContext.ts +82 -0
- package/src/composables/useActiveDescendant.ts +5 -0
- package/src/composables/useDatasetResources.ts +164 -0
- package/src/composables/useHasTabularData.ts +15 -1
- package/src/composables/useMetrics.ts +1 -1
- package/src/composables/useResizable.ts +46 -0
- package/src/composables/useResourceCapabilities.ts +47 -21
- package/src/composables/useSearchFilter.ts +120 -0
- package/src/composables/useStableQueryParams.ts +38 -6
- package/src/composables/useTabularProfile.ts +70 -0
- package/src/config.ts +21 -3
- package/src/functions/activities.ts +3 -3
- package/src/functions/api.ts +20 -42
- package/src/functions/api.types.ts +1 -0
- package/src/functions/charts.ts +99 -0
- package/src/functions/datasets.ts +0 -17
- package/src/functions/dates.ts +3 -2
- package/src/functions/metrics.ts +6 -4
- package/src/functions/resources.ts +136 -1
- package/src/functions/schemas.ts +27 -0
- package/src/functions/tabular.ts +214 -0
- package/src/functions/tabularApi.ts +96 -11
- package/src/main.ts +117 -14
- package/src/types/dataservices.ts +17 -0
- package/src/types/organizations.ts +10 -0
- package/src/types/pages.ts +0 -5
- package/src/types/posts.ts +2 -2
- package/src/types/reports.ts +5 -1
- package/src/types/resources.ts +0 -1
- package/src/types/reuses.ts +12 -1
- package/src/types/search.ts +63 -1
- package/src/types/site.ts +5 -3
- package/src/types/ui.ts +2 -0
- package/src/types/users.ts +2 -1
- package/src/types/visualizations.ts +93 -0
- package/assets/swagger-themes/newspaper.css +0 -1670
- package/dist/JsonPreview.client-CYxmz0yV.js +0 -72
- package/dist/Pmtiles.client-C_hvRDuy.js +0 -25185
- package/dist/Swagger.client-B4y0hXME.js +0 -4
- package/dist/XmlPreview.client-LETEfNBH.js +0 -64
- package/src/components/ResourceAccordion/Swagger.client.vue +0 -48
- package/src/functions/pagination.ts +0 -9
- /package/src/components/{DatasetQualityItem.vue → QualityItem.vue} +0 -0
- /package/src/components/{DatasetQualityItemWarning.vue → QualityItemWarning.vue} +0 -0
- /package/src/components/{DatasetQualityScore.vue → QualityScore.vue} +0 -0
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import { defineComponent as z, defineAsyncComponent as C, ref as o, computed as x, onMounted as X, createElementBlock as c, openBlock as t, createBlock as f, createCommentVNode as L, createVNode as B, unref as r, toDisplayString as i, withCtx as m, createTextVNode as p } from "vue";
|
|
2
|
-
import { u as S, a as V, g as E, _ as d } from "./main-vqhkVhVS.js";
|
|
3
|
-
const M = { class: "fr-text--xs" }, P = { key: 0 }, D = {
|
|
4
|
-
key: 1,
|
|
5
|
-
class: "text-gray-medium"
|
|
6
|
-
}, $ = /* @__PURE__ */ z({
|
|
7
|
-
__name: "XmlPreview.client",
|
|
8
|
-
props: {
|
|
9
|
-
resource: {}
|
|
10
|
-
},
|
|
11
|
-
setup(y) {
|
|
12
|
-
const T = C(
|
|
13
|
-
() => import("./vue3-xml-viewer.common-BcNJo35o.js").then((e) => e.v).then((e) => e.default || e.XmlViewer)
|
|
14
|
-
), h = y, v = S(), { t: a } = V(), n = o(null), u = o(!1), l = o(null), g = o(!1), _ = x(() => E(h.resource)), w = x(() => {
|
|
15
|
-
const e = _.value;
|
|
16
|
-
if (!e || !v.maxXmlPreviewCharSize)
|
|
17
|
-
return !1;
|
|
18
|
-
const s = v.maxXmlPreviewCharSize;
|
|
19
|
-
return e <= s;
|
|
20
|
-
}), k = async () => {
|
|
21
|
-
if (!w.value) {
|
|
22
|
-
g.value = !0;
|
|
23
|
-
return;
|
|
24
|
-
}
|
|
25
|
-
u.value = !0, l.value = null;
|
|
26
|
-
try {
|
|
27
|
-
const e = await fetch(h.resource.url);
|
|
28
|
-
if (!e.ok)
|
|
29
|
-
throw new Error(`HTTP error! status: ${e.status}`);
|
|
30
|
-
const s = await e.text();
|
|
31
|
-
n.value = s;
|
|
32
|
-
} catch (e) {
|
|
33
|
-
console.error("Error loading XML:", e), e instanceof TypeError ? l.value = "network" : l.value = "generic", n.value = null;
|
|
34
|
-
} finally {
|
|
35
|
-
u.value = !1;
|
|
36
|
-
}
|
|
37
|
-
};
|
|
38
|
-
return X(() => {
|
|
39
|
-
k();
|
|
40
|
-
}), (e, s) => (t(), c("div", M, [
|
|
41
|
-
n.value ? (t(), c("div", P, [
|
|
42
|
-
B(r(T), { xml: n.value }, null, 8, ["xml"])
|
|
43
|
-
])) : u.value ? (t(), c("div", D, i(r(a)("Chargement de l'aperçu XML...")), 1)) : g.value ? (t(), f(d, { key: 2 }, {
|
|
44
|
-
default: m(() => [
|
|
45
|
-
p(i(_.value ? r(a)("Le fichier XML est trop volumineux pour être prévisualisé. Téléchargez-le depuis l'onglet Téléchargements.") : r(a)("La taille du fichier est inconnue, l'aperçu n'est pas disponible. Téléchargez-le depuis l'onglet Téléchargements.")), 1)
|
|
46
|
-
]),
|
|
47
|
-
_: 1
|
|
48
|
-
})) : l.value === "network" ? (t(), f(d, { key: 3 }, {
|
|
49
|
-
default: m(() => [
|
|
50
|
-
p(i(r(a)("Ce fichier est hébergé sur un site externe qui ne permet pas la prévisualisation. Téléchargez-le depuis l'onglet Téléchargements.")), 1)
|
|
51
|
-
]),
|
|
52
|
-
_: 1
|
|
53
|
-
})) : l.value ? (t(), f(d, { key: 4 }, {
|
|
54
|
-
default: m(() => [
|
|
55
|
-
p(i(r(a)("L'aperçu de ce fichier n'a pas pu être chargé. Téléchargez-le depuis l'onglet Téléchargements.")), 1)
|
|
56
|
-
]),
|
|
57
|
-
_: 1
|
|
58
|
-
})) : L("", !0)
|
|
59
|
-
]));
|
|
60
|
-
}
|
|
61
|
-
});
|
|
62
|
-
export {
|
|
63
|
-
$ as default
|
|
64
|
-
};
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div id="swagger-ui" />
|
|
3
|
-
</template>
|
|
4
|
-
|
|
5
|
-
<script setup lang="ts">
|
|
6
|
-
import { onMounted } from 'vue'
|
|
7
|
-
// @ts-expect-error no types for `swagger-ui-dist`
|
|
8
|
-
import * as SwaggerUiDist from 'swagger-ui-dist'
|
|
9
|
-
import 'swagger-ui-dist/swagger-ui.css'
|
|
10
|
-
import '../../../assets/swagger-themes/newspaper.css'
|
|
11
|
-
|
|
12
|
-
const { SwaggerUIBundle } = SwaggerUiDist
|
|
13
|
-
const props = defineProps<{
|
|
14
|
-
url: string
|
|
15
|
-
}>()
|
|
16
|
-
|
|
17
|
-
onMounted(async () => {
|
|
18
|
-
SwaggerUIBundle({
|
|
19
|
-
dom_id: '#swagger-ui',
|
|
20
|
-
url: props.url,
|
|
21
|
-
})
|
|
22
|
-
})
|
|
23
|
-
</script>
|
|
24
|
-
|
|
25
|
-
<style>
|
|
26
|
-
/** Taken from newsletter theme */
|
|
27
|
-
.swagger-ui .opblock-tag small,
|
|
28
|
-
.swagger-ui .opblock .opblock-summary-description,
|
|
29
|
-
.swagger-ui .opblock-description-wrapper,
|
|
30
|
-
.swagger-ui .opblock-description-wrapper h4,
|
|
31
|
-
.swagger-ui .opblock-title_normal,
|
|
32
|
-
.swagger-ui .opblock-title_normal h4,
|
|
33
|
-
.swagger-ui .opblock-description-wrapper p,
|
|
34
|
-
.swagger-ui .opblock-title_normal p,
|
|
35
|
-
.swagger-ui .responses-inner h4,
|
|
36
|
-
.swagger-ui .responses-inner h5,
|
|
37
|
-
.swagger-ui .response-col_status,
|
|
38
|
-
.swagger-ui .dialog-ux .modal-ux-content p,
|
|
39
|
-
.swagger-ui table thead tr td,
|
|
40
|
-
.swagger-ui table thead tr th,
|
|
41
|
-
.swagger-ui .parameters-col_description p,
|
|
42
|
-
.swagger-ui .info p,
|
|
43
|
-
.swagger-ui .info a,
|
|
44
|
-
.swagger-ui .info .title,
|
|
45
|
-
.swagger-ui .topbar {
|
|
46
|
-
font-family: 'Marianne', Arial, sans-serif !important;
|
|
47
|
-
}
|
|
48
|
-
</style>
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { useRoute } from 'vue-router'
|
|
2
|
-
|
|
3
|
-
export function getLink(page: number): string {
|
|
4
|
-
const route = useRoute()
|
|
5
|
-
const routePath = route.path
|
|
6
|
-
const search = new URLSearchParams(route.query as Record<string, string>)
|
|
7
|
-
search.set('page', page.toFixed(0))
|
|
8
|
-
return `${routePath}?${search.toString()}`
|
|
9
|
-
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|