@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.
Files changed (53) hide show
  1. package/dist/{Datafair.client-DXPU1V24.js → Datafair.client-B-OG5WtK.js} +1 -1
  2. package/dist/ImagePreview.client-D0c-ifUi.js +36 -0
  3. package/dist/{JsonPreview.client-D1SnGfWG.js → JsonPreview.client-Dwh9sW9M.js} +2 -2
  4. package/dist/{MapContainer.client-DlsaEVGx.js → MapContainer.client-C2AZ7sOB.js} +2 -2
  5. package/dist/{PdfPreview.client-C9OrLR0z.js → PdfPreview.client-8NzNfW8b.js} +2 -2
  6. package/dist/{Pmtiles.client-CyylWfTy.js → Pmtiles.client-BFH4rTB7.js} +5842 -5660
  7. package/dist/{PreviewWrapper.vue_vue_type_script_setup_true_lang-CtXZOHXI.js → PreviewWrapper.vue_vue_type_script_setup_true_lang-BOgE441d.js} +7 -10
  8. package/dist/{XmlPreview.client-DoX7RurH.js → XmlPreview.client-DMOUO508.js} +3 -3
  9. package/dist/components-next.css +1 -1
  10. package/dist/components-next.js +179 -171
  11. package/dist/components.css +1 -1
  12. package/dist/{index-Br1sa7wQ.js → index-C9obT9DJ.js} +4392 -4293
  13. package/dist/{leaflet-src-DWG7tmpQ.js → leaflet-src-B4AZU0vr.js} +1 -1
  14. package/dist/{main-BU6kP4dE.js → main-DNoYWfit.js} +16159 -15631
  15. package/dist/{vue3-xml-viewer.common-Cpui-Yi9.js → vue3-xml-viewer.common-Cp7Cu5ME.js} +1 -1
  16. package/package.json +4 -5
  17. package/src/components/Chart/ChartViewer.vue +103 -10
  18. package/src/components/Chart/ChartViewerWrapper.vue +8 -0
  19. package/src/components/DataserviceCard.vue +6 -0
  20. package/src/components/DataserviceQuality.vue +82 -0
  21. package/src/components/DataserviceQualityInline.vue +31 -0
  22. package/src/components/DataserviceQualityTooltipContent.vue +79 -0
  23. package/src/components/DatasetQuality.vue +11 -11
  24. package/src/components/DatasetQualityInline.vue +2 -2
  25. package/src/components/DatasetQualityTooltipContent.vue +1 -1
  26. package/src/components/ResourceAccordion/ImagePreview.client.vue +48 -0
  27. package/src/components/ResourceAccordion/ResourceAccordion.vue +8 -3
  28. package/src/components/ResourceExplorer/ResourceExplorerViewer.vue +15 -1
  29. package/src/components/ReuseCard.vue +2 -2
  30. package/src/components/ReuseDetails.vue +2 -2
  31. package/src/components/ReuseHorizontalCard.vue +2 -2
  32. package/src/components/Search/GlobalSearch.vue +2 -2
  33. package/src/components/TabularExplorer/TabularCell.vue +5 -4
  34. package/src/components/TabularExplorer/TabularCellPopover.vue +1 -1
  35. package/src/components/TabularExplorer/TabularExplorer.vue +168 -49
  36. package/src/components/TabularExplorer/TabularFilterContent.vue +27 -10
  37. package/src/components/TabularExplorer/TabularFilterPopover.vue +1 -0
  38. package/src/components/TabularExplorer/types.ts +3 -3
  39. package/src/composables/useHasTabularData.ts +2 -1
  40. package/src/composables/useResourceCapabilities.ts +27 -14
  41. package/src/config.ts +1 -0
  42. package/src/functions/charts.ts +23 -3
  43. package/src/functions/resources.ts +56 -0
  44. package/src/functions/tabular.ts +44 -1
  45. package/src/main.ts +15 -6
  46. package/src/types/dataservices.ts +15 -0
  47. package/src/types/organizations.ts +10 -0
  48. package/src/types/reuses.ts +12 -1
  49. package/src/types/search.ts +2 -2
  50. package/src/types/visualizations.ts +1 -1
  51. /package/src/components/{DatasetQualityItem.vue → QualityItem.vue} +0 -0
  52. /package/src/components/{DatasetQualityItemWarning.vue → QualityItemWarning.vue} +0 -0
  53. /package/src/components/{DatasetQualityScore.vue → QualityScore.vue} +0 -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-BU6kP4dE.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-DNoYWfit.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-BU6kP4dE.js";
3
- import { _ as w } from "./PreviewWrapper.vue_vue_type_script_setup_true_lang-CtXZOHXI.js";
2
+ import { u as x } from "./main-DNoYWfit.js";
3
+ import { _ as w } from "./PreviewWrapper.vue_vue_type_script_setup_true_lang-BOgE441d.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-Cpui-Yi9.js").then((e) => e.v).then((e) => e.default || e.XmlViewer)
11
+ () => import("./vue3-xml-viewer.common-Cp7Cu5ME.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}`);