@datagouv/components-next 1.0.0 → 1.0.2-dev.0

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 (62) hide show
  1. package/assets/main.css +0 -28
  2. package/dist/{Control-BNCDn-8E.js → Control-DuZJdKV_.js} +1 -1
  3. package/dist/{Datafair.client-Dls5AHTE.js → Datafair.client-DpeBuzZZ.js} +2 -2
  4. package/dist/{Event-BOgJUhNR.js → Event--kp8kMdJ.js} +21 -21
  5. package/dist/{Image-BN-4XkIn.js → Image-34hvypZI.js} +114 -58
  6. package/dist/{JsonPreview.client-DPDTs433.js → JsonPreview.client-B3sQR-rW.js} +16 -16
  7. package/dist/{Map-BdT3i2C4.js → Map-BjUnLyj8.js} +1534 -1466
  8. package/dist/{MapContainer.client-BdAzd7bj.js → MapContainer.client-BA6GCqKX.js} +8 -8
  9. package/dist/{OSM-CamriM9b.js → OSM-s40W6sQ2.js} +22 -12
  10. package/dist/PdfPreview.client-CbeSChb8.js +14513 -0
  11. package/dist/Pmtiles.client-D8pFim1L.js +25190 -0
  12. package/dist/{ScaleLine-BiesrgOv.js → ScaleLine-KW-nXqp3.js} +2 -2
  13. package/dist/Swagger.client-B-2Q16qa.js +4 -0
  14. package/dist/{Tile-DCuqwNOI.js → Tile-DbNFNPfU.js} +189 -172
  15. package/dist/{TileImage-CmZf8EdU.js → TileImage-BsXBxMtq.js} +132 -102
  16. package/dist/{View-DcDc7N2K.js → View-BR92hTWP.js} +8 -8
  17. package/dist/{XmlPreview.client-C0OgBkSq.js → XmlPreview.client-DWJt61wG.js} +15 -15
  18. package/dist/{common-C4rDcQpp.js → common-PJfpC179.js} +34 -33
  19. package/dist/components-next.css +4 -4
  20. package/dist/components-next.js +130 -125
  21. package/dist/components.css +2 -2
  22. package/dist/{index-BRGqW8aQ.js → index-DVp7Y0Xu.js} +11105 -6743
  23. package/dist/{main-CNHxAJ8J.js → main-CrSRA2X-.js} +25208 -25053
  24. package/dist/{proj-CKwYjU38.js → proj-DsetBcW7.js} +513 -498
  25. package/dist/{tilecoord-YW3qEH_j.js → tilecoord-Db24Px13.js} +242 -224
  26. package/dist/{vue3-xml-viewer.common-CmAdQfIy.js → vue3-xml-viewer.common-BjA4LdSC.js} +1 -1
  27. package/package.json +3 -2
  28. package/src/components/DataserviceCard.vue +3 -3
  29. package/src/components/DatasetCard.vue +2 -2
  30. package/src/components/DatasetQuality.vue +23 -16
  31. package/src/components/DatasetQualityInline.vue +13 -17
  32. package/src/components/DatasetQualityScore.vue +12 -15
  33. package/src/components/DiscussionMessageCard.vue +1 -1
  34. package/src/components/ObjectCard.vue +2 -2
  35. package/src/components/ObjectCardHeader.vue +1 -1
  36. package/src/components/OrganizationHorizontalCard.vue +87 -0
  37. package/src/components/OrganizationNameWithCertificate.vue +1 -1
  38. package/src/components/ProgressBar.vue +31 -0
  39. package/src/components/ResourceAccordion/Datafair.client.vue +1 -1
  40. package/src/components/ResourceAccordion/JsonPreview.client.vue +3 -3
  41. package/src/components/ResourceAccordion/MapContainer.client.vue +1 -1
  42. package/src/components/ResourceAccordion/PdfPreview.client.vue +70 -74
  43. package/src/components/ResourceAccordion/Pmtiles.client.vue +1 -1
  44. package/src/components/ResourceAccordion/Preview.vue +1 -1
  45. package/src/components/ResourceAccordion/ResourceAccordion.vue +5 -8
  46. package/src/components/ResourceAccordion/XmlPreview.client.vue +3 -3
  47. package/src/components/ReuseHorizontalCard.vue +1 -1
  48. package/src/components/Search/Filter/ProducerTypeFilter.vue +13 -3
  49. package/src/components/Search/GlobalSearch.vue +124 -28
  50. package/src/components/Toggletip.vue +5 -2
  51. package/src/components/TopicCard.vue +1 -1
  52. package/src/composables/useHasTabularData.ts +15 -0
  53. package/src/composables/useResourceCapabilities.ts +3 -4
  54. package/src/composables/useTranslation.ts +2 -1
  55. package/src/functions/api.types.ts +1 -1
  56. package/src/main.ts +8 -1
  57. package/src/types/search.ts +29 -1
  58. package/dist/PdfPreview.client-CopqSDyt.js +0 -107
  59. package/dist/Pmtiles.client-mF6xaOO_.js +0 -22812
  60. package/dist/Swagger.client-eJ7gpfZA.js +0 -4
  61. package/dist/pdf-vue3-IkJO65RH.js +0 -273
  62. package/dist/pdf.min-f72cfa08-CdgJTooZ.js +0 -9501
@@ -1,5 +1,5 @@
1
- import { defineComponent as b, defineAsyncComponent as L, ref as o, computed as w, onMounted as T, createElementBlock as p, openBlock as l, createBlock as m, createCommentVNode as P, createVNode as u, unref as t, toDisplayString as i, withCtx as f, createElementVNode as d } from "vue";
2
- import { u as E, a as M, g as q, _ as h, F as v } from "./main-CNHxAJ8J.js";
1
+ import { defineComponent as b, defineAsyncComponent as L, ref as o, computed as w, onMounted as T, createElementBlock as p, openBlock as r, createBlock as m, createCommentVNode as P, createVNode as u, unref as t, toDisplayString as i, withCtx as f, createElementVNode as d } from "vue";
2
+ import { u as E, a as M, g as q, _ as h, F as v } from "./main-CrSRA2X-.js";
3
3
  const B = { class: "fr-text--xs" }, S = { key: 0 }, V = {
4
4
  key: 1,
5
5
  class: "text-gray-medium"
@@ -10,8 +10,8 @@ const B = { class: "fr-text--xs" }, S = { key: 0 }, V = {
10
10
  },
11
11
  setup(k) {
12
12
  const z = L(
13
- () => import("./vue3-xml-viewer.common-CmAdQfIy.js").then((e) => e.v).then((e) => e.default || e.XmlViewer)
14
- ), g = k, x = E(), { t: r } = M(), n = o(null), c = o(!1), s = o(null), _ = o(!1), y = w(() => q(g.resource)), X = w(() => {
13
+ () => import("./vue3-xml-viewer.common-BjA4LdSC.js").then((e) => e.v).then((e) => e.default || e.XmlViewer)
14
+ ), g = k, x = E(), { t: l } = M(), n = o(null), c = o(!1), s = o(null), _ = o(!1), y = w(() => q(g.resource)), X = w(() => {
15
15
  const e = y.value;
16
16
  if (!e || !x.maxXmlPreviewCharSize)
17
17
  return !1;
@@ -37,37 +37,37 @@ const B = { class: "fr-text--xs" }, S = { key: 0 }, V = {
37
37
  };
38
38
  return T(() => {
39
39
  C();
40
- }), (e, a) => (l(), p("div", B, [
41
- n.value ? (l(), p("div", S, [
40
+ }), (e, a) => (r(), p("div", B, [
41
+ n.value ? (r(), p("div", S, [
42
42
  u(t(z), { xml: n.value }, null, 8, ["xml"])
43
- ])) : c.value ? (l(), p("div", V, i(t(r)("Chargement de l'aperçu XML...")), 1)) : _.value ? (l(), m(h, {
43
+ ])) : c.value ? (r(), p("div", V, i(t(l)("Chargement de l'aperçu XML...")), 1)) : _.value ? (r(), m(h, {
44
44
  key: 2,
45
45
  type: "warning",
46
46
  class: "flex items-center space-x-2"
47
47
  }, {
48
48
  default: f(() => [
49
- u(t(v), { class: "shink-0 size-6" }),
50
- d("span", null, i(y.value ? t(r)("Fichier XML trop volumineux pour l'aperçu. Pour consulter le fichier complet, téléchargez-le en cliquant sur le bouton bleu ou depuis l'onglet Téléchargements.") : t(r)("L'aperçu n'est pas disponible car la taille du fichier est inconnue. Pour consulter le fichier complet, téléchargez-le en cliquant sur le bouton bleu ou depuis l'onglet Téléchargements.")), 1)
49
+ u(t(v), { class: "shrink-0 size-6" }),
50
+ d("span", null, i(y.value ? t(l)("Fichier XML trop volumineux pour l'aperçu. Pour consulter le fichier complet, téléchargez-le en cliquant sur le bouton bleu ou depuis l'onglet Téléchargements.") : t(l)("L'aperçu n'est pas disponible car la taille du fichier est inconnue. Pour consulter le fichier complet, téléchargez-le en cliquant sur le bouton bleu ou depuis l'onglet Téléchargements.")), 1)
51
51
  ]),
52
52
  _: 1
53
- })) : s.value === "network" ? (l(), m(h, {
53
+ })) : s.value === "network" ? (r(), m(h, {
54
54
  key: 3,
55
55
  type: "warning",
56
56
  class: "flex items-center space-x-2"
57
57
  }, {
58
58
  default: f(() => [
59
- u(t(v), { class: "shink-0 size-6" }),
60
- d("span", null, i(t(r)("Ce fichier XML ne peut pas être prévisualisé, peut-être parce qu'il est hébergé sur un autre site qui ne l'autorise pas. Pour le consulter, téléchargez-le en cliquant sur le bouton bleu ou depuis l'onglet Téléchargements.")), 1)
59
+ u(t(v), { class: "shrink-0 size-6" }),
60
+ d("span", null, i(t(l)("Ce fichier XML ne peut pas être prévisualisé, peut-être parce qu'il est hébergé sur un autre site qui ne l'autorise pas. Pour le consulter, téléchargez-le en cliquant sur le bouton bleu ou depuis l'onglet Téléchargements.")), 1)
61
61
  ]),
62
62
  _: 1
63
- })) : s.value ? (l(), m(h, {
63
+ })) : s.value ? (r(), m(h, {
64
64
  key: 4,
65
65
  type: "warning",
66
66
  class: "flex items-center space-x-2"
67
67
  }, {
68
68
  default: f(() => [
69
- u(t(v), { class: "shink-0 size-6" }),
70
- d("span", null, i(t(r)("Erreur lors du chargement de l'aperçu XML.")), 1)
69
+ u(t(v), { class: "shrink-0 size-6" }),
70
+ d("span", null, i(t(l)("Erreur lors du chargement de l'aperçu XML.")), 1)
71
71
  ]),
72
72
  _: 1
73
73
  })) : P("", !0)
@@ -1,25 +1,25 @@
1
- import { q as w, aV as F, i as _, aW as I, m as O } from "./proj-CKwYjU38.js";
1
+ import { r as w, aV as F, i as _, aW as I, n as O } from "./proj-DsetBcW7.js";
2
2
  function X(n, u) {
3
3
  if (!n)
4
4
  throw new Error(u);
5
5
  }
6
- function q(n) {
6
+ function y(n) {
7
7
  return Math.pow(n, 3);
8
8
  }
9
9
  function Z(n) {
10
- return 1 - q(1 - n);
10
+ return 1 - y(1 - n);
11
11
  }
12
- function P(n) {
12
+ function z(n) {
13
13
  return 3 * n * n - 2 * n * n * n;
14
14
  }
15
- function V(n) {
15
+ function P(n) {
16
16
  return n;
17
17
  }
18
18
  const b = new Array(6);
19
- function W() {
19
+ function V() {
20
20
  return [1, 0, 0, 1, 0, 0];
21
21
  }
22
- function z(n) {
22
+ function W(n) {
23
23
  return s(n, 1, 0, 0, 1, 0, 0);
24
24
  }
25
25
  function v(n, u) {
@@ -47,15 +47,15 @@ function K(n, u, i, e, c, t, r, l) {
47
47
  return n[0] = e * h, n[1] = c * g, n[2] = -e * g, n[3] = c * h, n[4] = r * e * h - l * e * g + u, n[5] = r * c * g + l * c * h + i, n;
48
48
  }
49
49
  function N(n, u) {
50
- const i = y(u);
50
+ const i = D(u);
51
51
  X(i !== 0, "Transformation matrix cannot be inverted");
52
52
  const e = u[0], c = u[1], t = u[2], r = u[3], l = u[4], g = u[5];
53
53
  return n[0] = r / i, n[1] = -c / i, n[2] = -t / i, n[3] = e / i, n[4] = (t * g - r * l) / i, n[5] = -(e * g - c * l) / i, n;
54
54
  }
55
- function y(n) {
55
+ function D(n) {
56
56
  return n[0] * n[3] - n[1] * n[2];
57
57
  }
58
- const D = [1e5, 1e5, 1e5, 1e5, 2, 2];
58
+ const E = [1e5, 1e5, 1e5, 1e5, 2, 2];
59
59
  function Q(n) {
60
60
  return "matrix(" + n.join(", ") + ")";
61
61
  }
@@ -65,11 +65,11 @@ function R(n) {
65
65
  function $(n, u) {
66
66
  const i = R(n), e = R(u);
67
67
  for (let c = 0; c < 6; ++c)
68
- if (Math.round((i[c] - e[c]) * D[c]) !== 0)
68
+ if (Math.round((i[c] - e[c]) * E[c]) !== 0)
69
69
  return !1;
70
70
  return !0;
71
71
  }
72
- function E(n, u, i, e, c) {
72
+ function T(n, u, i, e, c) {
73
73
  return !w(
74
74
  c,
75
75
  /**
@@ -96,7 +96,7 @@ function a(n, u, i, e, c, t) {
96
96
  }
97
97
  return r !== 0;
98
98
  }
99
- function T(n, u, i, e, c, t) {
99
+ function Y(n, u, i, e, c, t) {
100
100
  if (i.length === 0 || !a(n, u, i[0], e, c, t))
101
101
  return !1;
102
102
  for (let r = 1, l = i.length; r < l; ++r)
@@ -109,13 +109,13 @@ function f(n, u, i, e, c, t) {
109
109
  return !1;
110
110
  for (let r = 0, l = i.length; r < l; ++r) {
111
111
  const g = i[r];
112
- if (T(n, u, g, e, c, t))
112
+ if (Y(n, u, g, e, c, t))
113
113
  return !0;
114
114
  u = g[g.length - 1];
115
115
  }
116
116
  return !1;
117
117
  }
118
- function Y(n, u, i, e, c) {
118
+ function j(n, u, i, e, c) {
119
119
  let t;
120
120
  for (u += e; u < i; u += e)
121
121
  if (t = c(
@@ -126,7 +126,7 @@ function Y(n, u, i, e, c) {
126
126
  return !1;
127
127
  }
128
128
  function A(n, u, i, e, c, t) {
129
- return t = t ?? F(O(), n, u, i, e), _(c, t) ? t[0] >= c[0] && t[2] <= c[2] || t[1] >= c[1] && t[3] <= c[3] ? !0 : Y(
129
+ return t = t ?? F(O(), n, u, i, e), _(c, t) ? t[0] >= c[0] && t[2] <= c[2] || t[1] >= c[1] && t[3] <= c[3] ? !0 : j(
130
130
  n,
131
131
  u,
132
132
  i,
@@ -150,7 +150,7 @@ function o(n, u, i, e, c) {
150
150
  }
151
151
  return !1;
152
152
  }
153
- function j(n, u, i, e, c) {
153
+ function k(n, u, i, e, c) {
154
154
  return !!(A(n, u, i, e, c) || a(
155
155
  n,
156
156
  u,
@@ -181,13 +181,13 @@ function j(n, u, i, e, c) {
181
181
  c[3]
182
182
  ));
183
183
  }
184
- function k(n, u, i, e, c) {
185
- if (!j(n, u, i[0], e, c))
184
+ function q(n, u, i, e, c) {
185
+ if (!k(n, u, i[0], e, c))
186
186
  return !1;
187
187
  if (i.length === 1)
188
188
  return !0;
189
189
  for (let t = 1, r = i.length; t < r; ++t)
190
- if (E(
190
+ if (T(
191
191
  n,
192
192
  i[t - 1],
193
193
  i[t],
@@ -206,7 +206,7 @@ function k(n, u, i, e, c) {
206
206
  function C(n, u, i, e, c) {
207
207
  for (let t = 0, r = i.length; t < r; ++t) {
208
208
  const l = i[t];
209
- if (k(n, u, l, e, c))
209
+ if (q(n, u, l, e, c))
210
210
  return !0;
211
211
  u = l[l.length - 1];
212
212
  }
@@ -219,25 +219,26 @@ export {
219
219
  o as b,
220
220
  C as c,
221
221
  K as d,
222
- W as e,
223
- Y as f,
222
+ V as e,
223
+ j as f,
224
224
  G as g,
225
225
  H as h,
226
226
  A as i,
227
227
  Z as j,
228
- V as k,
228
+ P as k,
229
229
  f as l,
230
230
  v as m,
231
231
  N as n,
232
- $ as o,
233
- Q as p,
234
- T as q,
235
- z as r,
232
+ R as o,
233
+ $ as p,
234
+ Q as q,
235
+ W as r,
236
236
  B as s,
237
237
  J as t,
238
- k as u,
239
- P as v,
240
- m as w,
241
- j as x,
242
- q as y
238
+ Y as u,
239
+ q as v,
240
+ z as w,
241
+ m as x,
242
+ k as y,
243
+ y as z
243
244
  };