@datagouv/components-next 1.0.2-dev.207 → 1.0.2-dev.209

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 (28) hide show
  1. package/dist/{Control-B9WQxlpJ.js → Control-DMgMzWnv.js} +1 -1
  2. package/dist/{Datafair.client-CZhPt853.js → Datafair.client-DpdHdQSx.js} +1 -1
  3. package/dist/{Event-iXDrp-fy.js → Event-CfA33G1K.js} +9 -9
  4. package/dist/{Image-mNMBOofs.js → Image-Dueb7njC.js} +12 -12
  5. package/dist/{ImagePreview.client-CTF6hyMR.js → ImagePreview.client-CtbvW_Q_.js} +1 -1
  6. package/dist/{JsonPreview.client-BwsgTnR7.js → JsonPreview.client-CboMjF2M.js} +2 -2
  7. package/dist/{Map-BfqKMw0S.js → Map-B4L0JtRr.js} +1113 -1025
  8. package/dist/{MapContainer.client-C95seuim.js → MapContainer.client-BPAbtzkr.js} +7 -7
  9. package/dist/{OSM-CcrUhItr.js → OSM-BUakwXg7.js} +1 -1
  10. package/dist/{PdfPreview.client-DaXPl9xc.js → PdfPreview.client-DQF8gS3o.js} +2 -2
  11. package/dist/{Pmtiles.client-PSLUkGmF.js → Pmtiles.client-B-X5pTXq.js} +5788 -5737
  12. package/dist/{PreviewWrapper.vue_vue_type_script_setup_true_lang-McCfJHd3.js → PreviewWrapper.vue_vue_type_script_setup_true_lang-CzFj5TX2.js} +1 -1
  13. package/dist/{ScaleLine-VGQ7nkMS.js → ScaleLine-4id_Lp0T.js} +2 -2
  14. package/dist/{Tile-CSpn0Ca8.js → Tile-DI5PtNs-.js} +375 -325
  15. package/dist/{TileImage-CpbaEFwd.js → TileImage-DFTatxB8.js} +83 -63
  16. package/dist/{View-BYBpt-AU.js → View-CwG9s9BF.js} +108 -101
  17. package/dist/{XmlPreview.client-BOVVyHXW.js → XmlPreview.client-BvlwpV00.js} +3 -3
  18. package/dist/{common-BoeTUnDZ.js → common-C3bYhKiN.js} +71 -70
  19. package/dist/components-next.css +1 -1
  20. package/dist/components-next.js +1 -1
  21. package/dist/components.css +2 -2
  22. package/dist/{index-CeH9i6IP.js → index-D2eZ5uVt.js} +5683 -5785
  23. package/dist/{leaflet-src-D1Cl1V-1.js → leaflet-src-CM7H_PEp.js} +1 -1
  24. package/dist/{main-DADRUTDs.js → main-D1VXLvop.js} +12531 -13523
  25. package/dist/{proj-DxGbobp7.js → proj-DQrI7bbu.js} +302 -282
  26. package/dist/{tilecoord-DvX7WWiA.js → tilecoord-xLae1hR5.js} +106 -106
  27. package/dist/{vue3-xml-viewer.common-BzsQ7xw8.js → vue3-xml-viewer.common-D8NyU_-4.js} +1 -1
  28. package/package.json +25 -25
@@ -1,6 +1,6 @@
1
- import { T as d, i as nt, n as xt, c as b, b as st } from "./Image-mNMBOofs.js";
2
- import { z as Tt, g as pt } from "./common-BoeTUnDZ.js";
3
- import { aD as It, E as ft, al as Xt, Q as _t, g as rt, U as vt, aa as Mt, z as H, I as y, an as dt, aV as Wt, v as gt, x as Yt, S as yt, aW as Lt, ak as Pt, aK as Ft, aA as Ot, aL as wt, aX as et, af as ot, i as Dt, R as z, a0 as $, d as V, l as Ct, u as at, a6 as ht, F as At, a as Rt } from "./proj-DxGbobp7.js";
1
+ import { T as d, i as nt, n as xt, c as H, b as st } from "./Image-Dueb7njC.js";
2
+ import { z as Tt, g as pt } from "./common-C3bYhKiN.js";
3
+ import { aF as It, E as ft, am as Xt, R as _t, g as rt, W as Mt, ab as vt, z as b, J as y, ao as dt, aX as Wt, v as gt, x as Yt, U as yt, aY as Pt, al as Ft, aM as Lt, aC as Ot, aN as wt, aZ as et, ag as ot, i as Dt, S as z, a1 as $, d as V, l as Ct, u as at, a7 as ht, F as At, a as Rt } from "./proj-DQrI7bbu.js";
4
4
  class mt extends It {
5
5
  /**
6
6
  * @param {import("./tilecoord.js").TileCoord} tileCoord Tile coordinate.
@@ -155,7 +155,7 @@ class zt extends mt {
155
155
  * @private
156
156
  */
157
157
  handleImageError_() {
158
- this.state = d.ERROR, this.unlistenImage_(), this.image_ = kt(), this.changed();
158
+ this.state = d.ERROR, this.unlistenImage_(), this.image_ = Nt(), this.changed();
159
159
  }
160
160
  /**
161
161
  * Tracks successful image load.
@@ -233,11 +233,11 @@ class zt extends mt {
233
233
  this.unlistenImage_(), this.image_ = null, super.disposeInternal();
234
234
  }
235
235
  }
236
- function kt() {
237
- const n = b(1, 1);
236
+ function Nt() {
237
+ const n = H(1, 1);
238
238
  return n.fillStyle = "rgba(0,0,0,0)", n.fillRect(0, 0, 1, 1), n.canvas;
239
239
  }
240
- class Bt {
240
+ class Zt {
241
241
  /**
242
242
  * @param {number} minX Minimum X.
243
243
  * @param {number} maxX Maximum X.
@@ -309,22 +309,22 @@ class Bt {
309
309
  }
310
310
  }
311
311
  function $t(n, t, s, e, r) {
312
- return r !== void 0 ? (r.minX = n, r.maxX = t, r.minY = s, r.maxY = e, r) : new Bt(n, t, s, e);
312
+ return r !== void 0 ? (r.minX = n, r.maxX = t, r.minY = s, r.maxY = e, r) : new Zt(n, t, s, e);
313
313
  }
314
314
  let J;
315
- const B = [];
315
+ const Z = [];
316
316
  function ct(n, t, s, e, r) {
317
317
  n.beginPath(), n.moveTo(0, 0), n.lineTo(t, s), n.lineTo(e, r), n.closePath(), n.save(), n.clip(), n.fillRect(0, 0, Math.max(t, e) + 1, Math.max(s, r)), n.restore();
318
318
  }
319
319
  function tt(n, t) {
320
320
  return Math.abs(n[t * 4] - 210) > 2 || Math.abs(n[t * 4 + 3] - 0.75 * 255) > 2;
321
321
  }
322
- function Gt() {
322
+ function Bt() {
323
323
  if (J === void 0) {
324
- const n = b(6, 6, B);
324
+ const n = H(6, 6, Z);
325
325
  n.globalCompositeOperation = "lighter", n.fillStyle = "rgba(210, 0, 0, 0.75)", ct(n, 4, 5, 4, 0), ct(n, 4, 5, 0, 5);
326
326
  const t = n.getImageData(0, 0, 3, 3).data;
327
- J = tt(t, 0) || tt(t, 4) || tt(t, 8), st(n), B.push(n.canvas);
327
+ J = tt(t, 0) || tt(t, 4) || tt(t, 8), st(n), Z.push(n.canvas);
328
328
  }
329
329
  return J;
330
330
  }
@@ -340,13 +340,13 @@ function ut(n, t, s, e) {
340
340
  const m = n.getMetersPerUnit();
341
341
  m !== void 0 && (i /= m);
342
342
  const g = n.getExtent();
343
- if (!g || vt(g, r)) {
343
+ if (!g || Mt(g, r)) {
344
344
  const T = rt(n, i, r) / i;
345
345
  isFinite(T) && T > 0 && (i /= T);
346
346
  }
347
347
  return i;
348
348
  }
349
- function Kt(n, t, s, e) {
349
+ function Gt(n, t, s, e) {
350
350
  const r = Yt(s);
351
351
  let i = ut(
352
352
  n,
@@ -363,11 +363,11 @@ function Kt(n, t, s, e) {
363
363
  ), isFinite(i) && i > 0;
364
364
  }), i;
365
365
  }
366
- function Nt(n, t, s, e, r, i, c, m, g, T, X, x, L, P) {
367
- const a = b(
366
+ function St(n, t, s, e, r, i, c, m, g, T, X, x, P, F) {
367
+ const a = H(
368
368
  Math.round(s * n),
369
369
  Math.round(s * t),
370
- B
370
+ Z
371
371
  );
372
372
  if (x || (a.imageSmoothingEnabled = !1), g.length === 0)
373
373
  return a.canvas;
@@ -377,28 +377,28 @@ function Nt(n, t, s, e, r, i, c, m, g, T, X, x, L, P) {
377
377
  }
378
378
  a.globalCompositeOperation = "lighter";
379
379
  const E = gt();
380
- g.forEach(function(o, F, w) {
381
- Mt(E, o.extent);
380
+ g.forEach(function(o, L, w) {
381
+ vt(E, o.extent);
382
382
  });
383
383
  let l;
384
384
  const f = s / e, _ = (x ? 1 : 1 + Math.pow(2, -24)) / f;
385
- (!L || g.length !== 1 || T !== 0) && (l = b(
385
+ (!P || g.length !== 1 || T !== 0) && (l = H(
386
386
  Math.round(y(E) * f),
387
- Math.round(H(E) * f),
388
- B
389
- ), x || (l.imageSmoothingEnabled = !1), g.forEach(function(o, F, w) {
387
+ Math.round(b(E) * f),
388
+ Z
389
+ ), x || (l.imageSmoothingEnabled = !1), g.forEach(function(o, L, w) {
390
390
  if (o.image.width > 0 && o.image.height > 0) {
391
391
  if (o.clipExtent) {
392
392
  l.save();
393
- const v = (o.clipExtent[0] - E[0]) * f, W = -(o.clipExtent[3] - E[3]) * f, D = y(o.clipExtent) * f, A = H(o.clipExtent) * f;
393
+ const M = (o.clipExtent[0] - E[0]) * f, W = -(o.clipExtent[3] - E[3]) * f, D = y(o.clipExtent) * f, A = b(o.clipExtent) * f;
394
394
  l.rect(
395
- x ? v : Math.round(v),
395
+ x ? M : Math.round(M),
396
396
  x ? W : Math.round(W),
397
- x ? D : Math.round(v + D) - Math.round(v),
397
+ x ? D : Math.round(M + D) - Math.round(M),
398
398
  x ? A : Math.round(W + A) - Math.round(W)
399
399
  ), l.clip();
400
400
  }
401
- const p = (o.extent[0] - E[0]) * f, I = -(o.extent[3] - E[3]) * f, M = y(o.extent) * f, Y = H(o.extent) * f;
401
+ const p = (o.extent[0] - E[0]) * f, I = -(o.extent[3] - E[3]) * f, v = y(o.extent) * f, Y = b(o.extent) * f;
402
402
  l.drawImage(
403
403
  o.image,
404
404
  T,
@@ -407,74 +407,74 @@ function Nt(n, t, s, e, r, i, c, m, g, T, X, x, L, P) {
407
407
  o.image.height - 2 * T,
408
408
  x ? p : Math.round(p),
409
409
  x ? I : Math.round(I),
410
- x ? M : Math.round(p + M) - Math.round(p),
410
+ x ? v : Math.round(p + v) - Math.round(p),
411
411
  x ? Y : Math.round(I + Y) - Math.round(I)
412
412
  ), o.clipExtent && l.restore();
413
413
  }
414
414
  }));
415
415
  const u = dt(c);
416
- return m.getTriangles().forEach(function(o, F, w) {
416
+ return m.getTriangles().forEach(function(o, L, w) {
417
417
  const p = o.source, I = o.target;
418
- let M = p[0][0], Y = p[0][1], v = p[1][0], W = p[1][1], D = p[2][0], A = p[2][1];
419
- const G = h((I[0][0] - u[0]) / i), K = h(
418
+ let v = p[0][0], Y = p[0][1], M = p[1][0], W = p[1][1], D = p[2][0], A = p[2][1];
419
+ const B = h((I[0][0] - u[0]) / i), G = h(
420
420
  -(I[0][1] - u[1]) / i
421
- ), R = h((I[1][0] - u[0]) / i), k = h(
421
+ ), R = h((I[1][0] - u[0]) / i), N = h(
422
422
  -(I[1][1] - u[1]) / i
423
- ), Q = h((I[2][0] - u[0]) / i), U = h(
423
+ ), U = h((I[2][0] - u[0]) / i), Q = h(
424
424
  -(I[2][1] - u[1]) / i
425
- ), j = M, q = Y;
426
- M = 0, Y = 0, v -= j, W -= q, D -= j, A -= q;
425
+ ), j = v, q = Y;
426
+ v = 0, Y = 0, M -= j, W -= q, D -= j, A -= q;
427
427
  const Et = [
428
- [v, W, 0, 0, R - G],
429
- [D, A, 0, 0, Q - G],
430
- [0, 0, v, W, k - K],
431
- [0, 0, D, A, U - K]
432
- ], N = Wt(Et);
433
- if (!N)
428
+ [M, W, 0, 0, R - B],
429
+ [D, A, 0, 0, U - B],
430
+ [0, 0, M, W, N - G],
431
+ [0, 0, D, A, Q - G]
432
+ ], S = Wt(Et);
433
+ if (!S)
434
434
  return;
435
- if (a.save(), a.beginPath(), Gt() || !x) {
436
- a.moveTo(R, k);
437
- const O = 4, Z = G - R, it = K - k;
435
+ if (a.save(), a.beginPath(), Bt() || !x) {
436
+ a.moveTo(R, N);
437
+ const O = 4, K = B - R, it = G - N;
438
438
  for (let C = 0; C < O; C++)
439
439
  a.lineTo(
440
- R + h((C + 1) * Z / O),
441
- k + h(C * it / (O - 1))
440
+ R + h((C + 1) * K / O),
441
+ N + h(C * it / (O - 1))
442
442
  ), C != O - 1 && a.lineTo(
443
- R + h((C + 1) * Z / O),
444
- k + h((C + 1) * it / (O - 1))
443
+ R + h((C + 1) * K / O),
444
+ N + h((C + 1) * it / (O - 1))
445
445
  );
446
- a.lineTo(Q, U);
446
+ a.lineTo(U, Q);
447
447
  } else
448
- a.moveTo(R, k), a.lineTo(G, K), a.lineTo(Q, U);
448
+ a.moveTo(R, N), a.lineTo(B, G), a.lineTo(U, Q);
449
449
  a.clip(), a.transform(
450
- N[0],
451
- N[2],
452
- N[1],
453
- N[3],
454
- G,
455
- K
450
+ S[0],
451
+ S[2],
452
+ S[1],
453
+ S[3],
454
+ B,
455
+ G
456
456
  ), a.translate(
457
457
  E[0] - j,
458
458
  E[3] - q
459
459
  );
460
- let S;
460
+ let k;
461
461
  if (l)
462
- S = l.canvas, a.scale(_, -_);
462
+ k = l.canvas, a.scale(_, -_);
463
463
  else {
464
- const O = g[0], Z = O.extent;
465
- S = O.image, a.scale(
466
- y(Z) / S.width,
467
- -H(Z) / S.height
464
+ const O = g[0], K = O.extent;
465
+ k = O.image, a.scale(
466
+ y(K) / k.width,
467
+ -b(K) / k.height
468
468
  );
469
469
  }
470
- a.drawImage(S, 0, 0), a.restore();
471
- }), l && (st(l), B.push(l.canvas)), X && (a.save(), a.globalCompositeOperation = "source-over", a.strokeStyle = "black", a.lineWidth = 1, m.getTriangles().forEach(function(o, F, w) {
472
- const p = o.target, I = (p[0][0] - u[0]) / i, M = -(p[0][1] - u[1]) / i, Y = (p[1][0] - u[0]) / i, v = -(p[1][1] - u[1]) / i, W = (p[2][0] - u[0]) / i, D = -(p[2][1] - u[1]) / i;
473
- a.beginPath(), a.moveTo(Y, v), a.lineTo(I, M), a.lineTo(W, D), a.closePath(), a.stroke();
470
+ a.drawImage(k, 0, 0), a.restore();
471
+ }), l && (st(l), Z.push(l.canvas)), X && (a.save(), a.globalCompositeOperation = "source-over", a.strokeStyle = "black", a.lineWidth = 1, m.getTriangles().forEach(function(o, L, w) {
472
+ const p = o.target, I = (p[0][0] - u[0]) / i, v = -(p[0][1] - u[1]) / i, Y = (p[1][0] - u[0]) / i, M = -(p[1][1] - u[1]) / i, W = (p[2][0] - u[0]) / i, D = -(p[2][1] - u[1]) / i;
473
+ a.beginPath(), a.moveTo(Y, M), a.lineTo(I, v), a.lineTo(W, D), a.closePath(), a.stroke();
474
474
  }), a.restore()), a.canvas;
475
475
  }
476
- const St = 10, lt = 0.25;
477
- class Zt {
476
+ const kt = 10, lt = 0.25;
477
+ class Kt {
478
478
  /**
479
479
  * @param {import("../proj/Projection.js").default} sourceProj Source projection.
480
480
  * @param {import("../proj/Projection.js").default} targetProj Target projection.
@@ -487,17 +487,17 @@ class Zt {
487
487
  constructor(t, s, e, r, i, c, m) {
488
488
  this.sourceProj_ = t, this.targetProj_ = s;
489
489
  let g = {};
490
- const T = m ? Lt(
490
+ const T = m ? Pt(
491
491
  (_) => pt(
492
492
  m,
493
493
  _t(_, this.targetProj_, this.sourceProj_)
494
494
  )
495
- ) : Pt(this.targetProj_, this.sourceProj_);
495
+ ) : Ft(this.targetProj_, this.sourceProj_);
496
496
  this.transformInv_ = function(_) {
497
497
  const u = _[0] + "/" + _[1];
498
498
  return g[u] || (g[u] = T(_)), g[u];
499
499
  }, this.maxSourceExtent_ = r, this.errorThresholdSquared_ = i * i, this.triangles_ = [], this.wrapsXInSource_ = !1, this.canWrapXInSource_ = this.sourceProj_.canWrapX() && !!r && !!this.sourceProj_.getExtent() && y(r) >= y(this.sourceProj_.getExtent()), this.sourceWorldWidth_ = this.sourceProj_.getExtent() ? y(this.sourceProj_.getExtent()) : null, this.targetWorldWidth_ = this.targetProj_.getExtent() ? y(this.targetProj_.getExtent()) : null;
500
- const X = dt(e), x = Ft(e), L = Ot(e), P = wt(e), a = this.transformInv_(X), h = this.transformInv_(x), E = this.transformInv_(L), l = this.transformInv_(P), f = St + (c ? Math.max(
500
+ const X = dt(e), x = Lt(e), P = Ot(e), F = wt(e), a = this.transformInv_(X), h = this.transformInv_(x), E = this.transformInv_(P), l = this.transformInv_(F), f = kt + (c ? Math.max(
501
501
  0,
502
502
  Math.ceil(
503
503
  Math.log2(
@@ -508,8 +508,8 @@ class Zt {
508
508
  if (this.addQuad_(
509
509
  X,
510
510
  x,
511
- L,
512
511
  P,
512
+ F,
513
513
  a,
514
514
  h,
515
515
  E,
@@ -517,7 +517,7 @@ class Zt {
517
517
  f
518
518
  ), this.wrapsXInSource_) {
519
519
  let _ = 1 / 0;
520
- this.triangles_.forEach(function(u, o, F) {
520
+ this.triangles_.forEach(function(u, o, L) {
521
521
  _ = Math.min(
522
522
  _,
523
523
  u.source[0][0],
@@ -536,7 +536,7 @@ class Zt {
536
536
  [u.source[2][0], u.source[2][1]]
537
537
  ];
538
538
  o[0][0] - _ > this.sourceWorldWidth_ / 2 && (o[0][0] -= this.sourceWorldWidth_), o[1][0] - _ > this.sourceWorldWidth_ / 2 && (o[1][0] -= this.sourceWorldWidth_), o[2][0] - _ > this.sourceWorldWidth_ / 2 && (o[2][0] -= this.sourceWorldWidth_);
539
- const F = Math.min(
539
+ const L = Math.min(
540
540
  o[0][0],
541
541
  o[1][0],
542
542
  o[2][0]
@@ -545,7 +545,7 @@ class Zt {
545
545
  o[0][0],
546
546
  o[1][0],
547
547
  o[2][0]
548
- ) - F < this.sourceWorldWidth_ / 2 && (u.source = o);
548
+ ) - L < this.sourceWorldWidth_ / 2 && (u.source = o);
549
549
  }
550
550
  });
551
551
  }
@@ -584,17 +584,17 @@ class Zt {
584
584
  * @private
585
585
  */
586
586
  addQuad_(t, s, e, r, i, c, m, g, T) {
587
- const X = ot([i, c, m, g]), x = this.sourceWorldWidth_ ? y(X) / this.sourceWorldWidth_ : null, L = (
587
+ const X = ot([i, c, m, g]), x = this.sourceWorldWidth_ ? y(X) / this.sourceWorldWidth_ : null, P = (
588
588
  /** @type {number} */
589
589
  this.sourceWorldWidth_
590
- ), P = this.sourceProj_.canWrapX() && x > 0.5 && x < 1;
590
+ ), F = this.sourceProj_.canWrapX() && x > 0.5 && x < 1;
591
591
  let a = !1;
592
592
  if (T > 0) {
593
593
  if (this.targetProj_.isGlobal() && this.targetWorldWidth_) {
594
594
  const E = ot([t, s, e, r]);
595
595
  a = y(E) / this.targetWorldWidth_ > lt || a;
596
596
  }
597
- !P && this.sourceProj_.isGlobal() && x && (a = x > lt || a);
597
+ !F && this.sourceProj_.isGlobal() && x && (a = x > lt || a);
598
598
  }
599
599
  if (!a && this.maxSourceExtent_ && isFinite(X[0]) && isFinite(X[1]) && isFinite(X[2]) && isFinite(X[3]) && !Dt(X, this.maxSourceExtent_))
600
600
  return;
@@ -609,7 +609,7 @@ class Zt {
609
609
  if (!a) {
610
610
  const E = [(t[0] + e[0]) / 2, (t[1] + e[1]) / 2], l = this.transformInv_(E);
611
611
  let f;
612
- P ? f = (z(i[0], L) + z(m[0], L)) / 2 - z(l[0], L) : f = (i[0] + m[0]) / 2 - l[0];
612
+ F ? f = (z(i[0], P) + z(m[0], P)) / 2 - z(l[0], P) : f = (i[0] + m[0]) / 2 - l[0];
613
613
  const _ = (i[1] + m[1]) / 2 - l[1];
614
614
  a = f * f + _ * _ > this.errorThresholdSquared_;
615
615
  }
@@ -664,7 +664,7 @@ class Zt {
664
664
  return;
665
665
  }
666
666
  }
667
- if (P) {
667
+ if (F) {
668
668
  if (!this.canWrapXInSource_)
669
669
  return;
670
670
  this.wrapsXInSource_ = !0;
@@ -690,7 +690,7 @@ class Zt {
690
690
  return this.triangles_;
691
691
  }
692
692
  }
693
- const Ht = 0.5;
693
+ const bt = 0.5;
694
694
  class Vt extends mt {
695
695
  /**
696
696
  * @param {import("../proj/Projection.js").default} sourceProj Source projection.
@@ -707,13 +707,13 @@ class Vt extends mt {
707
707
  * @param {boolean} [renderEdges] Render reprojection edges.
708
708
  * @param {import("../Tile.js").Options} [options] Tile options.
709
709
  */
710
- constructor(t, s, e, r, i, c, m, g, T, X, x, L) {
711
- super(i, d.IDLE, L), this.renderEdges_ = x !== void 0 ? x : !1, this.pixelRatio_ = m, this.gutter_ = g, this.canvas_ = null, this.sourceTileGrid_ = s, this.targetTileGrid_ = r, this.wrappedTileCoord_ = c || i, this.sourceTiles_ = [], this.sourcesListenerKeys_ = null, this.sourceZ_ = 0, this.clipExtent_ = t.canWrapX() ? t.getExtent() : void 0;
712
- const P = r.getTileCoordExtent(
710
+ constructor(t, s, e, r, i, c, m, g, T, X, x, P) {
711
+ super(i, d.IDLE, P), this.renderEdges_ = x !== void 0 ? x : !1, this.pixelRatio_ = m, this.gutter_ = g, this.canvas_ = null, this.sourceTileGrid_ = s, this.targetTileGrid_ = r, this.wrappedTileCoord_ = c || i, this.sourceTiles_ = [], this.sourcesListenerKeys_ = null, this.sourceZ_ = 0, this.clipExtent_ = t.canWrapX() ? t.getExtent() : void 0;
712
+ const F = r.getTileCoordExtent(
713
713
  this.wrappedTileCoord_
714
714
  ), a = this.targetTileGrid_.getExtent();
715
715
  let h = this.sourceTileGrid_.getExtent();
716
- const E = a ? V(P, a) : P;
716
+ const E = a ? V(F, a) : F;
717
717
  if (et(E) === 0) {
718
718
  this.state = d.EMPTY;
719
719
  return;
@@ -722,7 +722,7 @@ class Vt extends mt {
722
722
  l && (h ? h = V(h, l) : h = l);
723
723
  const f = r.getResolution(
724
724
  this.wrappedTileCoord_[0]
725
- ), _ = Kt(
725
+ ), _ = Gt(
726
726
  t,
727
727
  e,
728
728
  E,
@@ -732,8 +732,8 @@ class Vt extends mt {
732
732
  this.state = d.EMPTY;
733
733
  return;
734
734
  }
735
- const u = X !== void 0 ? X : Ht;
736
- if (this.triangulation_ = new Zt(
735
+ const u = X !== void 0 ? X : bt;
736
+ if (this.triangulation_ = new Kt(
737
737
  t,
738
738
  e,
739
739
  E,
@@ -757,23 +757,23 @@ class Vt extends mt {
757
757
  )) : o = V(o, h)), !et(o))
758
758
  this.state = d.EMPTY;
759
759
  else {
760
- let F = 0, w = 0;
761
- t.canWrapX() && (F = y(l), w = Math.floor(
762
- (o[0] - l[0]) / F
760
+ let L = 0, w = 0;
761
+ t.canWrapX() && (L = y(l), w = Math.floor(
762
+ (o[0] - l[0]) / L
763
763
  )), At(
764
764
  o.slice(),
765
765
  t,
766
766
  !0
767
767
  ).forEach((I) => {
768
- const M = s.getTileRangeForExtentAndZ(
768
+ const v = s.getTileRangeForExtentAndZ(
769
769
  I,
770
770
  this.sourceZ_
771
771
  );
772
- for (let Y = M.minX; Y <= M.maxX; Y++)
773
- for (let v = M.minY; v <= M.maxY; v++) {
774
- const W = w * F;
772
+ for (let Y = v.minX; Y <= v.maxX; Y++)
773
+ for (let M = v.minY; M <= v.maxY; M++) {
774
+ const W = w * L;
775
775
  this.sourceTiles_.push({
776
- getTile: () => T(this.sourceZ_, Y, v, m),
776
+ getTile: () => T(this.sourceZ_, Y, M, m),
777
777
  offset: W
778
778
  });
779
779
  }
@@ -813,7 +813,7 @@ class Vt extends mt {
813
813
  ), g = this.targetTileGrid_.getTileCoordExtent(
814
814
  this.wrappedTileCoord_
815
815
  );
816
- this.canvas_ = Nt(
816
+ this.canvas_ = St(
817
817
  r,
818
818
  i,
819
819
  this.pixelRatio_,
@@ -869,22 +869,22 @@ class Vt extends mt {
869
869
  this.canvas_ && (st(
870
870
  /** @type {CanvasRenderingContext2D|OffscreenCanvasRenderingContext2D} */
871
871
  this.canvas_.getContext("2d")
872
- ), B.push(this.canvas_), this.canvas_ = null), this.sourceTiles_.length = 0, super.release();
872
+ ), Z.push(this.canvas_), this.canvas_ = null), this.sourceTiles_.length = 0, super.release();
873
873
  }
874
874
  }
875
875
  function Jt(n, t, s, e) {
876
876
  return e !== void 0 ? (e[0] = n, e[1] = t, e[2] = s, e) : [n, t, s];
877
877
  }
878
- function bt(n, t, s) {
878
+ function Ht(n, t, s) {
879
879
  return n + "/" + t + "/" + s;
880
880
  }
881
881
  function te(n, t, s, e, r) {
882
- return `${Rt(n)},${t},${bt(s, e, r)}`;
882
+ return `${Rt(n)},${t},${Ht(s, e, r)}`;
883
883
  }
884
884
  function ee(n) {
885
- return Qt(n[0], n[1], n[2]);
885
+ return Ut(n[0], n[1], n[2]);
886
886
  }
887
- function Qt(n, t, s) {
887
+ function Ut(n, t, s) {
888
888
  return (t << n) + s;
889
889
  }
890
890
  function se(n, t) {
@@ -895,17 +895,17 @@ function se(n, t) {
895
895
  return i ? i.containsXY(e, r) : !0;
896
896
  }
897
897
  export {
898
- Ht as E,
898
+ bt as E,
899
899
  zt as I,
900
900
  Vt as R,
901
901
  mt as T,
902
- Zt as a,
903
- Bt as b,
902
+ Kt as a,
903
+ Zt as b,
904
904
  ut as c,
905
905
  Jt as d,
906
906
  $t as e,
907
907
  te as g,
908
908
  ee as h,
909
- Nt as r,
909
+ St as r,
910
910
  se as w
911
911
  };
@@ -1,4 +1,4 @@
1
- import { g as Ke } from "./main-DADRUTDs.js";
1
+ import { g as Ke } from "./main-D1VXLvop.js";
2
2
  import We from "vue";
3
3
  function Fe(I, K) {
4
4
  for (var V = 0; V < K.length; V++) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@datagouv/components-next",
3
- "version": "1.0.2-dev.207",
3
+ "version": "1.0.2-dev.209",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "engines": {
@@ -26,20 +26,20 @@
26
26
  "@floating-ui/vue": "^2.0.1",
27
27
  "@headlessui/vue": "^1.7.23",
28
28
  "@remixicon/vue": "^4.9.0",
29
- "@types/hast": "^3.0.4",
30
- "@types/leaflet": "^1.9.21",
31
- "@vueuse/core": "^14.3.0",
32
- "@vueuse/router": "^14.3.0",
29
+ "@types/hast": "^3.0.5",
30
+ "@types/leaflet": "^1.9.22",
31
+ "@vueuse/core": "^14.4.0",
32
+ "@vueuse/router": "^14.4.0",
33
33
  "chart.js": "^4.5.1",
34
- "dompurify": "^3.4.13",
34
+ "dompurify": "^3.4.15",
35
35
  "echarts": "^6.1.0",
36
36
  "geopf-extensions-openlayers": "1.0.0-beta.11",
37
37
  "leaflet": "^1.9.4",
38
38
  "maplibre-gl": "^5.24.0",
39
39
  "ofetch": "^1.5.1",
40
- "ol": "^10.9.0",
40
+ "ol": "^10.10.0",
41
41
  "pdfjs-dist": "^4.10.38",
42
- "pmtiles": "^4.4.1",
42
+ "pmtiles": "^4.5.0",
43
43
  "popmotion": "^11.0.5",
44
44
  "rehype-highlight": "^7.0.2",
45
45
  "rehype-raw": "^7.0.0",
@@ -63,33 +63,33 @@
63
63
  "yaml": "^2.9.0"
64
64
  },
65
65
  "devDependencies": {
66
- "@tailwindcss/cli": "^4.3.0",
67
- "@tailwindcss/typography": "^0.5.19",
68
- "@tsconfig/node22": "^22.0.5",
66
+ "@tailwindcss/cli": "^4.3.3",
67
+ "@tailwindcss/typography": "^0.5.20",
68
+ "@tsconfig/node22": "^22.0.6",
69
69
  "@types/geojson": "^7946.0.16",
70
- "@types/node": "^22.19.19",
71
- "@vitejs/plugin-vue": "^6.0.7",
70
+ "@types/node": "^22.20.2",
71
+ "@vitejs/plugin-vue": "^6.0.8",
72
72
  "@vue/eslint-config-prettier": "^10.2.0",
73
- "@vue/eslint-config-typescript": "^14.7.0",
73
+ "@vue/eslint-config-typescript": "^14.9.0",
74
74
  "@vue/tsconfig": "^0.8.1",
75
- "eslint": "^9.39.4",
76
- "eslint-plugin-vue": "^10.9.1",
75
+ "eslint": "^9.39.5",
76
+ "eslint-plugin-vue": "^10.11.0",
77
77
  "jiti": "^2.7.0",
78
78
  "npm-run-all2": "^8.0.4",
79
79
  "openapi-types": "^12.1.3",
80
- "prettier": "^3.8.3",
81
- "tailwindcss": "^4.3.0",
80
+ "prettier": "^3.9.6",
81
+ "tailwindcss": "^4.3.3",
82
82
  "typescript": "^5.9.3",
83
- "vite": "^7.3.3",
84
- "vite-plugin-vue-devtools": "^8.1.2",
85
- "vue": "^3.5.40",
86
- "vue-router": "^5.0.7",
87
- "vue-tsc": "^3.3.2"
83
+ "vite": "^7.3.6",
84
+ "vite-plugin-vue-devtools": "^8.2.1",
85
+ "vue": "^3.5.42",
86
+ "vue-router": "^5.3.1",
87
+ "vue-tsc": "^3.3.11"
88
88
  },
89
89
  "peerDependencies": {
90
+ "echarts": "^6.0.0",
90
91
  "vue": "^3.5.13",
91
- "vue-router": "^4.5.0 || ^5.0.0",
92
- "echarts": "^6.0.0"
92
+ "vue-router": "^4.5.0 || ^5.0.0"
93
93
  },
94
94
  "scarfSettings": {
95
95
  "enabled": false