@datagouv/components-next 1.0.2-dev.157 → 1.0.2-dev.159

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.
Files changed (27) hide show
  1. package/dist/{Datafair.client-Bblv8Xec.js → Datafair.client-CTp0KeR2.js} +1 -1
  2. package/dist/{ImagePreview.client-B9p_XZrx.js → ImagePreview.client-CpOf0A1Y.js} +1 -1
  3. package/dist/{JsonPreview.client-DzVXqgqm.js → JsonPreview.client-DL3IBzvJ.js} +2 -2
  4. package/dist/{MapContainer.client-JFOchs0n.js → MapContainer.client-DwyIXqCs.js} +2 -2
  5. package/dist/{PdfPreview.client-De6XYp-a.js → PdfPreview.client-BoR_Mszg.js} +2 -2
  6. package/dist/{Pmtiles.client-CiLdMaAj.js → Pmtiles.client-BpMMDkeP.js} +1 -1
  7. package/dist/{PreviewWrapper.vue_vue_type_script_setup_true_lang-keE4Kr1e.js → PreviewWrapper.vue_vue_type_script_setup_true_lang-Dnz4oSUe.js} +7 -10
  8. package/dist/{XmlPreview.client-CdxaPXOa.js → XmlPreview.client-C3Y-2Eij.js} +3 -3
  9. package/dist/components-next.css +1 -1
  10. package/dist/components-next.js +178 -175
  11. package/dist/{index-BIk8VKNQ.js → index-B8gyXZY_.js} +1 -1
  12. package/dist/{leaflet-src-B_fapURG.js → leaflet-src-BDNw7m8K.js} +1 -1
  13. package/dist/{main-B0TVT1sb.js → main-SY-oNn1W.js} +12080 -11701
  14. package/dist/{vue3-xml-viewer.common-Bx0jB4Yr.js → vue3-xml-viewer.common-CBGfdux9.js} +1 -1
  15. package/package.json +3 -3
  16. package/src/components/DataserviceCard.vue +6 -0
  17. package/src/components/DataserviceQuality.vue +82 -0
  18. package/src/components/DataserviceQualityInline.vue +31 -0
  19. package/src/components/DataserviceQualityTooltipContent.vue +79 -0
  20. package/src/components/DatasetQuality.vue +11 -11
  21. package/src/components/DatasetQualityInline.vue +2 -2
  22. package/src/components/DatasetQualityTooltipContent.vue +1 -1
  23. package/src/main.ts +10 -4
  24. package/src/types/dataservices.ts +15 -0
  25. /package/src/components/{DatasetQualityItem.vue → QualityItem.vue} +0 -0
  26. /package/src/components/{DatasetQualityItemWarning.vue → QualityItemWarning.vue} +0 -0
  27. /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-B0TVT1sb.js";
2
+ import { a as x, _ as g } from "./main-SY-oNn1W.js";
3
3
  const v = { class: "fr-text--xs" }, b = { key: 0 }, k = ["src"], $ = /* @__PURE__ */ l({
4
4
  __name: "Datafair.client",
5
5
  props: {
@@ -1,5 +1,5 @@
1
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-B0TVT1sb.js";
2
+ import { a as y, u as z, b as k, _ as d } from "./main-SY-oNn1W.js";
3
3
  const w = { class: "text-xs" }, B = ["src"], E = /* @__PURE__ */ T({
4
4
  __name: "ImagePreview.client",
5
5
  props: {
@@ -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-B0TVT1sb.js";
3
- import { _ as h } from "./PreviewWrapper.vue_vue_type_script_setup_true_lang-keE4Kr1e.js";
2
+ import { u as d } from "./main-SY-oNn1W.js";
3
+ import { _ as h } from "./PreviewWrapper.vue_vue_type_script_setup_true_lang-Dnz4oSUe.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-B0TVT1sb.js";
2
+ import { a as F, _ as O } from "./main-SY-oNn1W.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-BIk8VKNQ.js")
27
+ import("./index-B8gyXZY_.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-keE4Kr1e.js";
16
- import { u as id } from "./main-B0TVT1sb.js";
15
+ import { _ as md } from "./PreviewWrapper.vue_vue_type_script_setup_true_lang-Dnz4oSUe.js";
16
+ import { u as id } from "./main-SY-oNn1W.js";
17
17
  var ZU = {};
18
18
  ZU.d = (R, l) => {
19
19
  for (var U in l)
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as T0, ref as S0, computed as $c, useTemplateRef as P0, onMounted as I0, openBlock as yh, createElementBlock as ip, createBlock as E0, withCtx as Gm, createTextVNode as $m, toDisplayString as Zc, unref as ps, createElementVNode as So, createVNode as M0, createCommentVNode as A0 } from "vue";
2
- import { g as C0, a as D0, d as z0, u as R0, e as k0, f as L0, _ as F0, h as O0, i as B0, Q as N0, t as j0 } from "./main-B0TVT1sb.js";
2
+ import { g as C0, a as D0, d as z0, u as R0, e as k0, f as L0, _ as F0, h as O0, i as B0, Q as N0, t as j0 } from "./main-SY-oNn1W.js";
3
3
  var sn = Uint8Array, zl = Uint16Array, V0 = Int32Array, sg = new sn([
4
4
  0,
5
5
  0,
@@ -1,5 +1,5 @@
1
- import { defineComponent as _, ref as g, computed as h, onMounted as S, nextTick as w, openBlock as l, createElementBlock as k, renderSlot as C, toDisplayString as r, unref as a, createBlock as n, withCtx as o, createTextVNode as u, createCommentVNode as b } from "vue";
2
- import { a as B, b as E, c as L, _ as c } from "./main-B0TVT1sb.js";
1
+ import { defineComponent as _, ref as g, computed as v, onMounted as S, nextTick as w, openBlock as l, createElementBlock as k, renderSlot as C, toDisplayString as r, unref as a, createBlock as n, withCtx as o, createTextVNode as u, createCommentVNode as b } from "vue";
2
+ import { a as B, b as E, c as L, _ as c } from "./main-SY-oNn1W.js";
3
3
  const R = { class: "text-xs" }, q = {
4
4
  key: 1,
5
5
  class: "text-gray-medium"
@@ -13,12 +13,12 @@ const R = { class: "text-xs" }, q = {
13
13
  },
14
14
  emits: ["loaded"],
15
15
  setup(s, { emit: x }) {
16
- const i = s, z = x, { t } = B(), p = g(null), d = g(!1), f = g(null), y = h(() => E(i.resource)), T = h(() => L(i.resource)), v = h(() => {
17
- const e = y.value, m = i.maxSize;
16
+ const i = s, z = x, { t } = B(), p = g(null), d = g(!1), f = g(null), h = v(() => E(i.resource)), T = v(() => L(i.resource)), y = v(() => {
17
+ const e = h.value, m = i.maxSize;
18
18
  return !e || !m ? !1 : e <= m;
19
19
  });
20
20
  return S(async () => {
21
- if (!(!v.value || T.value === "blocked")) {
21
+ if (!(!y.value || T.value === "blocked")) {
22
22
  d.value = !0;
23
23
  try {
24
24
  p.value = await i.load(), await w(), z("loaded");
@@ -29,10 +29,7 @@ const R = { class: "text-xs" }, q = {
29
29
  }
30
30
  }
31
31
  }), (e, m) => (l(), k("div", R, [
32
- p.value !== null ? C(e.$slots, "default", {
33
- key: 0,
34
- data: p.value
35
- }) : d.value ? (l(), k("div", q, r(a(t)("Chargement de l'aperçu {fileType}...", { fileType: s.fileType })), 1)) : v.value ? T.value === "blocked" ? (l(), n(c, { key: 3 }, {
32
+ p.value !== null ? C(e.$slots, "default", { data: p.value }, void 0, void 0, 0) : d.value ? (l(), k("div", q, r(a(t)("Chargement de l'aperçu {fileType}...", { fileType: s.fileType })), 1)) : y.value ? T.value === "blocked" ? (l(), n(c, { key: 3 }, {
36
33
  default: o(() => [
37
34
  u(r(a(t)("Ce fichier {fileType} ne peut pas être prévisualisé car il est hébergé sur un site distant qui restreint l'accès (CORS). Téléchargez-le depuis l'onglet Téléchargements.", { fileType: s.fileType })), 1)
38
35
  ]),
@@ -49,7 +46,7 @@ const R = { class: "text-xs" }, q = {
49
46
  _: 1
50
47
  })) : b("", !0) : (l(), n(c, { key: 2 }, {
51
48
  default: o(() => [
52
- u(r(y.value ? a(t)("Le fichier {fileType} est trop volumineux pour être prévisualisé. Téléchargez-le depuis l'onglet Téléchargements.", { fileType: s.fileType }) : a(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)
49
+ u(r(h.value ? a(t)("Le fichier {fileType} est trop volumineux pour être prévisualisé. Téléchargez-le depuis l'onglet Téléchargements.", { fileType: s.fileType }) : a(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)
53
50
  ]),
54
51
  _: 1
55
52
  }))
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as i, defineAsyncComponent as m, openBlock as u, createBlock as f, unref as t, withCtx as l, createVNode as p } from "vue";
2
- import { u as x } from "./main-B0TVT1sb.js";
3
- import { _ as w } from "./PreviewWrapper.vue_vue_type_script_setup_true_lang-keE4Kr1e.js";
2
+ import { u as x } from "./main-SY-oNn1W.js";
3
+ import { _ as w } from "./PreviewWrapper.vue_vue_type_script_setup_true_lang-Dnz4oSUe.js";
4
4
  const X = /* @__PURE__ */ i({
5
5
  __name: "XmlPreview.client",
6
6
  props: {
@@ -8,7 +8,7 @@ const X = /* @__PURE__ */ i({
8
8
  },
9
9
  setup(r) {
10
10
  const o = m(
11
- () => import("./vue3-xml-viewer.common-Bx0jB4Yr.js").then((e) => e.v).then((e) => e.default || e.XmlViewer)
11
+ () => import("./vue3-xml-viewer.common-CBGfdux9.js").then((e) => e.v).then((e) => e.default || e.XmlViewer)
12
12
  ), n = r, s = x(), c = async () => {
13
13
  const e = await fetch(n.resource.url);
14
14
  if (!e.ok) throw new Error(`HTTP error! status: ${e.status}`);