@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
package/assets/main.css CHANGED
@@ -101,6 +101,9 @@
101
101
  --color-gray-default: #e5e5e5;
102
102
  --color-gray-plain: #3a3a3a;
103
103
  --color-gray-some: #f6f6f6;
104
+ --color-gray-secondary: #555555;
105
+ --color-gray-active: #f0f0f0;
106
+ --color-blue-france-contrast: #ececfe;
104
107
  --color-gray-logo: #373c42;
105
108
  --color-gray-dark: #242424;
106
109
  --color-gray-disabled: #2A2A2A;
@@ -140,6 +143,7 @@
140
143
  --color-pink-soft: #FFE4F2;
141
144
  --color-pink: #CF006D;
142
145
 
146
+ --shadow-overlay: 0 8px 24px #16161614;
143
147
  --shadow-input-blue: inset 0 -2px 0 0 #000091;
144
148
  --shadow-input: inset 0 -2px 0 0 var(--blue-cumulus-sun-368-moon-732);
145
149
 
@@ -1,20 +1,12 @@
1
- import { Rt as e, cn as t, on as n, qt as r } from "./proj-DM6GW1n3.js";
2
- //#region ../node_modules/ol/MapEventType.js
1
+ import { Rt as e, cn as t, on as n, qt as r } from "./proj-COhZ08DR.js";
2
+ // ../node_modules/ol/MapEventType.js
3
3
  var i = {
4
4
  POSTRENDER: "postrender",
5
5
  MOVESTART: "movestart",
6
6
  MOVEEND: "moveend",
7
7
  LOADSTART: "loadstart",
8
8
  LOADEND: "loadend"
9
- }, a = "ol-hidden", o = "ol-selectable", s = "ol-unselectable", c = "ol-unsupported", l = "ol-control", u = "ol-collapsed", d = new RegExp([
10
- "^\\s*(?=(?:(?:[-a-z]+\\s*){0,2}(italic|oblique))?)",
11
- "(?=(?:(?:[-a-z]+\\s*){0,2}(small-caps))?)",
12
- "(?=(?:(?:[-a-z]+\\s*){0,2}(bold(?:er)?|lighter|[1-9]00 ))?)",
13
- "(?:(?:normal|\\1|\\2|\\3)\\s*){0,3}((?:xx?-)?",
14
- "(?:small|large)|medium|smaller|larger|[\\.\\d]+(?:\\%|in|[cem]m|ex|p[ctx]))",
15
- "(?:\\s*\\/\\s*(normal|[\\.\\d]+(?:\\%|in|[cem]m|ex|p[ctx])?))",
16
- "?\\s*([-,\\\"\\'\\sa-z0-9]+?)\\s*$"
17
- ].join(""), "i"), f = [
9
+ }, a = "ol-hidden", o = "ol-selectable", s = "ol-unselectable", c = "ol-unsupported", l = "ol-control", u = "ol-collapsed", d = /* @__PURE__ */ RegExp("^\\s*(?=(?:(?:[-a-z]+\\s*){0,2}(italic|oblique))?)(?=(?:(?:[-a-z]+\\s*){0,2}(small-caps))?)(?=(?:(?:[-a-z]+\\s*){0,2}(bold(?:er)?|lighter|[1-9]00 ))?)(?:(?:normal|\\1|\\2|\\3)\\s*){0,3}((?:xx?-)?(?:small|large)|medium|smaller|larger|[\\.\\d]+(?:\\%|in|[cem]m|ex|p[ctx]))(?:\\s*\\/\\s*(normal|[\\.\\d]+(?:\\%|in|[cem]m|ex|p[ctx])?))?\\s*([-,\\\"\\'\\sa-z0-9]+?)\\s*$", "i"), f = [
18
10
  "style",
19
11
  "variant",
20
12
  "weight",
@@ -64,5 +56,4 @@ var i = {
64
56
  this.target_ = typeof e == "string" ? document.getElementById(e) : e;
65
57
  }
66
58
  };
67
- //#endregion
68
59
  export { o as a, p as c, a as i, m as l, u as n, s as o, l as r, c as s, h as t, i as u };
@@ -1,6 +1,6 @@
1
- import { a as e, t } from "./PreviewError-Cx7CItT_.js";
1
+ import { a as e, t } from "./PreviewError-EeaGx3SL.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
- //#region src/components/ResourceAccordion/Datafair.client.vue?vue&type=script&setup=true&lang.ts
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({
5
5
  __name: "Datafair.client",
6
6
  props: {
@@ -24,5 +24,4 @@ var c = { class: "fr-text--xs" }, l = { key: 0 }, u = ["src"], d = /* @__PURE__
24
24
  }, null, 8, ["resource", "error-type"]))]));
25
25
  }
26
26
  });
27
- //#endregion
28
27
  export { d as default };
@@ -1,5 +1,5 @@
1
- import { Ut as e, Yt as t, an as n, cn as r, sn as i } from "./proj-DM6GW1n3.js";
2
- //#region ../node_modules/ol/has.js
1
+ import { Ut as e, Yt as t, an as n, cn as r, sn as i } from "./proj-COhZ08DR.js";
2
+ // ../node_modules/ol/has.js
3
3
  var a = typeof navigator < "u" && navigator.userAgent !== void 0 ? navigator.userAgent.toLowerCase() : "";
4
4
  a.includes("safari") && !a.includes("chrom") && (a.includes("version/15.4") || /cpu (os|iphone os) 15_4 like mac os x/.test(a));
5
5
  var o = a.includes("webkit") && !a.includes("edge"), s = a.includes("macintosh"), c = typeof devicePixelRatio < "u" ? devicePixelRatio : 1, l = typeof WorkerGlobalScope < "u" && typeof OffscreenCanvas < "u" && self instanceof WorkerGlobalScope, u = typeof Image < "u" && Image.prototype.decode, d = typeof createImageBitmap == "function", f = (function() {
@@ -12,8 +12,7 @@ var o = a.includes("webkit") && !a.includes("edge"), s = a.includes("macintosh")
12
12
  } catch {}
13
13
  return e;
14
14
  })();
15
- //#endregion
16
- //#region ../node_modules/ol/dom.js
15
+ // ../node_modules/ol/dom.js
17
16
  function p(e, t, n, r) {
18
17
  let i;
19
18
  return i = n && n.length ? n.shift() : l ? new class extends OffscreenCanvas {
@@ -48,17 +47,7 @@ function x(e, t) {
48
47
  for (let r = 0;; ++r) {
49
48
  let i = n[r], a = t[r];
50
49
  if (!i && !a) break;
51
- if (i !== a) {
52
- if (!i) {
53
- e.appendChild(a);
54
- continue;
55
- }
56
- if (!a) {
57
- e.removeChild(i), --r;
58
- continue;
59
- }
60
- e.insertBefore(a, i);
61
- }
50
+ i !== a && (i ? a ? e.insertBefore(a, i) : (e.removeChild(i), --r) : e.appendChild(a));
62
51
  }
63
52
  }
64
53
  function S() {
@@ -86,8 +75,7 @@ function S() {
86
75
  function C(e) {
87
76
  return typeof HTMLCanvasElement < "u" && e instanceof HTMLCanvasElement || typeof OffscreenCanvas < "u" && e instanceof OffscreenCanvas;
88
77
  }
89
- //#endregion
90
- //#region ../node_modules/ol/TileState.js
78
+ // ../node_modules/ol/TileState.js
91
79
  var w = {
92
80
  IDLE: 0,
93
81
  LOADING: 1,
@@ -95,8 +83,7 @@ var w = {
95
83
  ERROR: 3,
96
84
  EMPTY: 4
97
85
  };
98
- //#endregion
99
- //#region ../node_modules/ol/size.js
86
+ // ../node_modules/ol/size.js
100
87
  function T(e) {
101
88
  return e[0] > 0 && e[1] > 0;
102
89
  }
@@ -106,8 +93,7 @@ function E(e, t, n) {
106
93
  function D(e, t) {
107
94
  return Array.isArray(e) ? e : (t === void 0 ? t = [e, e] : (t[0] = e, t[1] = e), t);
108
95
  }
109
- //#endregion
110
- //#region ../node_modules/ol/ImageState.js
96
+ // ../node_modules/ol/ImageState.js
111
97
  var O = {
112
98
  IDLE: 0,
113
99
  LOADING: 1,
@@ -189,5 +175,4 @@ function N(e, t) {
189
175
  throw t;
190
176
  }) : M(e);
191
177
  }
192
- //#endregion
193
178
  export { o as C, f as S, b as _, O as a, c as b, D as c, S as d, h as f, g, _ as h, A as i, w as l, v as m, N as n, T as o, C as p, M as r, E as s, k as t, p as u, x as v, l as w, s as x, y };
@@ -1,6 +1,6 @@
1
- import { H as e, L as t, _ as n, i as r, t as i } from "./PreviewError-Cx7CItT_.js";
1
+ import { H as e, L as t, _ as n, i as r, t as i } from "./PreviewError-EeaGx3SL.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
- //#region src/components/ResourceAccordion/ImagePreview.client.vue?vue&type=script&setup=true&lang.ts
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({
5
5
  __name: "ImagePreview.client",
6
6
  props: {
@@ -32,5 +32,4 @@ var d = { class: "text-xs" }, f = ["src"], p = /* @__PURE__ */ c({
32
32
  }, null, 40, f))]));
33
33
  }
34
34
  });
35
- //#endregion
36
35
  export { p as default };
@@ -1,8 +1,7 @@
1
- import { L as e } from "./PreviewError-Cx7CItT_.js";
2
- import { t } from "./PreviewWrapper-Cd1RSmS-.js";
1
+ import { L as e } from "./PreviewError-EeaGx3SL.js";
2
+ import { t } from "./PreviewWrapper-BhldDdXK.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
- //#endregion
5
- //#region src/components/ResourceAccordion/JsonPreview.client.vue
4
+ // src/components/ResourceAccordion/JsonPreview.client.vue
6
5
  var l = /* @__PURE__ */ a({
7
6
  __name: "JsonPreview.client",
8
7
  props: {
@@ -10,7 +9,7 @@ var l = /* @__PURE__ */ a({
10
9
  canEdit: { type: Boolean }
11
10
  },
12
11
  setup(a) {
13
- let l = i(() => import("./vue3-json-viewer-BJgUfh-l.js").then((e) => (Promise.resolve({ }), e.JsonViewer))), u = a, d = e(), f = async () => {
12
+ let l = i(() => import("./vue3-json-viewer-CUx5EFVA.js").then((e) => (Promise.resolve({ }), e.JsonViewer))), u = a, d = e(), f = async () => {
14
13
  let e = await fetch(u.resource.url);
15
14
  if (!e.ok) throw Error(`HTTP error! status: ${e.status}`);
16
15
  return e.json();
@@ -39,5 +38,4 @@ var l = /* @__PURE__ */ a({
39
38
  ]));
40
39
  }
41
40
  });
42
- //#endregion
43
41
  export { l as default };
@@ -1,8 +1,8 @@
1
- import { B as e, J as t, Rt as n, Wt as r, an as i, cn as a, kt as o, on as s, zt as c } from "./proj-DM6GW1n3.js";
2
- import { u as l } from "./Image-CBQwYbQB.js";
3
- import { S as u } from "./transform-Ct1GejD-.js";
4
- import { t as d } from "./View-DWqx4Jqr.js";
5
- //#region ../node_modules/ol/render/EventType.js
1
+ import { B as e, J as t, Rt as n, Wt as r, an as i, cn as a, kt as o, on as s, zt as c } from "./proj-COhZ08DR.js";
2
+ import { u as l } from "./Image-DVWRoLLI.js";
3
+ import { S as u } from "./transform-CNeEnSK9.js";
4
+ import { t as d } from "./View-Dad8DfSD.js";
5
+ // ../node_modules/ol/render/EventType.js
6
6
  var f = {
7
7
  PRERENDER: "prerender",
8
8
  POSTRENDER: "postrender",
@@ -132,8 +132,7 @@ function I(e) {
132
132
  let i = e[3] === void 0 ? 1 : Math.round(e[3] * 1e3) / 1e3;
133
133
  return "rgba(" + t + "," + n + "," + r + "," + i + ")";
134
134
  }
135
- //#endregion
136
- //#region ../node_modules/ol/render/Event.js
135
+ // ../node_modules/ol/render/Event.js
137
136
  var L = class extends r {
138
137
  constructor(e, t, n, r) {
139
138
  super(e), this.inversePixelTransform = t, this.frameState = n, this.context = r;
@@ -255,7 +254,7 @@ var L = class extends r {
255
254
  return e ? e.getState() : "undefined";
256
255
  }
257
256
  handleSourceChange_() {
258
- this.changed(), !(this.sourceReady_ || this.getSource().getState() !== "ready") && (this.sourceReady_ = !0, this.dispatchEvent("sourceready"));
257
+ this.changed(), this.sourceReady_ || this.getSource().getState() !== "ready" || (this.sourceReady_ = !0, this.dispatchEvent("sourceready"));
259
258
  }
260
259
  handleSourcePropertyChange_() {
261
260
  this.sourceChangeKey_ &&= (a(this.sourceChangeKey_), null), this.sourceReady_ = !1;
@@ -342,5 +341,4 @@ function V(e, t) {
342
341
  let r = t.zoom;
343
342
  return r > e.minZoom && r <= e.maxZoom;
344
343
  }
345
- //#endregion
346
344
  export { p as a, P as c, I as d, D as f, L as i, N as l, V as n, F as o, f as p, z as r, C as s, B as t, M as u };