@datagouv/components-next 1.5.1-dev.1398.g03d927e4 → 1.5.1-dev.1400.g319aeac9

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 (40) hide show
  1. package/dist/{Datafair.client-Dy9xu8CW.js → Datafair.client-CQNxPvZt.js} +1 -1
  2. package/dist/{ImagePreview.client-CwAd1LgO.js → ImagePreview.client-DbkBb47d.js} +1 -1
  3. package/dist/{JsonPreview.client-B_3llbkW.js → JsonPreview.client-Ba-_lUCj.js} +2 -2
  4. package/dist/{MapContainer.client-AMALm4aj.js → MapContainer.client-BsJGdnP2.js} +1 -1
  5. package/dist/{PdfPreview.client-BzcjEgi5.js → PdfPreview.client-CJbZbXds.js} +3 -3
  6. package/dist/{PdfSkeleton-CEK7DOge.js → PdfSkeleton-sY8nI3Lv.js} +1 -1
  7. package/dist/{Pmtiles.client-C8SVSeQV.js → Pmtiles.client-Wea3YvTU.js} +7 -7
  8. package/dist/{PreviewError-DOcS8Jau.js → PreviewError-BzUvwX47.js} +249 -247
  9. package/dist/{PreviewWrapper-CdSsdB9s.js → PreviewWrapper-CwOJqQSn.js} +1 -1
  10. package/dist/{XmlPreview.client-BnIm8NMm.js → XmlPreview.client-xXdnrUCW.js} +2 -2
  11. package/dist/components-next.css +1 -1
  12. package/dist/components-next.js +10072 -9895
  13. package/dist/components.css +1 -1
  14. package/dist/{france-DjD07ZB4.js → france-BYzDEL-I.js} +23 -23
  15. package/package.json +1 -1
  16. package/src/components/AccessTypeBadge.vue +46 -0
  17. package/src/components/Badge.vue +74 -0
  18. package/src/components/ChartBadge.vue +17 -0
  19. package/src/components/ChartCard.vue +4 -17
  20. package/src/components/DataserviceBadge.vue +17 -0
  21. package/src/components/DataserviceCard.vue +12 -31
  22. package/src/components/DatasetBadge.vue +17 -0
  23. package/src/components/DatasetCard.vue +11 -15
  24. package/src/components/DatasetInformation/DatasetInformationSection.vue +3 -7
  25. package/src/components/DatasetInformation/DatasetSchemaSection.vue +1 -4
  26. package/src/components/DatasetLabelTag.vue +4 -15
  27. package/src/components/LicenseBadge.vue +7 -12
  28. package/src/components/ObjectStatusBadge.vue +47 -0
  29. package/src/components/OrganizationBadge.vue +24 -0
  30. package/src/components/OrganizationTypeBadge.vue +5 -4
  31. package/src/components/ResourceAccordion/SchemaBadge.vue +6 -2
  32. package/src/components/ReuseBadge.vue +17 -0
  33. package/src/components/ReuseCard.vue +5 -20
  34. package/src/components/SchemaCard.vue +1 -5
  35. package/src/components/StatBox.vue +5 -3
  36. package/src/components/Tag.vue +61 -15
  37. package/src/functions/objectStatus.ts +34 -0
  38. package/src/main.ts +25 -3
  39. package/src/types/ui.ts +2 -0
  40. package/src/components/ObjectCardBadge.vue +0 -33
@@ -1,4 +1,4 @@
1
- import { a as e, t } from "./PreviewError-DOcS8Jau.js";
1
+ import { a as e, t } from "./PreviewError-BzUvwX47.js";
2
2
  import { computed as n, createBlock as r, createElementBlock as i, createElementVNode as a, defineComponent as o, openBlock as s } from "vue";
3
3
  // src/components/ResourceAccordion/Datafair.client.vue?vue&type=script&setup=true&lang.ts
4
4
  var c = { class: "fr-text--xs" }, l = { key: 0 }, u = ["src"], d = /* @__PURE__ */ o({
@@ -1,4 +1,4 @@
1
- import { H as e, L as t, _ as n, i as r, t as i } from "./PreviewError-DOcS8Jau.js";
1
+ import { H as e, L as t, _ as n, i as r, t as i } from "./PreviewError-BzUvwX47.js";
2
2
  import { computed as a, createBlock as o, createElementBlock as s, defineComponent as c, openBlock as l, ref as u } from "vue";
3
3
  // src/components/ResourceAccordion/ImagePreview.client.vue?vue&type=script&setup=true&lang.ts
4
4
  var d = { class: "text-xs" }, f = ["src"], p = /* @__PURE__ */ c({
@@ -1,5 +1,5 @@
1
- import { L as e } from "./PreviewError-DOcS8Jau.js";
2
- import { t } from "./PreviewWrapper-CdSsdB9s.js";
1
+ import { L as e } from "./PreviewError-BzUvwX47.js";
2
+ import { t } from "./PreviewWrapper-CwOJqQSn.js";
3
3
  import { createBlock as n, createVNode as r, defineAsyncComponent as i, defineComponent as a, openBlock as o, unref as s, withCtx as c } from "vue";
4
4
  // src/components/ResourceAccordion/JsonPreview.client.vue
5
5
  var l = /* @__PURE__ */ a({
@@ -1,4 +1,4 @@
1
- import { A as e, H as t, t as n } from "./PreviewError-DOcS8Jau.js";
1
+ import { A as e, H as t, t as n } from "./PreviewError-BzUvwX47.js";
2
2
  import { createBlock as r, createElementBlock as i, defineComponent as a, onMounted as o, openBlock as s, ref as c, useTemplateRef as l } from "vue";
3
3
  // src/components/ResourceAccordion/MapContainer.client.vue
4
4
  var u = /* @__PURE__ */ a({
@@ -1,6 +1,6 @@
1
- import { t as e } from "./PreviewWrapper-CdSsdB9s.js";
2
- import { t } from "./PdfSkeleton-CEK7DOge.js";
3
- import { H as n, L as r, M as i } from "./PreviewError-DOcS8Jau.js";
1
+ import { t as e } from "./PreviewWrapper-CwOJqQSn.js";
2
+ import { t } from "./PdfSkeleton-sY8nI3Lv.js";
3
+ import { H as n, L as r, M as i } from "./PreviewError-BzUvwX47.js";
4
4
  import { Fragment as a, createBlock as o, createElementBlock as s, createElementVNode as c, createTextVNode as l, createVNode as u, defineComponent as d, normalizeClass as f, onBeforeUnmount as p, openBlock as m, ref as h, renderList as g, toDisplayString as _, unref as v, withCtx as y } from "vue";
5
5
  // ../node_modules/pdfjs-dist/build/pdf.mjs
6
6
  var b = {};
@@ -1,4 +1,4 @@
1
- import { H as e } from "./PreviewError-DOcS8Jau.js";
1
+ import { H as e } from "./PreviewError-BzUvwX47.js";
2
2
  import { createElementBlock as t, createStaticVNode as n, defineComponent as r, normalizeClass as i, openBlock as a, unref as o } from "vue";
3
3
  // src/components/ResourceAccordion/PdfSkeleton.vue?vue&type=script&setup=true&lang.ts
4
4
  var s = ["aria-label"], c = /* @__PURE__ */ r({
@@ -1,6 +1,6 @@
1
- import { H as e, L as t, M as n, ft as r, t as i } from "./PreviewError-DOcS8Jau.js";
1
+ import { H as e, L as t, M as n, ft as r, t as i } from "./PreviewError-BzUvwX47.js";
2
2
  import { t as a } from "./purify.es-D-UgLNEK.js";
3
- import { c as o, n as s, r as c, t as l } from "./france-DjD07ZB4.js";
3
+ import { c as o, n as s, s as c, t as l } from "./france-BYzDEL-I.js";
4
4
  import { computed as u, createBlock as d, createCommentVNode as f, createElementBlock as p, createElementVNode as m, createTextVNode as h, createVNode as g, defineComponent as _, onMounted as v, openBlock as y, ref as b, toDisplayString as x, unref as S, useTemplateRef as C, withCtx as w } from "vue";
5
5
  // ../node_modules/fflate/esm/browser.js
6
6
  var T = Uint8Array, E = Uint16Array, D = Int32Array, O = new T([
@@ -41764,9 +41764,9 @@ var fR = "/assets/maplibre-gl-worker-Dlv-oLtU.js", pR = {
41764
41764
  dataset: {}
41765
41765
  },
41766
41766
  setup(_) {
41767
- let T = _, { t: E } = e(), { formatDate: D } = o(), O = t(), k = b(!1), A = u(() => T.resource.extras["analysis:parsing:pmtiles_url"] ? T.resource.extras["analysis:parsing:pmtiles_url"] : T.resource.url), j = u(() => O.pmtilesViewerBaseUrl ? `${O.pmtilesViewerBaseUrl}${encodeURIComponent(A.value)}` : null), ee = u(() => T.resource.extras["analysis:parsing:pmtiles_url"] ? D(T.resource.extras["analysis:parsing:finished_at"]) : D(T.resource.last_modified)), te = C("containerRef");
41767
+ let T = _, { t: E } = e(), { formatDate: D } = c(), O = t(), k = b(!1), A = u(() => T.resource.extras["analysis:parsing:pmtiles_url"] ? T.resource.extras["analysis:parsing:pmtiles_url"] : T.resource.url), j = u(() => O.pmtilesViewerBaseUrl ? `${O.pmtilesViewerBaseUrl}${encodeURIComponent(A.value)}` : null), ee = u(() => T.resource.extras["analysis:parsing:pmtiles_url"] ? D(T.resource.extras["analysis:parsing:finished_at"]) : D(T.resource.last_modified)), te = C("containerRef");
41768
41768
  dR(fR);
41769
- let ne = u(() => c(T.dataset));
41769
+ let ne = u(() => s(T.dataset));
41770
41770
  async function re() {
41771
41771
  await Promise.resolve({ });
41772
41772
  let e = new Ie();
@@ -41793,7 +41793,7 @@ var fR = "/assets/maplibre-gl-worker-Dlv-oLtU.js", pR = {
41793
41793
  closeButton: !0,
41794
41794
  closeOnClick: !0
41795
41795
  }).addClassName("rounded-full").setMaxWidth("300px");
41796
- function o(e) {
41796
+ function s(e) {
41797
41797
  if (!e.features || !e.features[0]) i.remove();
41798
41798
  else {
41799
41799
  let t = e.lngLat, n = Object.keys(e.features[0].properties).map((t) => `<p class="my-0"><b class="font-marianne text-sm" !important;">${a.sanitize(t, { USE_PROFILES: { html: !1 } })} :</b> <span class="font-mono text-xs">${a.sanitize(e.features[0].properties[t], { USE_PROFILES: { html: !1 } })}</span></p>`).join("");
@@ -41813,7 +41813,7 @@ var fR = "/assets/maplibre-gl-worker-Dlv-oLtU.js", pR = {
41813
41813
  case "Polygon": return "fill";
41814
41814
  case "Point": return "circle";
41815
41815
  case "LineString": return "line";
41816
- default: return s(e.geometry, "Unsupported geometry"), "";
41816
+ default: return o(e.geometry, "Unsupported geometry"), "";
41817
41817
  }
41818
41818
  });
41819
41819
  r.addLayer({
@@ -41833,7 +41833,7 @@ var fR = "/assets/maplibre-gl-worker-Dlv-oLtU.js", pR = {
41833
41833
  .6
41834
41834
  ]
41835
41835
  }
41836
- }), r.on("click", e.layer, o), r.on("mouseenter", e.layer, () => {
41836
+ }), r.on("click", e.layer, s), r.on("mouseenter", e.layer, () => {
41837
41837
  r.getCanvas().style.cursor = "pointer";
41838
41838
  }), r.on("mouseleave", e.layer, () => {
41839
41839
  r.getCanvas().style.cursor = "";