@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,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as l, computed as a, createElementBlock as o, openBlock as t, createBlock as u, createElementVNode as f, withCtx as p, createTextVNode as m, toDisplayString as _, unref as h } from "vue";
|
|
2
|
-
import { a as x, _ as g } from "./main-
|
|
2
|
+
import { a as x, _ as g } from "./main-Iz1ZCL6k.js";
|
|
3
3
|
const v = { class: "fr-text--xs" }, b = { key: 0 }, k = ["src"], $ = /* @__PURE__ */ l({
|
|
4
4
|
__name: "Datafair.client",
|
|
5
5
|
props: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { a as I } from "./common-
|
|
3
|
-
import { B as C, a7 as h, al as m, u as S, l as p, E as N, i as L, a4 as P, J as Z } from "./proj-
|
|
4
|
-
import { c as T } from "./Image-
|
|
1
|
+
import { I as x } from "./View-xp_P_OHw.js";
|
|
2
|
+
import { a as I } from "./common-BjQlan3k.js";
|
|
3
|
+
import { B as C, a7 as h, al as m, u as S, l as p, E as N, i as L, a4 as P, J as Z } from "./proj-CsNo9yH1.js";
|
|
4
|
+
import { c as T } from "./Image-BijNEG0p.js";
|
|
5
5
|
const n = {
|
|
6
6
|
OPACITY: "opacity",
|
|
7
7
|
VISIBLE: "visible",
|
|
@@ -600,7 +600,7 @@ const B = /^rgba?\(\s*(\d+%?)\s+(\d+%?)\s+(\d+%?)(?:\s*\/\s*(\d+%|\d*\.\d+|[01])
|
|
|
600
600
|
function f(t, e) {
|
|
601
601
|
return t.endsWith("%") ? Number(t.substring(0, t.length - 1)) / e : Number(t);
|
|
602
602
|
}
|
|
603
|
-
function
|
|
603
|
+
function l(t) {
|
|
604
604
|
throw new Error('failed to parse "' + t + '" as color');
|
|
605
605
|
}
|
|
606
606
|
function A(t) {
|
|
@@ -615,7 +615,7 @@ function A(t) {
|
|
|
615
615
|
o !== void 0 ? h(f(o, 100), 0, 1) : 1
|
|
616
616
|
];
|
|
617
617
|
}
|
|
618
|
-
|
|
618
|
+
l(t);
|
|
619
619
|
}
|
|
620
620
|
if (t.startsWith("#")) {
|
|
621
621
|
if (F.test(t)) {
|
|
@@ -626,12 +626,12 @@ function A(t) {
|
|
|
626
626
|
}
|
|
627
627
|
return u[3] = u[3] / 255, u;
|
|
628
628
|
}
|
|
629
|
-
|
|
629
|
+
l(t);
|
|
630
630
|
}
|
|
631
631
|
const e = V();
|
|
632
632
|
e.fillStyle = "#abcdef";
|
|
633
633
|
let r = e.fillStyle;
|
|
634
|
-
e.fillStyle = t, e.fillStyle === r && (e.fillStyle = "#fedcba", r = e.fillStyle, e.fillStyle = t, e.fillStyle === r &&
|
|
634
|
+
e.fillStyle = t, e.fillStyle === r && (e.fillStyle = "#fedcba", r = e.fillStyle, e.fillStyle = t, e.fillStyle === r && l(t));
|
|
635
635
|
const s = e.fillStyle;
|
|
636
636
|
if (s.startsWith("#") || s.startsWith("rgba"))
|
|
637
637
|
return A(s);
|
|
@@ -640,9 +640,9 @@ function A(t) {
|
|
|
640
640
|
return i[3] = P(i[3] / 255, 3), i;
|
|
641
641
|
}
|
|
642
642
|
function v(t) {
|
|
643
|
-
return typeof t == "string" ? t :
|
|
643
|
+
return typeof t == "string" ? t : W(t);
|
|
644
644
|
}
|
|
645
|
-
const k = 1024,
|
|
645
|
+
const k = 1024, d = {};
|
|
646
646
|
let R = 0;
|
|
647
647
|
function J(t) {
|
|
648
648
|
if (t.length === 4)
|
|
@@ -650,10 +650,10 @@ function J(t) {
|
|
|
650
650
|
const e = t.slice();
|
|
651
651
|
return e[3] = 1, e;
|
|
652
652
|
}
|
|
653
|
-
function
|
|
653
|
+
function M(t) {
|
|
654
654
|
return t > 31308e-7 ? Math.pow(t, 1 / 2.4) * 269.025 - 14.025 : t * 3294.6;
|
|
655
655
|
}
|
|
656
|
-
function
|
|
656
|
+
function E(t) {
|
|
657
657
|
return t > 0.2068965 ? Math.pow(t, 3) : (t - 4 / 29) * (108 / 841);
|
|
658
658
|
}
|
|
659
659
|
function O(t) {
|
|
@@ -672,7 +672,7 @@ function Q(t) {
|
|
|
672
672
|
];
|
|
673
673
|
}
|
|
674
674
|
function ee(t) {
|
|
675
|
-
const e = (t[0] + 16) / 116, r = t[1], s = t[2] * Math.PI / 180, i =
|
|
675
|
+
const e = (t[0] + 16) / 116, r = t[1], s = t[2] * Math.PI / 180, i = E(e), a = E(e + r / 500 * Math.cos(s)), o = E(e - r / 200 * Math.sin(s)), u = M(a * 3.021973625 - i * 1.617392459 - o * 0.404875592), c = M(a * -0.943766287 + i * 1.916279586 + o * 0.027607165), g = M(a * 0.069407491 - i * 0.22898585 + o * 1.159737864);
|
|
676
676
|
return [
|
|
677
677
|
h(u + 0.5 | 0, 0, 255),
|
|
678
678
|
h(c + 0.5 | 0, 0, 255),
|
|
@@ -683,23 +683,23 @@ function ee(t) {
|
|
|
683
683
|
function j(t) {
|
|
684
684
|
if (t === "none")
|
|
685
685
|
return U;
|
|
686
|
-
if (
|
|
687
|
-
return
|
|
686
|
+
if (d.hasOwnProperty(t))
|
|
687
|
+
return d[t];
|
|
688
688
|
if (R >= k) {
|
|
689
689
|
let r = 0;
|
|
690
|
-
for (const s in
|
|
691
|
-
(r++ & 3) === 0 && (delete
|
|
690
|
+
for (const s in d)
|
|
691
|
+
(r++ & 3) === 0 && (delete d[s], --R);
|
|
692
692
|
}
|
|
693
693
|
const e = A(t);
|
|
694
|
-
e.length !== 4 &&
|
|
694
|
+
e.length !== 4 && l(t);
|
|
695
695
|
for (const r of e)
|
|
696
|
-
isNaN(r) &&
|
|
697
|
-
return
|
|
696
|
+
isNaN(r) && l(t);
|
|
697
|
+
return d[t] = e, ++R, e;
|
|
698
698
|
}
|
|
699
699
|
function te(t) {
|
|
700
700
|
return Array.isArray(t) ? t : j(t);
|
|
701
701
|
}
|
|
702
|
-
function
|
|
702
|
+
function W(t) {
|
|
703
703
|
let e = t[0];
|
|
704
704
|
e != (e | 0) && (e = e + 0.5 | 0);
|
|
705
705
|
let r = t[1];
|
|
@@ -723,16 +723,16 @@ class re extends Z {
|
|
|
723
723
|
}
|
|
724
724
|
export {
|
|
725
725
|
D as B,
|
|
726
|
-
K as E,
|
|
727
726
|
G as L,
|
|
728
727
|
U as N,
|
|
729
|
-
|
|
728
|
+
K as R,
|
|
730
729
|
te as a,
|
|
731
730
|
v as b,
|
|
731
|
+
re as c,
|
|
732
732
|
j as f,
|
|
733
733
|
X as i,
|
|
734
734
|
ee as l,
|
|
735
735
|
Q as r,
|
|
736
|
-
|
|
736
|
+
W as t,
|
|
737
737
|
J as w
|
|
738
738
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { aD as v, E as f, ar as C, aC as h, u as R } from "./proj-CsNo9yH1.js";
|
|
2
2
|
const r = typeof navigator < "u" && typeof navigator.userAgent < "u" ? navigator.userAgent.toLowerCase() : "", I = r.includes("safari") && !r.includes("chrom");
|
|
3
3
|
I && (r.includes("version/15.4") || /cpu (os|iphone os) 15_4 like mac os x/.test(r));
|
|
4
|
-
const
|
|
4
|
+
const D = r.includes("webkit") && !r.includes("edge"), L = r.includes("macintosh"), w = typeof devicePixelRatio < "u" ? devicePixelRatio : 1, y = typeof WorkerGlobalScope < "u" && typeof OffscreenCanvas < "u" && self instanceof WorkerGlobalScope, u = typeof Image < "u" && Image.prototype.decode, p = typeof createImageBitmap == "function", O = (function() {
|
|
5
5
|
let e = !1;
|
|
6
6
|
try {
|
|
7
7
|
const t = Object.defineProperty({}, "passive", {
|
|
@@ -268,7 +268,7 @@ function g(e, t) {
|
|
|
268
268
|
)
|
|
269
269
|
) : x(e);
|
|
270
270
|
}
|
|
271
|
-
function
|
|
271
|
+
function Y(e, t) {
|
|
272
272
|
return t && (e.src = t), e.src && u && p ? e.decode().then(() => createImageBitmap(e)).catch((n) => {
|
|
273
273
|
if (e.complete && e.width)
|
|
274
274
|
return e;
|
|
@@ -278,7 +278,7 @@ function q(e, t) {
|
|
|
278
278
|
export {
|
|
279
279
|
w as D,
|
|
280
280
|
F as I,
|
|
281
|
-
|
|
281
|
+
L as M,
|
|
282
282
|
O as P,
|
|
283
283
|
_ as T,
|
|
284
284
|
y as W,
|
|
@@ -286,9 +286,9 @@ export {
|
|
|
286
286
|
T as b,
|
|
287
287
|
m as c,
|
|
288
288
|
a as d,
|
|
289
|
-
|
|
289
|
+
Y as e,
|
|
290
290
|
P as f,
|
|
291
|
-
|
|
291
|
+
D as g,
|
|
292
292
|
N as h,
|
|
293
293
|
g as i,
|
|
294
294
|
G as j,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as c, defineAsyncComponent as u, createBlock as m, openBlock as p, unref as r, withCtx as f, createVNode as l } from "vue";
|
|
2
|
-
import { u as d } from "./main-
|
|
3
|
-
import { _ as h } from "./PreviewWrapper.vue_vue_type_script_setup_true_lang-
|
|
2
|
+
import { u as d } from "./main-Iz1ZCL6k.js";
|
|
3
|
+
import { _ as h } from "./PreviewWrapper.vue_vue_type_script_setup_true_lang-BRNYswg3.js";
|
|
4
4
|
const J = /* @__PURE__ */ c({
|
|
5
5
|
__name: "JsonPreview.client",
|
|
6
6
|
props: {
|