@datagouv/components-next 1.0.2-dev.162 → 1.0.2-dev.164
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-DXPU1V24.js → Datafair.client-B-OG5WtK.js} +1 -1
- package/dist/ImagePreview.client-D0c-ifUi.js +36 -0
- package/dist/{JsonPreview.client-D1SnGfWG.js → JsonPreview.client-Dwh9sW9M.js} +2 -2
- package/dist/{MapContainer.client-DlsaEVGx.js → MapContainer.client-C2AZ7sOB.js} +2 -2
- package/dist/{PdfPreview.client-C9OrLR0z.js → PdfPreview.client-8NzNfW8b.js} +2 -2
- package/dist/{Pmtiles.client-CyylWfTy.js → Pmtiles.client-BFH4rTB7.js} +5842 -5660
- package/dist/{PreviewWrapper.vue_vue_type_script_setup_true_lang-CtXZOHXI.js → PreviewWrapper.vue_vue_type_script_setup_true_lang-BOgE441d.js} +7 -10
- package/dist/{XmlPreview.client-DoX7RurH.js → XmlPreview.client-DMOUO508.js} +3 -3
- package/dist/components-next.css +1 -1
- package/dist/components-next.js +179 -171
- package/dist/components.css +1 -1
- package/dist/{index-Br1sa7wQ.js → index-C9obT9DJ.js} +4392 -4293
- package/dist/{leaflet-src-DWG7tmpQ.js → leaflet-src-B4AZU0vr.js} +1 -1
- package/dist/{main-BU6kP4dE.js → main-DNoYWfit.js} +16159 -15631
- package/dist/{vue3-xml-viewer.common-Cpui-Yi9.js → vue3-xml-viewer.common-Cp7Cu5ME.js} +1 -1
- package/package.json +4 -5
- package/src/components/Chart/ChartViewer.vue +103 -10
- package/src/components/Chart/ChartViewerWrapper.vue +8 -0
- package/src/components/DataserviceCard.vue +6 -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/DatasetQuality.vue +11 -11
- package/src/components/DatasetQualityInline.vue +2 -2
- package/src/components/DatasetQualityTooltipContent.vue +1 -1
- package/src/components/ResourceAccordion/ImagePreview.client.vue +48 -0
- package/src/components/ResourceAccordion/ResourceAccordion.vue +8 -3
- package/src/components/ResourceExplorer/ResourceExplorerViewer.vue +15 -1
- package/src/components/ReuseCard.vue +2 -2
- package/src/components/ReuseDetails.vue +2 -2
- package/src/components/ReuseHorizontalCard.vue +2 -2
- package/src/components/Search/GlobalSearch.vue +2 -2
- package/src/components/TabularExplorer/TabularCell.vue +5 -4
- package/src/components/TabularExplorer/TabularCellPopover.vue +1 -1
- package/src/components/TabularExplorer/TabularExplorer.vue +168 -49
- package/src/components/TabularExplorer/TabularFilterContent.vue +27 -10
- package/src/components/TabularExplorer/TabularFilterPopover.vue +1 -0
- package/src/components/TabularExplorer/types.ts +3 -3
- package/src/composables/useHasTabularData.ts +2 -1
- package/src/composables/useResourceCapabilities.ts +27 -14
- package/src/config.ts +1 -0
- package/src/functions/charts.ts +23 -3
- package/src/functions/resources.ts +56 -0
- package/src/functions/tabular.ts +44 -1
- package/src/main.ts +15 -6
- package/src/types/dataservices.ts +15 -0
- package/src/types/organizations.ts +10 -0
- package/src/types/reuses.ts +12 -1
- package/src/types/search.ts +2 -2
- package/src/types/visualizations.ts +1 -1
- /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,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as l, computed as a, openBlock as t, createElementBlock as o, createElementVNode as u, createBlock as f, withCtx as p, createTextVNode as m, toDisplayString as _, unref as h } from "vue";
|
|
2
|
-
import { a as x, _ as g } from "./main-
|
|
2
|
+
import { a as x, _ as g } from "./main-DNoYWfit.js";
|
|
3
3
|
const v = { class: "fr-text--xs" }, b = { key: 0 }, k = ["src"], $ = /* @__PURE__ */ l({
|
|
4
4
|
__name: "Datafair.client",
|
|
5
5
|
props: {
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { defineComponent as T, ref as _, computed as l, openBlock as r, createElementBlock as u, createBlock as p, withCtx as f, createTextVNode as m, toDisplayString as g, unref as o } from "vue";
|
|
2
|
+
import { a as y, u as z, b as k, _ as d } from "./main-DNoYWfit.js";
|
|
3
|
+
const w = { class: "text-xs" }, B = ["src"], E = /* @__PURE__ */ T({
|
|
4
|
+
__name: "ImagePreview.client",
|
|
5
|
+
props: {
|
|
6
|
+
resource: {}
|
|
7
|
+
},
|
|
8
|
+
setup(a) {
|
|
9
|
+
const n = a, { t } = y(), h = z(), i = _(!1), v = l(() => n.resource.format?.toUpperCase() ?? t("Fichier")), c = l(() => k(n.resource)), x = l(() => {
|
|
10
|
+
const s = c.value, e = h.maxImagePreviewByteSize;
|
|
11
|
+
return !s || !e ? !1 : s <= e;
|
|
12
|
+
});
|
|
13
|
+
return (s, e) => (r(), u("div", w, [
|
|
14
|
+
x.value ? i.value ? (r(), p(d, { key: 1 }, {
|
|
15
|
+
default: f(() => [
|
|
16
|
+
m(g(o(t)("L'aperçu de ce fichier n'a pas pu être chargé. Téléchargez-le depuis l'onglet Téléchargements.")), 1)
|
|
17
|
+
]),
|
|
18
|
+
_: 1
|
|
19
|
+
})) : (r(), u("img", {
|
|
20
|
+
key: 2,
|
|
21
|
+
src: a.resource.url,
|
|
22
|
+
alt: "",
|
|
23
|
+
class: "block w-full h-auto max-w-[800px]",
|
|
24
|
+
onError: e[0] || (e[0] = (C) => i.value = !0)
|
|
25
|
+
}, null, 40, B)) : (r(), p(d, { key: 0 }, {
|
|
26
|
+
default: f(() => [
|
|
27
|
+
m(g(c.value ? o(t)("Le fichier {fileType} est trop volumineux pour être prévisualisé. Téléchargez-le depuis l'onglet Téléchargements.", { fileType: v.value }) : o(t)("La taille du fichier est inconnue, l'aperçu n'est pas disponible. Téléchargez-le depuis l'onglet Téléchargements.")), 1)
|
|
28
|
+
]),
|
|
29
|
+
_: 1
|
|
30
|
+
}))
|
|
31
|
+
]));
|
|
32
|
+
}
|
|
33
|
+
});
|
|
34
|
+
export {
|
|
35
|
+
E as default
|
|
36
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as c, defineAsyncComponent as u, openBlock as m, createBlock as p, unref as r, withCtx as f, createVNode as l } from "vue";
|
|
2
|
-
import { u as d } from "./main-
|
|
3
|
-
import { _ as h } from "./PreviewWrapper.vue_vue_type_script_setup_true_lang-
|
|
2
|
+
import { u as d } from "./main-DNoYWfit.js";
|
|
3
|
+
import { _ as h } from "./PreviewWrapper.vue_vue_type_script_setup_true_lang-BOgE441d.js";
|
|
4
4
|
const J = /* @__PURE__ */ c({
|
|
5
5
|
__name: "JsonPreview.client",
|
|
6
6
|
props: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as E, useTemplateRef as G, ref as W, onMounted as B, openBlock as u, createBlock as N, withCtx as V, createTextVNode as z, toDisplayString as q, unref as A, createElementBlock as D } from "vue";
|
|
2
|
-
import { a as F, _ as O } from "./main-
|
|
2
|
+
import { a as F, _ as O } from "./main-DNoYWfit.js";
|
|
3
3
|
const Z = /* @__PURE__ */ E({
|
|
4
4
|
__name: "MapContainer.client",
|
|
5
5
|
props: {
|
|
@@ -24,7 +24,7 @@ const Z = /* @__PURE__ */ E({
|
|
|
24
24
|
import("./Tile-CSpn0Ca8.js").then((t) => t.d),
|
|
25
25
|
import("./OSM-CcrUhItr.js"),
|
|
26
26
|
// @ts-expect-error no types provided
|
|
27
|
-
import("./index-
|
|
27
|
+
import("./index-C9obT9DJ.js")
|
|
28
28
|
]), { CRS: _, GeoportalAttribution: S, GeoportalFullScreen: g, GeoportalZoom: b, LayerImport: v, LayerSwitcher: L } = C;
|
|
29
29
|
await Promise.resolve({ }), await Promise.resolve({ }), await Promise.resolve({ }), await Promise.resolve({ }), _.load(), e = new s({
|
|
30
30
|
target: a.value,
|
|
@@ -12,8 +12,8 @@ var sZ = (R, l, U, Z) => ({
|
|
|
12
12
|
}
|
|
13
13
|
});
|
|
14
14
|
import { defineComponent as cd, ref as td, onBeforeUnmount as Rd, openBlock as LU, createBlock as Nd, unref as sd, withCtx as bd, createElementVNode as nd, createElementBlock as bZ, Fragment as ad, renderList as hd } from "vue";
|
|
15
|
-
import { _ as md } from "./PreviewWrapper.vue_vue_type_script_setup_true_lang-
|
|
16
|
-
import { u as id } from "./main-
|
|
15
|
+
import { _ as md } from "./PreviewWrapper.vue_vue_type_script_setup_true_lang-BOgE441d.js";
|
|
16
|
+
import { u as id } from "./main-DNoYWfit.js";
|
|
17
17
|
var ZU = {};
|
|
18
18
|
ZU.d = (R, l) => {
|
|
19
19
|
for (var U in l)
|