@datagouv/components-next 1.4.1-dev.1373.g379aceb6 → 1.4.1-dev.1375.ge1f9e509

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 (81) hide show
  1. package/assets/main.css +4 -0
  2. package/dist/{Control-CeBb5PEu.js → Control-DPuXeUqi.js} +3 -12
  3. package/dist/{Datafair.client-Ci2WOgAS.js → Datafair.client-LlEgG7WU.js} +2 -3
  4. package/dist/{Image-CBQwYbQB.js → Image-DVWRoLLI.js} +7 -22
  5. package/dist/{ImagePreview.client-B4RtxuiJ.js → ImagePreview.client-Db5dmxMP.js} +2 -3
  6. package/dist/{JsonPreview.client-r7swv2fp.js → JsonPreview.client-DKy2AexC.js} +4 -6
  7. package/dist/{Layer-BPuffNS-.js → Layer-D_5tYbVm.js} +7 -9
  8. package/dist/{Map-QeL96qbQ.js → Map-CTBJEae_.js} +937 -967
  9. package/dist/{MapContainer.client-CxH1a8Tn.js → MapContainer.client-Clk9_bbS.js} +13 -15
  10. package/dist/{OSM-DT4I7v8A.js → OSM-B5Zc3qAf.js} +2 -3
  11. package/dist/{PdfPreview.client-BjeMcqcy.js → PdfPreview.client-D3wHTDb9.js} +130 -378
  12. package/dist/{PdfSkeleton-CVZxJaeL.js → PdfSkeleton-nas5Pmia.js} +2 -3
  13. package/dist/{Pmtiles.client-D8idR2l7.js → Pmtiles.client-NGYdeSJY.js} +151 -350
  14. package/dist/{PreviewError-Cx7CItT_.js → PreviewError-EeaGx3SL.js} +399 -392
  15. package/dist/{PreviewWrapper-Cd1RSmS-.js → PreviewWrapper-BhldDdXK.js} +2 -3
  16. package/dist/{ScaleLine-Cwwk9wJo.js → ScaleLine-C_tuJ6VG.js} +3 -4
  17. package/dist/Tile-8nHSuqcv.js +571 -0
  18. package/dist/{Tile-4WpHaLOZ.js → Tile-Bu5lF4M5.js} +8 -13
  19. package/dist/{TileImage-CZZ4lgsm.js → TileImage-CgO5alXc.js} +105 -113
  20. package/dist/{View-DWqx4Jqr.js → View-Dad8DfSD.js} +25 -51
  21. package/dist/{XmlPreview.client-cSebx8br.js → XmlPreview.client-CmGbc3c3.js} +5 -7
  22. package/dist/assets/maplibre-gl-worker-CEzvAyZY.js +10 -0
  23. package/dist/components-next.css +1 -1
  24. package/dist/components-next.js +15585 -15914
  25. package/dist/components.css +1 -1
  26. package/dist/{en-C_qOt4Jn.js → en-OIaJCts4.js} +1 -2
  27. package/dist/{france-DPcdJc84.js → france-BtSQqcqV.js} +5 -9
  28. package/dist/{hvd-ZlsiTVFh.js → hvd-CTia2VCz.js} +1 -2
  29. package/dist/{inspire-DZQ-yA5f.js → inspire-Cc-Kc4K-.js} +1 -2
  30. package/dist/{leaflet-src-lLkzhpcP.js → leaflet-src-BY_Zq0V0.js} +77 -126
  31. package/dist/{proj-DM6GW1n3.js → proj-COhZ08DR.js} +19 -37
  32. package/dist/{purify.es-D6pPunDo.js → purify.es-CGAWnSTR.js} +4 -27
  33. package/dist/{rolldown-runtime-CEFd7nDs.js → rolldown-runtime-DsPmjQRF.js} +2 -3
  34. package/dist/{sl-BxQ_ZY_w.js → sl-CKkMwQhf.js} +1 -2
  35. package/dist/{spd-Cs37HjuR.js → spd-Djcs02gw.js} +1 -2
  36. package/dist/{sr-JDtennFO.js → sr-DabGmchD.js} +1 -2
  37. package/dist/{src-D_UE0st7.js → src-D_o-aUzl.js} +1612 -2428
  38. package/dist/{text-clamp.esm-DRvX2Gzm.js → text-clamp.esm-DE3022VR.js} +3 -5
  39. package/dist/{transform-Ct1GejD-.js → transform-CNeEnSK9.js} +7 -13
  40. package/dist/{vue3-json-viewer-BJgUfh-l.js → vue3-json-viewer-CUx5EFVA.js} +1 -2
  41. package/dist/{vue3-xml-viewer.common-DbJwzvCC.js → vue3-xml-viewer.common-C0bbtsGT.js} +2 -3
  42. package/package.json +2 -2
  43. package/src/components/CardMedia.vue +42 -0
  44. package/src/components/ChartCard.vue +53 -59
  45. package/src/components/DataserviceCard.vue +69 -85
  46. package/src/components/DataserviceQualityInline.vue +4 -20
  47. package/src/components/DataserviceQualityTooltipContent.vue +57 -65
  48. package/src/components/DatasetCard.vue +80 -93
  49. package/src/components/DatasetQualityInline.vue +4 -20
  50. package/src/components/DatasetQualityTooltipContent.vue +60 -62
  51. package/src/components/DiscussionMessageCard.vue +19 -22
  52. package/src/components/ObjectCard.vue +89 -18
  53. package/src/components/ObjectCardBadge.vue +27 -16
  54. package/src/components/ObjectCardMeta.vue +15 -0
  55. package/src/components/ObjectCardMetric.vue +23 -0
  56. package/src/components/ObjectCardMetrics.vue +6 -0
  57. package/src/components/ObjectCardOwner.vue +170 -17
  58. package/src/components/ObjectCardQuality.vue +32 -0
  59. package/src/components/ObjectCardShortDescription.vue +1 -1
  60. package/src/components/OrganizationCard.vue +101 -69
  61. package/src/components/OrganizationNameInline.vue +49 -0
  62. package/src/components/OrganizationTypeBadge.vue +21 -0
  63. package/src/components/OwnerType.vue +1 -1
  64. package/src/components/OwnerTypeIcon.vue +7 -3
  65. package/src/components/PostCard.vue +31 -35
  66. package/src/components/ProgressBar.vue +6 -3
  67. package/src/components/QualityItem.vue +9 -18
  68. package/src/components/QualityScore.vue +7 -1
  69. package/src/components/ReuseCard.vue +114 -95
  70. package/src/components/ReuseDetails.vue +19 -29
  71. package/src/components/SchemaCard.vue +30 -27
  72. package/src/components/Search/GlobalSearch.vue +7 -4
  73. package/src/components/Toggletip.vue +24 -12
  74. package/src/components/Tooltip.vue +113 -29
  75. package/src/components/TopicCard.vue +69 -78
  76. package/src/main.ts +0 -4
  77. package/dist/Tile-BV44yf69.js +0 -574
  78. package/dist/assets/maplibre-gl-worker-C24SsKwV.js +0 -10
  79. package/src/components/ObjectCardHeader.vue +0 -42
  80. package/src/components/OrganizationHorizontalCard.vue +0 -87
  81. package/src/components/ReuseHorizontalCard.vue +0 -81
@@ -1,7 +1,7 @@
1
- import { r as e } from "./rolldown-runtime-CEFd7nDs.js";
2
- import { B as t, Ct as n, H as r, Jt as i, K as a, Mt as o, N as s, O as c, Ot as l, P as u, Rt as d, St as f, T as p, U as m, Xt as h, Y as g, ct as _, en as v, f as ee, g as te, i as y, it as ne, jt as re, k as ie, l as b, lt as ae, m as oe, nn as se, o as ce, ot as le, q as ue, qt as de, tt as fe, u as x, ut as pe, v as me, y as he, yt as S, zt as C } from "./proj-DM6GW1n3.js";
3
- import { S as w, T as ge, _ as _e, b as ve, i as ye, m as be, r as xe, w as Se } from "./transform-Ct1GejD-.js";
4
- //#region ../node_modules/ol/geom/flat/transform.js
1
+ import { r as e } from "./rolldown-runtime-DsPmjQRF.js";
2
+ import { B as t, Ct as n, H as r, Jt as i, K as a, Mt as o, N as s, O as c, Ot as l, P as u, Rt as d, St as f, T as p, U as m, Xt as h, Y as g, ct as _, en as v, f as ee, g as te, i as y, it as ne, jt as re, k as ie, l as b, lt as ae, m as oe, nn as se, o as ce, ot as le, q as ue, qt as de, tt as fe, u as x, ut as pe, v as me, y as he, yt as S, zt as C } from "./proj-COhZ08DR.js";
3
+ import { S as w, T as ge, _ as _e, b as ve, i as ye, m as be, r as xe, w as Se } from "./transform-CNeEnSK9.js";
4
+ // ../node_modules/ol/geom/flat/transform.js
5
5
  function T(e, t, n, r, i, a, o) {
6
6
  a ||= [], o ||= 2;
7
7
  let s = 0;
@@ -41,8 +41,7 @@ function Te(e, t, n, r, i, a, o) {
41
41
  }
42
42
  return o && o.length != s && (o.length = s), o;
43
43
  }
44
- //#endregion
45
- //#region ../node_modules/ol/geom/Geometry.js
44
+ // ../node_modules/ol/geom/Geometry.js
46
45
  var Ee = ye(), De = [NaN, NaN], E = class extends d {
47
46
  constructor() {
48
47
  super(), this.extent_ = le(), this.extentRevision_ = -1, this.simplifiedGeometryMaxMinSquaredTolerance = 0, this.simplifiedGeometryRevision = 0, this.simplifyTransformedInternal = i((e, t, n) => {
@@ -206,8 +205,7 @@ function ke(e, t, n) {
206
205
  let i = e.getStride();
207
206
  return T(r, 0, r.length, i, t, n);
208
207
  }
209
- //#endregion
210
- //#region ../node_modules/ol/geom/flat/closest.js
208
+ // ../node_modules/ol/geom/flat/closest.js
211
209
  function Ae(e, t, n, i, a, o, s) {
212
210
  let c = e[t], l = e[t + 1], u = e[n] - c, d = e[n + 1] - l, f;
213
211
  if (u === 0 && d === 0) f = t;
@@ -283,8 +281,7 @@ function Me(e, t, n, r, i, a, o, s, c, l, u) {
283
281
  }
284
282
  return l;
285
283
  }
286
- //#endregion
287
- //#region ../node_modules/ol/geom/flat/deflate.js
284
+ // ../node_modules/ol/geom/flat/deflate.js
288
285
  function Ne(e, t, n, r) {
289
286
  for (let r = 0, i = n.length; r < i; ++r) e[t++] = n[r];
290
287
  return t;
@@ -314,8 +311,7 @@ function Pe(e, t, n, r, i) {
314
311
  }
315
312
  return i.length = a, i;
316
313
  }
317
- //#endregion
318
- //#region ../node_modules/ol/geom/flat/inflate.js
314
+ // ../node_modules/ol/geom/flat/inflate.js
319
315
  function F(e, t, n, r, i) {
320
316
  i = i === void 0 ? [] : i;
321
317
  let a = 0;
@@ -340,8 +336,7 @@ function Fe(e, t, n, r, i) {
340
336
  }
341
337
  return i.length = a, i;
342
338
  }
343
- //#endregion
344
- //#region ../node_modules/ol/geom/flat/simplify.js
339
+ // ../node_modules/ol/geom/flat/simplify.js
345
340
  function L(e, t, n, r, i, a, o) {
346
341
  let s = (n - t) / r;
347
342
  if (s < 3) {
@@ -384,11 +379,7 @@ function Le(e, t, n, r, i, a, o) {
384
379
  let n = R(e[t], i), d = R(e[t + 1], i);
385
380
  if (t += r, n == l && d == u) continue;
386
381
  let f = l - s, p = u - c, m = n - s, h = d - c;
387
- if (f * h == p * m && (f < 0 && m < f || f == m || f > 0 && m > f) && (p < 0 && h < p || p == h || p > 0 && h > p)) {
388
- l = n, u = d;
389
- continue;
390
- }
391
- a[o++] = l, a[o++] = u, s = l, c = u, l = n, u = d;
382
+ f * h == p * m && (f < 0 && m < f || f == m || f > 0 && m > f) && (p < 0 && h < p || p == h || p > 0 && h > p) ? (l = n, u = d) : (a[o++] = l, a[o++] = u, s = l, c = u, l = n, u = d);
392
383
  }
393
384
  return a[o++] = l, a[o++] = u, o;
394
385
  }
@@ -406,8 +397,7 @@ function Re(e, t, n, r, i, a, o, s) {
406
397
  }
407
398
  return o;
408
399
  }
409
- //#endregion
410
- //#region ../node_modules/ol/geom/Point.js
400
+ // ../node_modules/ol/geom/Point.js
411
401
  var ze = class e extends D {
412
402
  constructor(e, t) {
413
403
  super(), this.setCoordinates(e, t);
@@ -441,8 +431,7 @@ var ze = class e extends D {
441
431
  this.setLayout(t, e, 0), this.flatCoordinates ||= [], this.flatCoordinates.length = Ne(this.flatCoordinates, 0, e, this.stride), this.changed();
442
432
  }
443
433
  };
444
- //#endregion
445
- //#region ../node_modules/ol/geom/flat/area.js
434
+ // ../node_modules/ol/geom/flat/area.js
446
435
  function B(e, t, n, r) {
447
436
  let i = 0, a = e[n - r], o = e[n - r + 1], s = 0, c = 0;
448
437
  for (; t < n; t += r) {
@@ -467,8 +456,7 @@ function Ve(e, t, n, r) {
467
456
  }
468
457
  return i;
469
458
  }
470
- //#endregion
471
- //#region ../node_modules/ol/geom/LinearRing.js
459
+ // ../node_modules/ol/geom/LinearRing.js
472
460
  var V = class e extends D {
473
461
  constructor(e, t) {
474
462
  super(), this.maxDelta_ = -1, this.maxDeltaRevision_ = -1, t !== void 0 && !Array.isArray(e[0]) ? this.setFlatCoordinates(t, e) : this.setCoordinates(e, t);
@@ -499,8 +487,7 @@ var V = class e extends D {
499
487
  this.setLayout(t, e, 1), this.flatCoordinates ||= [], this.flatCoordinates.length = N(this.flatCoordinates, 0, e, this.stride), this.changed();
500
488
  }
501
489
  };
502
- //#endregion
503
- //#region ../node_modules/ol/geom/flat/interiorpoint.js
490
+ // ../node_modules/ol/geom/flat/interiorpoint.js
504
491
  function H(e, t, n, r, i, a, o) {
505
492
  let s, c, l, u, d, f, p, m = i[a + 1], g = [];
506
493
  for (let i = 0, a = n.length; i < a; ++i) {
@@ -527,8 +514,7 @@ function He(e, t, n, r, i) {
527
514
  }
528
515
  return a;
529
516
  }
530
- //#endregion
531
- //#region ../node_modules/ol/geom/flat/reverse.js
517
+ // ../node_modules/ol/geom/flat/reverse.js
532
518
  function Ue(e, t, n, r) {
533
519
  for (; t < n - r;) {
534
520
  for (let i = 0; i < r; ++i) {
@@ -538,8 +524,7 @@ function Ue(e, t, n, r) {
538
524
  t += r, n -= r;
539
525
  }
540
526
  }
541
- //#endregion
542
- //#region ../node_modules/ol/geom/flat/orient.js
527
+ // ../node_modules/ol/geom/flat/orient.js
543
528
  function U(e, t, n, r) {
544
529
  let i = 0, a = e[n - r], o = e[n - r + 1];
545
530
  for (; t < n; t += r) {
@@ -592,8 +577,7 @@ function Ke(e, t) {
592
577
  }
593
578
  return n;
594
579
  }
595
- //#endregion
596
- //#region ../node_modules/ol/geom/Polygon.js
580
+ // ../node_modules/ol/geom/Polygon.js
597
581
  var K = class e extends D {
598
582
  constructor(e, t, n) {
599
583
  super(), this.ends_ = [], this.flatInteriorPointRevision_ = -1, this.flatInteriorPoint_ = null, this.maxDelta_ = -1, this.maxDeltaRevision_ = -1, this.orientedRevision_ = -1, this.orientedFlatCoordinates_ = null, t !== void 0 && n ? (this.setFlatCoordinates(t, e), this.ends_ = n) : this.setCoordinates(e, t);
@@ -708,8 +692,7 @@ function Ye(e, t, n, r) {
708
692
  }
709
693
  e.changed();
710
694
  }
711
- //#endregion
712
- //#region ../node_modules/ol/rotationconstraint.js
695
+ // ../node_modules/ol/rotationconstraint.js
713
696
  function Xe(e) {
714
697
  if (e !== void 0) return 0;
715
698
  }
@@ -729,8 +712,7 @@ function $e(e) {
729
712
  return n || e === void 0 ? e : Math.abs(e) <= t ? 0 : e;
730
713
  });
731
714
  }
732
- //#endregion
733
- //#region ../node_modules/ol/ViewHint.js
715
+ // ../node_modules/ol/ViewHint.js
734
716
  var J = {
735
717
  ANIMATING: 0,
736
718
  INTERACTING: 1
@@ -739,8 +721,7 @@ var J = {
739
721
  RESOLUTION: "resolution",
740
722
  ROTATION: "rotation"
741
723
  };
742
- //#endregion
743
- //#region ../node_modules/ol/centerconstraint.js
724
+ // ../node_modules/ol/centerconstraint.js
744
725
  function et(e, n, r) {
745
726
  return (function(i, a, o, s, c) {
746
727
  if (!i) return;
@@ -758,8 +739,7 @@ function et(e, n, r) {
758
739
  function tt(e) {
759
740
  return e;
760
741
  }
761
- //#endregion
762
- //#region ../node_modules/ol/resolutionconstraint.js
742
+ // ../node_modules/ol/resolutionconstraint.js
763
743
  function X(e, t, r, i) {
764
744
  let a = l(t) / r[0], o = n(t) / r[1];
765
745
  return i ? Math.min(e, Math.max(a, o)) : Math.min(e, Math.min(a, o));
@@ -796,8 +776,7 @@ function it(e, n, r, i, a) {
796
776
  }
797
777
  });
798
778
  }
799
- //#endregion
800
- //#region ../node_modules/ol/View.js
779
+ // ../node_modules/ol/View.js
801
780
  var at = /* @__PURE__ */ e({
802
781
  createCenterConstraint: () => ct,
803
782
  createResolutionConstraint: () => lt,
@@ -1217,23 +1196,19 @@ var at = /* @__PURE__ */ e({
1217
1196
  }
1218
1197
  applyTargetState_(e, t) {
1219
1198
  let n = this.getAnimating() || this.getInteracting() || t, r = this.constraints_.rotation(this.targetRotation_, n), i = this.getViewportSize_(r), a = this.constraints_.resolution(this.targetResolution_, 0, i, n), o = this.constraints_.center(this.targetCenter_, a, i, n, this.calculateCenterShift(this.targetCenter_, a, r, i));
1220
- this.get(Y.ROTATION) !== r && this.set(Y.ROTATION, r), this.get(Y.RESOLUTION) !== a && (this.set(Y.RESOLUTION, a), this.set("zoom", this.getZoom(), !0)), (!o || !this.get(Y.CENTER) || !s(this.get(Y.CENTER), o)) && this.set(Y.CENTER, o), this.getAnimating() && !e && this.cancelAnimations(), this.cancelAnchor_ = void 0;
1199
+ this.get(Y.ROTATION) !== r && this.set(Y.ROTATION, r), this.get(Y.RESOLUTION) !== a && (this.set(Y.RESOLUTION, a), this.set("zoom", this.getZoom(), !0)), o && this.get(Y.CENTER) && s(this.get(Y.CENTER), o) || this.set(Y.CENTER, o), this.getAnimating() && !e && this.cancelAnimations(), this.cancelAnchor_ = void 0;
1221
1200
  }
1222
1201
  resolveConstraints(e, t, n) {
1223
1202
  e = e === void 0 ? 200 : e;
1224
1203
  let r = t || 0, i = this.constraints_.rotation(this.targetRotation_), a = this.getViewportSize_(i), o = this.constraints_.resolution(this.targetResolution_, r, a), c = this.constraints_.center(this.targetCenter_, o, a, !1, this.calculateCenterShift(this.targetCenter_, o, i, a));
1225
- if (e === 0 && !this.cancelAnchor_) {
1226
- this.targetResolution_ = o, this.targetRotation_ = i, this.targetCenter_ = c, this.applyTargetState_();
1227
- return;
1228
- }
1229
- n ||= e === 0 ? this.cancelAnchor_ : void 0, this.cancelAnchor_ = void 0, (this.getResolution() !== o || this.getRotation() !== i || !this.getCenterInternal() || !s(this.getCenterInternal(), c)) && (this.getAnimating() && this.cancelAnimations(), this.animateInternal({
1204
+ e === 0 && !this.cancelAnchor_ ? (this.targetResolution_ = o, this.targetRotation_ = i, this.targetCenter_ = c, this.applyTargetState_()) : (n ||= e === 0 ? this.cancelAnchor_ : void 0, this.cancelAnchor_ = void 0, this.getResolution() === o && this.getRotation() === i && this.getCenterInternal() && s(this.getCenterInternal(), c) || (this.getAnimating() && this.cancelAnimations(), this.animateInternal({
1230
1205
  rotation: i,
1231
1206
  center: c,
1232
1207
  resolution: o,
1233
1208
  duration: e,
1234
1209
  easing: Se,
1235
1210
  anchor: n
1236
- }));
1211
+ })));
1237
1212
  }
1238
1213
  beginInteraction() {
1239
1214
  this.resolveConstraints(0), this.setHint(J.INTERACTING, 1);
@@ -1351,5 +1326,4 @@ async function gt(e, ...t) {
1351
1326
  for (let e of t) n = e(n);
1352
1327
  return n;
1353
1328
  }
1354
- //#endregion
1355
1329
  export { P as A, O as B, Re as C, Fe as D, I as E, j as F, E as H, k as I, je as L, A as M, M as N, Ne as O, Me as P, D as R, z as S, F as T, Ce as U, ke as V, T as W, V as _, Xe as a, L as b, Je as c, W as d, We as f, He as g, H as h, J as i, Pe as j, N as k, q as l, Ge as m, at as n, K as o, G as p, Y as r, qe as s, st as t, Ke as u, Ve as v, R as w, Ie as x, ze as y, Oe as z };
@@ -1,9 +1,8 @@
1
- import { o as e } from "./rolldown-runtime-CEFd7nDs.js";
2
- import { L as t } from "./PreviewError-Cx7CItT_.js";
3
- import { t as n } from "./PreviewWrapper-Cd1RSmS-.js";
1
+ import { o as e } from "./rolldown-runtime-DsPmjQRF.js";
2
+ import { L as t } from "./PreviewError-EeaGx3SL.js";
3
+ import { t as n } from "./PreviewWrapper-BhldDdXK.js";
4
4
  import { createBlock as r, createVNode as i, defineAsyncComponent as a, defineComponent as o, openBlock as s, unref as c, withCtx as l } from "vue";
5
- //#endregion
6
- //#region src/components/ResourceAccordion/XmlPreview.client.vue
5
+ // src/components/ResourceAccordion/XmlPreview.client.vue
7
6
  var u = /* @__PURE__ */ o({
8
7
  __name: "XmlPreview.client",
9
8
  props: {
@@ -11,7 +10,7 @@ var u = /* @__PURE__ */ o({
11
10
  canEdit: { type: Boolean }
12
11
  },
13
12
  setup(o) {
14
- let u = a(() => import("./vue3-xml-viewer.common-DbJwzvCC.js").then((t) => /* @__PURE__ */ e(t.default, 1)).then((e) => e.default || e.XmlViewer)), d = o, f = t(), p = async () => {
13
+ let u = a(() => import("./vue3-xml-viewer.common-C0bbtsGT.js").then((t) => /* @__PURE__ */ e(t.default, 1)).then((e) => e.default || e.XmlViewer)), d = o, f = t(), p = async () => {
15
14
  let e = await fetch(d.resource.url);
16
15
  if (!e.ok) throw Error(`HTTP error! status: ${e.status}`);
17
16
  return e.text();
@@ -32,5 +31,4 @@ var u = /* @__PURE__ */ o({
32
31
  ]));
33
32
  }
34
33
  });
35
- //#endregion
36
34
  export { u as default };