@datagouv/components-next 1.1.1 → 1.2.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.
- package/dist/{Control-DuZJdKV_.js → Control-ZFh5ta_U.js} +1 -1
- package/dist/{Datafair.client-BzW-ctDf.js → Datafair.client-rf4T1IkA.js} +1 -1
- package/dist/{Event--kp8kMdJ.js → Event-DSQcW7OF.js} +24 -24
- package/dist/{Image-34hvypZI.js → Image-BijNEG0p.js} +6 -6
- package/dist/{JsonPreview.client-BfMSzR07.js → JsonPreview.client-dzar6iuh.js} +2 -2
- package/dist/{Map-BjUnLyj8.js → Map-BUtPf5GN.js} +756 -756
- package/dist/{MapContainer.client-CLs-im9i.js → MapContainer.client-D-MoRNhG.js} +37 -38
- package/dist/{OSM-s40W6sQ2.js → OSM-D4MTdBtk.js} +2 -2
- package/dist/{PdfPreview.client-C13PQCU_.js → PdfPreview.client-DoDYLmJD.js} +2 -2
- package/dist/{Pmtiles.client-CL7PXXDl.js → Pmtiles.client-Dzm01Zfm.js} +1 -1
- package/dist/{PreviewWrapper.vue_vue_type_script_setup_true_lang-C6XnsZ-7.js → PreviewWrapper.vue_vue_type_script_setup_true_lang-BRNYswg3.js} +1 -1
- package/dist/{ScaleLine-KW-nXqp3.js → ScaleLine-hJQIqcZm.js} +2 -2
- package/dist/{Tile-DbNFNPfU.js → Tile-Dcl7oIVu.js} +35 -35
- package/dist/{TileImage-BsXBxMtq.js → TileImage-BJeHipMX.js} +4 -4
- package/dist/{View-BR92hTWP.js → View-xp_P_OHw.js} +412 -401
- package/dist/{XmlPreview.client-KaENrbbG.js → XmlPreview.client-cOhwff6P.js} +3 -3
- package/dist/{common-PJfpC179.js → common-BjQlan3k.js} +36 -36
- package/dist/components-next.css +4 -4
- package/dist/components-next.js +160 -155
- package/dist/components.css +1 -1
- package/dist/{index-C7WVVGgD.js → index-NofRBuyf.js} +32886 -27183
- package/dist/{main-K-42Oe8-.js → main-Iz1ZCL6k.js} +41753 -89461
- package/dist/{proj-DsetBcW7.js → proj-CsNo9yH1.js} +532 -512
- package/dist/{tilecoord-Db24Px13.js → tilecoord-A0fLnBZr.js} +28 -28
- package/dist/{vue3-xml-viewer.common-sHPSE-jD.js → vue3-xml-viewer.common-tVI9uXUz.js} +1 -1
- package/package.json +11 -4
- package/src/chart.ts +5 -0
- package/src/components/ActivityList/ActivityList.vue +3 -0
- package/src/components/DataserviceCard.vue +3 -0
- package/src/components/DatasetCard.vue +9 -4
- package/src/components/ObjectCardHeader.vue +11 -4
- package/src/components/RadioInput.vue +7 -2
- package/src/components/ResourceAccordion/DataStructure.vue +11 -33
- package/src/components/ResourceAccordion/Downloads.vue +160 -0
- package/src/components/ResourceAccordion/MapContainer.client.vue +1 -3
- package/src/components/ResourceAccordion/ResourceAccordion.vue +5 -102
- package/src/components/ResourceExplorer/ResourceExplorer.vue +2 -55
- package/src/components/ResourceExplorer/ResourceExplorerViewer.vue +26 -135
- package/src/components/ResourceExplorer/ResourceSelector.vue +113 -0
- package/src/components/ReuseCard.vue +12 -4
- package/src/components/Search/GlobalSearch.vue +30 -7
- package/src/components/Search/SearchInput.vue +2 -1
- package/src/components/TabularExplorer/TabularExplorer.vue +257 -154
- package/src/composables/useHasTabularData.ts +7 -0
- package/src/composables/useMetrics.ts +1 -1
- package/src/composables/useStableQueryParams.ts +7 -3
- package/src/composables/useTabularProfile.ts +70 -0
- package/src/config.ts +17 -3
- package/src/functions/activities.ts +3 -3
- package/src/functions/api.ts +5 -34
- package/src/functions/metrics.ts +6 -4
- package/src/main.ts +39 -6
- package/src/types/search.ts +11 -0
- package/src/types/ui.ts +2 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
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-
|
|
3
|
-
import { _ as w } from "./PreviewWrapper.vue_vue_type_script_setup_true_lang-
|
|
2
|
+
import { u as x } from "./main-Iz1ZCL6k.js";
|
|
3
|
+
import { _ as w } from "./PreviewWrapper.vue_vue_type_script_setup_true_lang-BRNYswg3.js";
|
|
4
4
|
const X = /* @__PURE__ */ i({
|
|
5
5
|
__name: "XmlPreview.client",
|
|
6
6
|
props: {
|
|
@@ -8,7 +8,7 @@ const X = /* @__PURE__ */ i({
|
|
|
8
8
|
},
|
|
9
9
|
setup(r) {
|
|
10
10
|
const o = m(
|
|
11
|
-
() => import("./vue3-xml-viewer.common-
|
|
11
|
+
() => import("./vue3-xml-viewer.common-tVI9uXUz.js").then((e) => e.v).then((e) => e.default || e.XmlViewer)
|
|
12
12
|
), n = r, s = x(), c = async () => {
|
|
13
13
|
const e = await fetch(n.resource.url);
|
|
14
14
|
if (!e.ok) throw new Error(`HTTP error! status: ${e.status}`);
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { r as w,
|
|
2
|
-
function
|
|
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
|
|
6
|
+
function Y(n) {
|
|
7
7
|
return Math.pow(n, 3);
|
|
8
8
|
}
|
|
9
9
|
function Z(n) {
|
|
10
|
-
return 1 -
|
|
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
|
|
19
|
+
function B() {
|
|
20
20
|
return [1, 0, 0, 1, 0, 0];
|
|
21
21
|
}
|
|
22
|
-
function
|
|
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
|
|
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
|
|
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
|
|
39
|
+
function K(n, u, i) {
|
|
40
40
|
return v(n, s(b, u, 0, 0, i, 0, 0));
|
|
41
41
|
}
|
|
42
|
-
function
|
|
42
|
+
function N(n, u, i) {
|
|
43
43
|
return v(n, s(b, 1, 0, 0, 1, u, i));
|
|
44
44
|
}
|
|
45
|
-
function
|
|
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
|
|
50
|
-
const i =
|
|
51
|
-
|
|
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
|
|
55
|
+
function y(n) {
|
|
56
56
|
return n[0] * n[3] - n[1] * n[2];
|
|
57
57
|
}
|
|
58
|
-
const
|
|
59
|
-
function
|
|
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]) *
|
|
68
|
+
if (Math.round((i[c] - e[c]) * D[c]) !== 0)
|
|
69
69
|
return !1;
|
|
70
70
|
return !0;
|
|
71
71
|
}
|
|
72
|
-
function
|
|
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
|
|
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 (
|
|
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(
|
|
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
|
|
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 (
|
|
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
|
-
|
|
218
|
+
O as a,
|
|
219
219
|
o as b,
|
|
220
220
|
C as c,
|
|
221
|
-
|
|
222
|
-
|
|
221
|
+
Q as d,
|
|
222
|
+
B as e,
|
|
223
223
|
j as f,
|
|
224
|
-
|
|
225
|
-
|
|
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
|
-
|
|
231
|
+
V as n,
|
|
232
232
|
R as o,
|
|
233
233
|
$ as p,
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
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
|
-
|
|
243
|
+
Y as z
|
|
244
244
|
};
|