@datagouv/components-next 1.0.2-dev.83 → 1.0.2-dev.85

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 (26) hide show
  1. package/dist/{Control-DuZJdKV_.js → Control-ZFh5ta_U.js} +1 -1
  2. package/dist/{Datafair.client-BzW-ctDf.js → Datafair.client-CGDQWFP2.js} +1 -1
  3. package/dist/{Event--kp8kMdJ.js → Event-DSQcW7OF.js} +24 -24
  4. package/dist/{Image-34hvypZI.js → Image-BijNEG0p.js} +6 -6
  5. package/dist/{JsonPreview.client-BfMSzR07.js → JsonPreview.client-CRAjVwYR.js} +2 -2
  6. package/dist/{Map-BjUnLyj8.js → Map-BUtPf5GN.js} +756 -756
  7. package/dist/{MapContainer.client-CLs-im9i.js → MapContainer.client-gmUC2Cl5.js} +37 -38
  8. package/dist/{OSM-s40W6sQ2.js → OSM-D4MTdBtk.js} +2 -2
  9. package/dist/{PdfPreview.client-C13PQCU_.js → PdfPreview.client-CRIHPiVa.js} +2 -2
  10. package/dist/{Pmtiles.client-CL7PXXDl.js → Pmtiles.client-DHyaqRB7.js} +1 -1
  11. package/dist/{PreviewWrapper.vue_vue_type_script_setup_true_lang-C6XnsZ-7.js → PreviewWrapper.vue_vue_type_script_setup_true_lang-BFIK58nF.js} +1 -1
  12. package/dist/{ScaleLine-KW-nXqp3.js → ScaleLine-hJQIqcZm.js} +2 -2
  13. package/dist/{Tile-DbNFNPfU.js → Tile-Dcl7oIVu.js} +35 -35
  14. package/dist/{TileImage-BsXBxMtq.js → TileImage-BJeHipMX.js} +4 -4
  15. package/dist/{View-BR92hTWP.js → View-xp_P_OHw.js} +412 -401
  16. package/dist/{XmlPreview.client-KaENrbbG.js → XmlPreview.client-D2pj4Pi-.js} +3 -3
  17. package/dist/{common-PJfpC179.js → common-BjQlan3k.js} +36 -36
  18. package/dist/components-next.css +4 -4
  19. package/dist/components-next.js +1 -1
  20. package/dist/{index-C7WVVGgD.js → index-BihEb_eg.js} +32886 -27183
  21. package/dist/{main-K-42Oe8-.js → main-BNyfhPgX.js} +7 -7
  22. package/dist/{proj-DsetBcW7.js → proj-CsNo9yH1.js} +532 -512
  23. package/dist/{tilecoord-Db24Px13.js → tilecoord-A0fLnBZr.js} +28 -28
  24. package/dist/{vue3-xml-viewer.common-sHPSE-jD.js → vue3-xml-viewer.common-MxH3AoAS.js} +1 -1
  25. package/package.json +2 -2
  26. package/src/components/ResourceAccordion/MapContainer.client.vue +1 -3
@@ -1,4 +1,4 @@
1
- import { B as o, u as h, V as m, l as c } from "./proj-DsetBcW7.js";
1
+ import { B as o, u as h, V as m, l as c } from "./proj-CsNo9yH1.js";
2
2
  const g = {
3
3
  /**
4
4
  * Triggered after a map frame is rendered.
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as l, computed as a, createElementBlock as o, openBlock as t, createBlock as u, createElementVNode as f, withCtx as p, createTextVNode as m, toDisplayString as _, unref as h } from "vue";
2
- import { a as x, _ as g } from "./main-K-42Oe8-.js";
2
+ import { a as x, _ as g } from "./main-BNyfhPgX.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,7 +1,7 @@
1
- import { H as x } from "./View-BR92hTWP.js";
2
- import { a as I } from "./common-PJfpC179.js";
3
- import { B as C, a7 as h, al as m, u as S, l as p, E as N, i as L, a4 as P, J as Z } from "./proj-DsetBcW7.js";
4
- import { c as T } from "./Image-34hvypZI.js";
1
+ import { I as x } from "./View-xp_P_OHw.js";
2
+ import { a as I } from "./common-BjQlan3k.js";
3
+ import { B as C, a7 as h, al as m, u as S, l as p, E as N, i as L, a4 as P, J as Z } from "./proj-CsNo9yH1.js";
4
+ import { c as T } from "./Image-BijNEG0p.js";
5
5
  const n = {
6
6
  OPACITY: "opacity",
7
7
  VISIBLE: "visible",
@@ -600,7 +600,7 @@ const B = /^rgba?\(\s*(\d+%?)\s+(\d+%?)\s+(\d+%?)(?:\s*\/\s*(\d+%|\d*\.\d+|[01])
600
600
  function f(t, e) {
601
601
  return t.endsWith("%") ? Number(t.substring(0, t.length - 1)) / e : Number(t);
602
602
  }
603
- function d(t) {
603
+ function l(t) {
604
604
  throw new Error('failed to parse "' + t + '" as color');
605
605
  }
606
606
  function A(t) {
@@ -615,7 +615,7 @@ function A(t) {
615
615
  o !== void 0 ? h(f(o, 100), 0, 1) : 1
616
616
  ];
617
617
  }
618
- d(t);
618
+ l(t);
619
619
  }
620
620
  if (t.startsWith("#")) {
621
621
  if (F.test(t)) {
@@ -626,12 +626,12 @@ function A(t) {
626
626
  }
627
627
  return u[3] = u[3] / 255, u;
628
628
  }
629
- d(t);
629
+ l(t);
630
630
  }
631
631
  const e = V();
632
632
  e.fillStyle = "#abcdef";
633
633
  let r = e.fillStyle;
634
- e.fillStyle = t, e.fillStyle === r && (e.fillStyle = "#fedcba", r = e.fillStyle, e.fillStyle = t, e.fillStyle === r && d(t));
634
+ e.fillStyle = t, e.fillStyle === r && (e.fillStyle = "#fedcba", r = e.fillStyle, e.fillStyle = t, e.fillStyle === r && l(t));
635
635
  const s = e.fillStyle;
636
636
  if (s.startsWith("#") || s.startsWith("rgba"))
637
637
  return A(s);
@@ -640,9 +640,9 @@ function A(t) {
640
640
  return i[3] = P(i[3] / 255, 3), i;
641
641
  }
642
642
  function v(t) {
643
- return typeof t == "string" ? t : H(t);
643
+ return typeof t == "string" ? t : W(t);
644
644
  }
645
- const k = 1024, l = {};
645
+ const k = 1024, d = {};
646
646
  let R = 0;
647
647
  function J(t) {
648
648
  if (t.length === 4)
@@ -650,10 +650,10 @@ function J(t) {
650
650
  const e = t.slice();
651
651
  return e[3] = 1, e;
652
652
  }
653
- function E(t) {
653
+ function M(t) {
654
654
  return t > 31308e-7 ? Math.pow(t, 1 / 2.4) * 269.025 - 14.025 : t * 3294.6;
655
655
  }
656
- function M(t) {
656
+ function E(t) {
657
657
  return t > 0.2068965 ? Math.pow(t, 3) : (t - 4 / 29) * (108 / 841);
658
658
  }
659
659
  function O(t) {
@@ -672,7 +672,7 @@ function Q(t) {
672
672
  ];
673
673
  }
674
674
  function ee(t) {
675
- const e = (t[0] + 16) / 116, r = t[1], s = t[2] * Math.PI / 180, i = M(e), a = M(e + r / 500 * Math.cos(s)), o = M(e - r / 200 * Math.sin(s)), u = E(a * 3.021973625 - i * 1.617392459 - o * 0.404875592), c = E(a * -0.943766287 + i * 1.916279586 + o * 0.027607165), g = E(a * 0.069407491 - i * 0.22898585 + o * 1.159737864);
675
+ const e = (t[0] + 16) / 116, r = t[1], s = t[2] * Math.PI / 180, i = E(e), a = E(e + r / 500 * Math.cos(s)), o = E(e - r / 200 * Math.sin(s)), u = M(a * 3.021973625 - i * 1.617392459 - o * 0.404875592), c = M(a * -0.943766287 + i * 1.916279586 + o * 0.027607165), g = M(a * 0.069407491 - i * 0.22898585 + o * 1.159737864);
676
676
  return [
677
677
  h(u + 0.5 | 0, 0, 255),
678
678
  h(c + 0.5 | 0, 0, 255),
@@ -683,23 +683,23 @@ function ee(t) {
683
683
  function j(t) {
684
684
  if (t === "none")
685
685
  return U;
686
- if (l.hasOwnProperty(t))
687
- return l[t];
686
+ if (d.hasOwnProperty(t))
687
+ return d[t];
688
688
  if (R >= k) {
689
689
  let r = 0;
690
- for (const s in l)
691
- (r++ & 3) === 0 && (delete l[s], --R);
690
+ for (const s in d)
691
+ (r++ & 3) === 0 && (delete d[s], --R);
692
692
  }
693
693
  const e = A(t);
694
- e.length !== 4 && d(t);
694
+ e.length !== 4 && l(t);
695
695
  for (const r of e)
696
- isNaN(r) && d(t);
697
- return l[t] = e, ++R, e;
696
+ isNaN(r) && l(t);
697
+ return d[t] = e, ++R, e;
698
698
  }
699
699
  function te(t) {
700
700
  return Array.isArray(t) ? t : j(t);
701
701
  }
702
- function H(t) {
702
+ function W(t) {
703
703
  let e = t[0];
704
704
  e != (e | 0) && (e = e + 0.5 | 0);
705
705
  let r = t[1];
@@ -723,16 +723,16 @@ class re extends Z {
723
723
  }
724
724
  export {
725
725
  D as B,
726
- K as E,
727
726
  G as L,
728
727
  U as N,
729
- re as R,
728
+ K as R,
730
729
  te as a,
731
730
  v as b,
731
+ re as c,
732
732
  j as f,
733
733
  X as i,
734
734
  ee as l,
735
735
  Q as r,
736
- H as t,
736
+ W as t,
737
737
  J as w
738
738
  };
@@ -1,7 +1,7 @@
1
- import { aC as v, E as f, aq as C, aB as h, u as R } from "./proj-DsetBcW7.js";
1
+ import { aD as v, E as f, ar as C, aC as h, u as R } from "./proj-CsNo9yH1.js";
2
2
  const r = typeof navigator < "u" && typeof navigator.userAgent < "u" ? navigator.userAgent.toLowerCase() : "", I = r.includes("safari") && !r.includes("chrom");
3
3
  I && (r.includes("version/15.4") || /cpu (os|iphone os) 15_4 like mac os x/.test(r));
4
- const L = r.includes("webkit") && !r.includes("edge"), D = r.includes("macintosh"), w = typeof devicePixelRatio < "u" ? devicePixelRatio : 1, y = typeof WorkerGlobalScope < "u" && typeof OffscreenCanvas < "u" && self instanceof WorkerGlobalScope, u = typeof Image < "u" && Image.prototype.decode, p = typeof createImageBitmap == "function", O = (function() {
4
+ const D = r.includes("webkit") && !r.includes("edge"), L = r.includes("macintosh"), w = typeof devicePixelRatio < "u" ? devicePixelRatio : 1, y = typeof WorkerGlobalScope < "u" && typeof OffscreenCanvas < "u" && self instanceof WorkerGlobalScope, u = typeof Image < "u" && Image.prototype.decode, p = typeof createImageBitmap == "function", O = (function() {
5
5
  let e = !1;
6
6
  try {
7
7
  const t = Object.defineProperty({}, "passive", {
@@ -268,7 +268,7 @@ function g(e, t) {
268
268
  )
269
269
  ) : x(e);
270
270
  }
271
- function q(e, t) {
271
+ function Y(e, t) {
272
272
  return t && (e.src = t), e.src && u && p ? e.decode().then(() => createImageBitmap(e)).catch((n) => {
273
273
  if (e.complete && e.width)
274
274
  return e;
@@ -278,7 +278,7 @@ function q(e, t) {
278
278
  export {
279
279
  w as D,
280
280
  F as I,
281
- D as M,
281
+ L as M,
282
282
  O as P,
283
283
  _ as T,
284
284
  y as W,
@@ -286,9 +286,9 @@ export {
286
286
  T as b,
287
287
  m as c,
288
288
  a as d,
289
- q as e,
289
+ Y as e,
290
290
  P as f,
291
- L as g,
291
+ D as g,
292
292
  N as h,
293
293
  g as i,
294
294
  G as j,
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as c, defineAsyncComponent as u, createBlock as m, openBlock as p, unref as r, withCtx as f, createVNode as l } from "vue";
2
- import { u as d } from "./main-K-42Oe8-.js";
3
- import { _ as h } from "./PreviewWrapper.vue_vue_type_script_setup_true_lang-C6XnsZ-7.js";
2
+ import { u as d } from "./main-BNyfhPgX.js";
3
+ import { _ as h } from "./PreviewWrapper.vue_vue_type_script_setup_true_lang-BFIK58nF.js";
4
4
  const J = /* @__PURE__ */ c({
5
5
  __name: "JsonPreview.client",
6
6
  props: {