@datagouv/components-next 1.2.0 → 1.4.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/README.md +7 -6
- package/dist/{Control-ZFh5ta_U.js → Control-B9WQxlpJ.js} +1 -1
- package/dist/{Datafair.client-rf4T1IkA.js → Datafair.client-D_6yzJUG.js} +9 -9
- package/dist/{Event-DSQcW7OF.js → Event-iXDrp-fy.js} +11 -11
- package/dist/{Image-BijNEG0p.js → Image-mNMBOofs.js} +5 -5
- package/dist/ImagePreview.client-B0iPhFm3.js +36 -0
- package/dist/{JsonPreview.client-dzar6iuh.js → JsonPreview.client-DSl1kiwC.js} +5 -5
- package/dist/{Map-BUtPf5GN.js → Map-BfqKMw0S.js} +1306 -1166
- package/dist/{MapContainer.client-D-MoRNhG.js → MapContainer.client-BSfpk_rT.js} +15 -15
- package/dist/{OSM-D4MTdBtk.js → OSM-CcrUhItr.js} +15 -23
- package/dist/{PdfPreview.client-DoDYLmJD.js → PdfPreview.client-BANFeM6K.js} +441 -434
- package/dist/Pmtiles.client-DH9ZrsZR.js +26333 -0
- package/dist/PreviewWrapper.vue_vue_type_script_setup_true_lang-I8EZCgzp.js +60 -0
- package/dist/{ScaleLine-hJQIqcZm.js → ScaleLine-VGQ7nkMS.js} +2 -2
- package/dist/{Tile-Dcl7oIVu.js → Tile-CSpn0Ca8.js} +153 -156
- package/dist/{TileImage-BJeHipMX.js → TileImage-CpbaEFwd.js} +143 -131
- package/dist/{View-xp_P_OHw.js → View-BYBpt-AU.js} +167 -117
- package/dist/{XmlPreview.client-cOhwff6P.js → XmlPreview.client-KCB5mwVf.js} +5 -5
- package/dist/{common-BjQlan3k.js → common-BoeTUnDZ.js} +26 -26
- package/dist/components-next.css +1 -52
- package/dist/components-next.js +201 -170
- package/dist/components.css +2 -2
- package/dist/{index-NofRBuyf.js → index-DHWzX5vK.js} +5999 -5472
- package/dist/{leaflet-src-7m1mB8LI.js → leaflet-src-pVQfonBI.js} +162 -164
- package/dist/{main-Iz1ZCL6k.js → main-BDcYkhOc.js} +36671 -29402
- package/dist/{proj-CsNo9yH1.js → proj-DxGbobp7.js} +312 -296
- package/dist/{text-clamp.esm-B5kW_XMt.js → text-clamp.esm-DVseBqZZ.js} +4 -4
- package/dist/{tilecoord-A0fLnBZr.js → tilecoord-DvX7WWiA.js} +264 -255
- package/dist/{vue3-json-viewer-BXwup7nO.js → vue3-json-viewer-CJLQFzXZ.js} +10 -16
- package/dist/{vue3-xml-viewer.common-tVI9uXUz.js → vue3-xml-viewer.common-Bdcn54ST.js} +1 -1
- package/package.json +40 -39
- package/src/components/ActivityList/ActivityList.vue +21 -12
- package/src/components/AppLink.vue +3 -0
- package/src/components/BannerAction.vue +6 -2
- package/src/components/Chart/ChartViewer.vue +111 -17
- package/src/components/Chart/ChartViewerWrapper.vue +28 -16
- package/src/components/ChartCard.vue +112 -0
- package/src/components/CopyButton.vue +6 -2
- package/src/components/DataserviceCard.vue +23 -6
- package/src/components/DataserviceQuality.vue +82 -0
- package/src/components/DataserviceQualityInline.vue +31 -0
- package/src/components/DataserviceQualityTooltipContent.vue +79 -0
- package/src/components/DatasetCard.vue +17 -6
- package/src/components/DatasetInformation/DatasetTemporalitySection.vue +7 -4
- package/src/components/DatasetQuality.vue +11 -11
- package/src/components/DatasetQualityInline.vue +2 -2
- package/src/components/DatasetQualityTooltipContent.vue +1 -1
- package/src/components/DiscussionMessageCard.vue +14 -15
- package/src/components/Form/SchemaSelect.vue +2 -0
- package/src/components/FormattedDate.vue +69 -0
- package/src/components/LoadingBlock.vue +4 -1
- package/src/components/ObjectCard.vue +4 -1
- package/src/components/ObjectCardOwner.vue +13 -1
- package/src/components/Pagination.vue +18 -58
- package/src/components/Placeholder.vue +3 -2
- package/src/components/PostCard.vue +13 -15
- package/src/components/ResourceAccordion/Datafair.client.vue +1 -1
- package/src/components/ResourceAccordion/Downloads.vue +19 -7
- package/src/components/ResourceAccordion/ImagePreview.client.vue +48 -0
- package/src/components/ResourceAccordion/MapContainer.client.vue +1 -8
- package/src/components/ResourceAccordion/Metadata.vue +21 -5
- package/src/components/ResourceAccordion/PdfPreview.client.vue +36 -12
- package/src/components/ResourceAccordion/PdfSkeleton.vue +44 -0
- package/src/components/ResourceAccordion/Pmtiles.client.vue +30 -19
- package/src/components/ResourceAccordion/Preview.vue +8 -4
- package/src/components/ResourceAccordion/PreviewWrapper.vue +17 -10
- package/src/components/ResourceAccordion/ResourceAccordion.vue +31 -11
- package/src/components/ResourceExplorer/ResourceExplorer.vue +105 -210
- package/src/components/ResourceExplorer/ResourceExplorerHeader.vue +79 -0
- package/src/components/ResourceExplorer/ResourceExplorerSidebar.vue +104 -71
- package/src/components/ResourceExplorer/ResourceExplorerViewer.vue +140 -184
- package/src/components/ResourceExplorer/ResourceMainAction.vue +240 -0
- package/src/components/ResourceExplorer/ResourceSelector.vue +24 -86
- package/src/components/ResourceExplorer/ResourceViewerHeader.vue +124 -0
- package/src/components/ResourceExplorer/ResourceViewerSkeleton.vue +96 -0
- package/src/components/ResourceListItem.vue +168 -0
- package/src/components/ReuseCard.vue +18 -6
- package/src/components/ReuseDetails.vue +2 -2
- package/src/components/ReuseHorizontalCard.vue +4 -3
- package/src/components/SchemaCard.vue +10 -1
- package/src/components/Search/Filter/AccessTypeFilter.vue +2 -2
- package/src/components/Search/GlobalSearch.vue +28 -10
- package/src/components/Search/SearchInput.vue +1 -1
- package/src/components/Search/Sidemenu.vue +4 -3
- package/src/components/SmallChart.vue +11 -10
- package/src/components/StatBox.vue +13 -5
- package/src/components/TabularExplorer/TabularActiveFilters.vue +79 -0
- package/src/components/TabularExplorer/TabularCell.vue +7 -8
- package/src/components/TabularExplorer/TabularCellPopover.vue +21 -5
- package/src/components/TabularExplorer/TabularColumnsMenu.vue +112 -0
- package/src/components/TabularExplorer/TabularDateField.vue +41 -0
- package/src/components/TabularExplorer/TabularDateFilter.vue +403 -0
- package/src/components/TabularExplorer/TabularExplorer.vue +127 -780
- package/src/components/TabularExplorer/TabularFilterContent.vue +48 -38
- package/src/components/TabularExplorer/TabularFilterPopover.vue +27 -32
- package/src/components/TabularExplorer/TabularMobileFilterButton.vue +21 -0
- package/src/components/TabularExplorer/TabularMobileFilters.vue +150 -0
- package/src/components/TabularExplorer/TabularRowsInfo.vue +31 -0
- package/src/components/TabularExplorer/TabularSkeleton.vue +92 -0
- package/src/components/TabularExplorer/TabularTable.vue +484 -0
- package/src/components/TabularExplorer/TabularToolbar.vue +25 -0
- package/src/components/TabularExplorer/types.ts +40 -28
- package/src/components/TabularExplorer/useColumnMetadata.ts +98 -0
- package/src/components/TabularExplorer/useTabularContext.ts +82 -0
- package/src/components/TopicCard.vue +15 -14
- package/src/composables/useActiveDescendant.ts +5 -0
- package/src/composables/useDatasetResources.ts +164 -0
- package/src/composables/useHasTabularData.ts +2 -1
- package/src/composables/useResizable.ts +46 -0
- package/src/composables/useResourceCapabilities.ts +48 -40
- package/src/composables/useSearchFilter.ts +7 -5
- package/src/composables/useTranslation.ts +24 -9
- package/src/config.ts +1 -0
- package/src/functions/api.ts +13 -7
- package/src/functions/charts.ts +32 -1
- package/src/functions/dates.ts +26 -7
- package/src/functions/helpers.ts +15 -0
- package/src/functions/metrics.ts +57 -56
- package/src/functions/owned.ts +21 -0
- package/src/functions/paginate.ts +46 -0
- package/src/functions/resourceCapabilities.ts +34 -0
- package/src/functions/resources.ts +88 -0
- package/src/functions/schemas.ts +27 -0
- package/src/functions/scroll.ts +20 -0
- package/src/functions/tabular.ts +222 -5
- package/src/functions/tabularApi.ts +1 -43
- package/src/main.ts +32 -6
- package/src/types/dataservices.ts +15 -0
- package/src/types/organizations.ts +10 -0
- package/src/types/resources.ts +0 -1
- package/src/types/reuses.ts +12 -1
- package/src/types/search.ts +2 -2
- package/src/types/visualizations.ts +5 -0
- package/dist/Pmtiles.client-Dzm01Zfm.js +0 -25185
- package/dist/PreviewWrapper.vue_vue_type_script_setup_true_lang-BRNYswg3.js +0 -61
- /package/src/components/{DatasetQualityItem.vue → QualityItem.vue} +0 -0
- /package/src/components/{DatasetQualityItemWarning.vue → QualityItemWarning.vue} +0 -0
- /package/src/components/{DatasetQualityScore.vue → QualityScore.vue} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as i, defineAsyncComponent as m,
|
|
2
|
-
import { u as x } from "./main-
|
|
3
|
-
import { _ as w } from "./PreviewWrapper.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
import { defineComponent as i, defineAsyncComponent as m, openBlock as u, createBlock as f, unref as t, withCtx as l, createVNode as p } from "vue";
|
|
2
|
+
import { u as x } from "./main-BDcYkhOc.js";
|
|
3
|
+
import { _ as w } from "./PreviewWrapper.vue_vue_type_script_setup_true_lang-I8EZCgzp.js";
|
|
4
4
|
const X = /* @__PURE__ */ i({
|
|
5
5
|
__name: "XmlPreview.client",
|
|
6
6
|
props: {
|
|
@@ -8,13 +8,13 @@ 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-Bdcn54ST.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}`);
|
|
15
15
|
return e.text();
|
|
16
16
|
};
|
|
17
|
-
return (e, _) => (
|
|
17
|
+
return (e, _) => (u(), f(w, {
|
|
18
18
|
"file-type": "XML",
|
|
19
19
|
resource: r.resource,
|
|
20
20
|
"max-size": t(s).maxXmlPreviewCharSize,
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
function
|
|
1
|
+
import { S as w, aY as F, i as _, aZ as I, v as O } from "./proj-DxGbobp7.js";
|
|
2
|
+
function X(n, u) {
|
|
3
3
|
if (!n)
|
|
4
4
|
throw new Error(u);
|
|
5
5
|
}
|
|
6
6
|
function Y(n) {
|
|
7
7
|
return Math.pow(n, 3);
|
|
8
8
|
}
|
|
9
|
-
function
|
|
9
|
+
function U(n) {
|
|
10
10
|
return 1 - Y(1 - n);
|
|
11
11
|
}
|
|
12
12
|
function z(n) {
|
|
@@ -15,16 +15,16 @@ function z(n) {
|
|
|
15
15
|
function P(n) {
|
|
16
16
|
return n;
|
|
17
17
|
}
|
|
18
|
-
const
|
|
18
|
+
const R = new Array(6);
|
|
19
19
|
function B() {
|
|
20
20
|
return [1, 0, 0, 1, 0, 0];
|
|
21
21
|
}
|
|
22
22
|
function G(n) {
|
|
23
23
|
return s(n, 1, 0, 0, 1, 0, 0);
|
|
24
24
|
}
|
|
25
|
-
function
|
|
26
|
-
const i = n[0], e = n[1], c = n[2], t = n[3], r = n[4], l = n[5], g = u[0], h = u[1], p = u[2],
|
|
27
|
-
return n[0] = i * g + c * h, n[1] = e * g + t * h, n[2] = i * p + c *
|
|
25
|
+
function b(n, u) {
|
|
26
|
+
const i = n[0], e = n[1], c = n[2], t = n[3], r = n[4], l = n[5], g = u[0], h = u[1], p = u[2], S = u[3], L = u[4], v = u[5];
|
|
27
|
+
return n[0] = i * g + c * h, n[1] = e * g + t * h, n[2] = i * p + c * S, n[3] = e * p + t * S, n[4] = i * L + c * v + r, n[5] = e * L + t * v + l, n;
|
|
28
28
|
}
|
|
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;
|
|
@@ -37,10 +37,10 @@ function J(n, u) {
|
|
|
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
39
|
function K(n, u, i) {
|
|
40
|
-
return
|
|
40
|
+
return b(n, s(R, u, 0, 0, i, 0, 0));
|
|
41
41
|
}
|
|
42
42
|
function N(n, u, i) {
|
|
43
|
-
return
|
|
43
|
+
return b(n, s(R, 1, 0, 0, 1, u, i));
|
|
44
44
|
}
|
|
45
45
|
function Q(n, u, i, e, c, t, r, l) {
|
|
46
46
|
const g = Math.sin(t), h = Math.cos(t);
|
|
@@ -48,7 +48,7 @@ function Q(n, u, i, e, c, t, r, l) {
|
|
|
48
48
|
}
|
|
49
49
|
function V(n, u) {
|
|
50
50
|
const i = y(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
|
}
|
|
@@ -59,11 +59,11 @@ const D = [1e5, 1e5, 1e5, 1e5, 2, 2];
|
|
|
59
59
|
function W(n) {
|
|
60
60
|
return "matrix(" + n.join(", ") + ")";
|
|
61
61
|
}
|
|
62
|
-
function
|
|
62
|
+
function M(n) {
|
|
63
63
|
return n.substring(7, n.length - 1).split(",").map(parseFloat);
|
|
64
64
|
}
|
|
65
65
|
function $(n, u) {
|
|
66
|
-
const i =
|
|
66
|
+
const i = M(n), e = M(u);
|
|
67
67
|
for (let c = 0; c < 6; ++c)
|
|
68
68
|
if (Math.round((i[c] - e[c]) * D[c]) !== 0)
|
|
69
69
|
return !1;
|
|
@@ -115,7 +115,7 @@ function f(n, u, i, e, c, t) {
|
|
|
115
115
|
}
|
|
116
116
|
return !1;
|
|
117
117
|
}
|
|
118
|
-
function
|
|
118
|
+
function Z(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 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(O(), n, u, i, e), _(c, t) ? t[0] >= c[0] && t[2] <= c[2] || t[1] >= c[1] && t[3] <= c[3] ? !0 : Z(
|
|
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 I(c, r, l);
|
|
142
142
|
}
|
|
143
143
|
) : !1;
|
|
144
144
|
}
|
|
@@ -150,7 +150,7 @@ function o(n, u, i, e, c) {
|
|
|
150
150
|
}
|
|
151
151
|
return !1;
|
|
152
152
|
}
|
|
153
|
-
function
|
|
153
|
+
function j(n, u, i, e, c) {
|
|
154
154
|
return !!(A(n, u, i, e, c) || a(
|
|
155
155
|
n,
|
|
156
156
|
u,
|
|
@@ -181,8 +181,8 @@ function k(n, u, i, e, c) {
|
|
|
181
181
|
c[3]
|
|
182
182
|
));
|
|
183
183
|
}
|
|
184
|
-
function
|
|
185
|
-
if (!
|
|
184
|
+
function k(n, u, i, e, c) {
|
|
185
|
+
if (!j(n, u, i[0], e, c))
|
|
186
186
|
return !1;
|
|
187
187
|
if (i.length === 1)
|
|
188
188
|
return !0;
|
|
@@ -206,7 +206,7 @@ function q(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 (
|
|
209
|
+
if (k(n, u, l, e, c))
|
|
210
210
|
return !0;
|
|
211
211
|
u = l[l.length - 1];
|
|
212
212
|
}
|
|
@@ -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
|
+
X as a,
|
|
219
219
|
o as b,
|
|
220
220
|
C as c,
|
|
221
221
|
Q as d,
|
|
222
222
|
B as e,
|
|
223
|
-
|
|
223
|
+
Z as f,
|
|
224
224
|
J as g,
|
|
225
225
|
K as h,
|
|
226
226
|
A as i,
|
|
227
|
-
|
|
227
|
+
U as j,
|
|
228
228
|
P as k,
|
|
229
229
|
f as l,
|
|
230
|
-
|
|
230
|
+
b as m,
|
|
231
231
|
V as n,
|
|
232
|
-
|
|
232
|
+
M as o,
|
|
233
233
|
$ as p,
|
|
234
234
|
W as q,
|
|
235
235
|
G as r,
|
|
236
236
|
H as s,
|
|
237
237
|
N as t,
|
|
238
238
|
T as u,
|
|
239
|
-
|
|
239
|
+
k as v,
|
|
240
240
|
z as w,
|
|
241
241
|
m as x,
|
|
242
|
-
|
|
242
|
+
j as y,
|
|
243
243
|
Y as z
|
|
244
244
|
};
|