@datagouv/components-next 1.0.2-dev.9 → 1.0.2-dev.91

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 (96) hide show
  1. package/assets/main.css +4 -0
  2. package/dist/{Control-DuZJdKV_.js → Control-ZFh5ta_U.js} +1 -1
  3. package/dist/Datafair.client-CyZRNADr.js +30 -0
  4. package/dist/{Event--kp8kMdJ.js → Event-DSQcW7OF.js} +24 -24
  5. package/dist/{Image-34hvypZI.js → Image-BijNEG0p.js} +6 -6
  6. package/dist/JsonPreview.client-C9iaPSmQ.js +40 -0
  7. package/dist/{Map-BjUnLyj8.js → Map-BUtPf5GN.js} +756 -756
  8. package/dist/MapContainer.client-BuoZ69XO.js +101 -0
  9. package/dist/{OSM-s40W6sQ2.js → OSM-D4MTdBtk.js} +2 -2
  10. package/dist/{PdfPreview.client-BVjPxlPu.js → PdfPreview.client-MI0bDghc.js} +822 -865
  11. package/dist/{Pmtiles.client-CRJ56yX2.js → Pmtiles.client-CaKEYQBc.js} +574 -579
  12. package/dist/PreviewWrapper.vue_vue_type_script_setup_true_lang-BKqb6TMw.js +61 -0
  13. package/dist/{ScaleLine-KW-nXqp3.js → ScaleLine-hJQIqcZm.js} +2 -2
  14. package/dist/{Tile-DbNFNPfU.js → Tile-Dcl7oIVu.js} +35 -35
  15. package/dist/{TileImage-BsXBxMtq.js → TileImage-BJeHipMX.js} +4 -4
  16. package/dist/{View-BR92hTWP.js → View-xp_P_OHw.js} +412 -401
  17. package/dist/XmlPreview.client-BVAeNK4n.js +34 -0
  18. package/dist/{common-PJfpC179.js → common-BjQlan3k.js} +36 -36
  19. package/dist/components-next.css +6 -6
  20. package/dist/components-next.js +166 -148
  21. package/dist/components.css +1 -1
  22. package/dist/{index-BZsAZ7iw.js → index-BBdS8QKx.js} +32886 -27183
  23. package/dist/{main-qc4CO9Kn.js → main-Dk_66g-3.js} +91331 -75844
  24. package/dist/{proj-DsetBcW7.js → proj-CsNo9yH1.js} +532 -512
  25. package/dist/{tilecoord-Db24Px13.js → tilecoord-A0fLnBZr.js} +28 -28
  26. package/dist/{vue3-xml-viewer.common-CCOV_ohP.js → vue3-xml-viewer.common-B8dNNkOU.js} +1 -1
  27. package/package.json +18 -11
  28. package/src/components/ActivityList/ActivityList.vue +0 -2
  29. package/src/components/Chart/ChartViewer.vue +226 -0
  30. package/src/components/Chart/ChartViewerWrapper.vue +170 -0
  31. package/src/components/Form/Listbox.vue +101 -0
  32. package/src/components/Form/SearchableSelect.vue +2 -1
  33. package/src/components/InfiniteLoader.vue +53 -0
  34. package/src/components/OpenApiViewer/ContentTypeSelect.vue +48 -0
  35. package/src/components/OpenApiViewer/EndpointRequest.vue +164 -0
  36. package/src/components/OpenApiViewer/EndpointResponses.vue +149 -0
  37. package/src/components/OpenApiViewer/OpenApiViewer.vue +308 -0
  38. package/src/components/OpenApiViewer/SchemaPanel.vue +53 -0
  39. package/src/components/OpenApiViewer/SchemaTree.vue +77 -0
  40. package/src/components/OpenApiViewer/openapi.ts +150 -0
  41. package/src/components/OrganizationNameWithCertificate.vue +3 -2
  42. package/src/components/Pagination.vue +8 -5
  43. package/src/components/ReadMore.vue +1 -1
  44. package/src/components/ResourceAccordion/Datafair.client.vue +4 -10
  45. package/src/components/ResourceAccordion/JsonPreview.client.vue +23 -121
  46. package/src/components/ResourceAccordion/MapContainer.client.vue +5 -14
  47. package/src/components/ResourceAccordion/Metadata.vue +1 -2
  48. package/src/components/ResourceAccordion/PdfPreview.client.vue +24 -103
  49. package/src/components/ResourceAccordion/Pmtiles.client.vue +5 -10
  50. package/src/components/ResourceAccordion/Preview.vue +16 -21
  51. package/src/components/ResourceAccordion/PreviewLoader.vue +1 -2
  52. package/src/components/ResourceAccordion/PreviewUnavailable.vue +22 -0
  53. package/src/components/ResourceAccordion/PreviewWrapper.vue +82 -0
  54. package/src/components/ResourceAccordion/ResourceAccordion.vue +5 -7
  55. package/src/components/ResourceAccordion/XmlPreview.client.vue +16 -115
  56. package/src/components/ResourceExplorer/ResourceExplorer.vue +81 -13
  57. package/src/components/ResourceExplorer/ResourceExplorerSidebar.vue +2 -2
  58. package/src/components/ResourceExplorer/ResourceExplorerViewer.vue +30 -11
  59. package/src/components/Search/GlobalSearch.vue +191 -110
  60. package/src/components/Search/SearchInput.vue +5 -4
  61. package/src/components/TabularExplorer/TabularCell.vue +51 -0
  62. package/src/components/TabularExplorer/TabularCellPopover.vue +170 -0
  63. package/src/components/TabularExplorer/TabularExplorer.vue +870 -0
  64. package/src/components/TabularExplorer/TabularFilterContent.vue +351 -0
  65. package/src/components/TabularExplorer/TabularFilterPopover.vue +111 -0
  66. package/src/components/TabularExplorer/types.ts +83 -0
  67. package/src/composables/useHasTabularData.ts +6 -0
  68. package/src/composables/useResourceCapabilities.ts +1 -1
  69. package/src/composables/useSearchFilter.ts +118 -0
  70. package/src/composables/useStableQueryParams.ts +31 -3
  71. package/src/config.ts +3 -0
  72. package/src/functions/api.ts +34 -33
  73. package/src/functions/api.types.ts +1 -0
  74. package/src/functions/charts.ts +68 -0
  75. package/src/functions/datasets.ts +0 -17
  76. package/src/functions/resources.ts +56 -1
  77. package/src/functions/tabular.ts +60 -0
  78. package/src/functions/tabularApi.ts +138 -11
  79. package/src/main.ts +55 -7
  80. package/src/types/dataservices.ts +2 -0
  81. package/src/types/pages.ts +0 -5
  82. package/src/types/posts.ts +2 -2
  83. package/src/types/reports.ts +5 -1
  84. package/src/types/search.ts +52 -1
  85. package/src/types/site.ts +5 -3
  86. package/src/types/users.ts +2 -1
  87. package/src/types/visualizations.ts +89 -0
  88. package/assets/swagger-themes/newspaper.css +0 -1670
  89. package/dist/Datafair.client-0UYUu5yf.js +0 -35
  90. package/dist/JsonPreview.client-BrTMBWHZ.js +0 -87
  91. package/dist/MapContainer.client-CUmKyByc.js +0 -107
  92. package/dist/Swagger.client-2Yn7iF0A.js +0 -4
  93. package/dist/XmlPreview.client-DxqlVnKu.js +0 -79
  94. package/src/components/ResourceAccordion/Swagger.client.vue +0 -48
  95. package/src/functions/pagination.ts +0 -9
  96. /package/assets/illustrations/{_microscope.svg → microscope.svg} +0 -0
@@ -0,0 +1,34 @@
1
+ import { defineComponent as i, defineAsyncComponent as m, createBlock as u, openBlock as f, unref as t, withCtx as l, createVNode as p } from "vue";
2
+ import { u as x } from "./main-Dk_66g-3.js";
3
+ import { _ as w } from "./PreviewWrapper.vue_vue_type_script_setup_true_lang-BKqb6TMw.js";
4
+ const X = /* @__PURE__ */ i({
5
+ __name: "XmlPreview.client",
6
+ props: {
7
+ resource: {}
8
+ },
9
+ setup(r) {
10
+ const o = m(
11
+ () => import("./vue3-xml-viewer.common-B8dNNkOU.js").then((e) => e.v).then((e) => e.default || e.XmlViewer)
12
+ ), n = r, s = x(), c = async () => {
13
+ const e = await fetch(n.resource.url);
14
+ if (!e.ok) throw new Error(`HTTP error! status: ${e.status}`);
15
+ return e.text();
16
+ };
17
+ return (e, _) => (f(), u(w, {
18
+ "file-type": "XML",
19
+ resource: r.resource,
20
+ "max-size": t(s).maxXmlPreviewCharSize,
21
+ load: c
22
+ }, {
23
+ default: l(({ data: a }) => [
24
+ p(t(o), {
25
+ xml: a
26
+ }, null, 8, ["xml"])
27
+ ]),
28
+ _: 1
29
+ }, 8, ["resource", "max-size"]));
30
+ }
31
+ });
32
+ export {
33
+ X as default
34
+ };
@@ -1,13 +1,13 @@
1
- import { r as w, aV as F, i as _, aW as I, n as O } from "./proj-DsetBcW7.js";
2
- function X(n, u) {
1
+ import { r as w, aX as F, i as X, aY as _, n as I } from "./proj-CsNo9yH1.js";
2
+ function O(n, u) {
3
3
  if (!n)
4
4
  throw new Error(u);
5
5
  }
6
- function y(n) {
6
+ function Y(n) {
7
7
  return Math.pow(n, 3);
8
8
  }
9
9
  function Z(n) {
10
- return 1 - y(1 - n);
10
+ return 1 - Y(1 - n);
11
11
  }
12
12
  function z(n) {
13
13
  return 3 * n * n - 2 * n * n * n;
@@ -16,10 +16,10 @@ function P(n) {
16
16
  return n;
17
17
  }
18
18
  const b = new Array(6);
19
- function V() {
19
+ function B() {
20
20
  return [1, 0, 0, 1, 0, 0];
21
21
  }
22
- function W(n) {
22
+ function G(n) {
23
23
  return s(n, 1, 0, 0, 1, 0, 0);
24
24
  }
25
25
  function v(n, u) {
@@ -29,34 +29,34 @@ function v(n, u) {
29
29
  function s(n, u, i, e, c, t, r) {
30
30
  return n[0] = u, n[1] = i, n[2] = e, n[3] = c, n[4] = t, n[5] = r, n;
31
31
  }
32
- function B(n, u) {
32
+ function H(n, u) {
33
33
  return n[0] = u[0], n[1] = u[1], n[2] = u[2], n[3] = u[3], n[4] = u[4], n[5] = u[5], n;
34
34
  }
35
- function G(n, u) {
35
+ function J(n, u) {
36
36
  const i = u[0], e = u[1];
37
37
  return u[0] = n[0] * i + n[2] * e + n[4], u[1] = n[1] * i + n[3] * e + n[5], u;
38
38
  }
39
- function H(n, u, i) {
39
+ function K(n, u, i) {
40
40
  return v(n, s(b, u, 0, 0, i, 0, 0));
41
41
  }
42
- function J(n, u, i) {
42
+ function N(n, u, i) {
43
43
  return v(n, s(b, 1, 0, 0, 1, u, i));
44
44
  }
45
- function K(n, u, i, e, c, t, r, l) {
45
+ function Q(n, u, i, e, c, t, r, l) {
46
46
  const g = Math.sin(t), h = Math.cos(t);
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
- function N(n, u) {
50
- const i = D(u);
51
- X(i !== 0, "Transformation matrix cannot be inverted");
49
+ function V(n, u) {
50
+ const i = y(u);
51
+ O(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 D(n) {
55
+ function y(n) {
56
56
  return n[0] * n[3] - n[1] * n[2];
57
57
  }
58
- const E = [1e5, 1e5, 1e5, 1e5, 2, 2];
59
- function Q(n) {
58
+ const D = [1e5, 1e5, 1e5, 1e5, 2, 2];
59
+ function W(n) {
60
60
  return "matrix(" + n.join(", ") + ")";
61
61
  }
62
62
  function R(n) {
@@ -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]) * E[c]) !== 0)
68
+ if (Math.round((i[c] - e[c]) * D[c]) !== 0)
69
69
  return !1;
70
70
  return !0;
71
71
  }
72
- function T(n, u, i, e, c) {
72
+ function E(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 Y(n, u, i, e, c, t) {
99
+ function T(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,7 +109,7 @@ 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 (Y(n, u, g, e, c, t))
112
+ if (T(n, u, g, e, c, t))
113
113
  return !0;
114
114
  u = g[g.length - 1];
115
115
  }
@@ -126,7 +126,7 @@ function j(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 : j(
129
+ return t = t ?? F(I(), n, u, i, e), X(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,
@@ -138,7 +138,7 @@ function A(n, u, i, e, c, t) {
138
138
  * `false` otherwise.
139
139
  */
140
140
  function(r, l) {
141
- return I(c, r, l);
141
+ return _(c, r, l);
142
142
  }
143
143
  ) : !1;
144
144
  }
@@ -187,7 +187,7 @@ function q(n, u, i, e, c) {
187
187
  if (i.length === 1)
188
188
  return !0;
189
189
  for (let t = 1, r = i.length; t < r; ++t)
190
- if (T(
190
+ if (E(
191
191
  n,
192
192
  i[t - 1],
193
193
  i[t],
@@ -215,30 +215,30 @@ function C(n, u, i, e, c) {
215
215
  const x = 42, m = 256;
216
216
  export {
217
217
  x as D,
218
- X as a,
218
+ O as a,
219
219
  o as b,
220
220
  C as c,
221
- K as d,
222
- V as e,
221
+ Q as d,
222
+ B as e,
223
223
  j as f,
224
- G as g,
225
- H as h,
224
+ J as g,
225
+ K as h,
226
226
  A as i,
227
227
  Z as j,
228
228
  P as k,
229
229
  f as l,
230
230
  v as m,
231
- N as n,
231
+ V as n,
232
232
  R as o,
233
233
  $ as p,
234
- Q as q,
235
- W as r,
236
- B as s,
237
- J as t,
238
- Y as u,
234
+ W as q,
235
+ G as r,
236
+ H as s,
237
+ N as t,
238
+ T as u,
239
239
  q as v,
240
240
  z as w,
241
241
  m as x,
242
242
  k as y,
243
- y as z
243
+ Y as z
244
244
  };