@datagouv/components-next 1.0.2-dev.200 → 1.0.2-dev.202
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/{Datafair.client-CFTmBFoY.js → Datafair.client-CCziAlBg.js} +1 -1
- package/dist/{ImagePreview.client-BvDM3qjE.js → ImagePreview.client-CAvNUnVD.js} +1 -1
- package/dist/{JsonPreview.client-BP6gPRxf.js → JsonPreview.client-BHZx8aen.js} +2 -2
- package/dist/{MapContainer.client-D9N3664r.js → MapContainer.client-CbfoAPCF.js} +2 -2
- package/dist/{PdfPreview.client-C6A6ZiKl.js → PdfPreview.client-BWq1dMvs.js} +2 -2
- package/dist/{Pmtiles.client-B_sDZoqu.js → Pmtiles.client-Diw2dwhY.js} +1 -1
- package/dist/{PreviewWrapper.vue_vue_type_script_setup_true_lang-DGLXBys_.js → PreviewWrapper.vue_vue_type_script_setup_true_lang-3CDNhxIL.js} +1 -1
- package/dist/{XmlPreview.client-DFQ1T-LN.js → XmlPreview.client-HUxB9uqG.js} +3 -3
- package/dist/components-next.js +1 -1
- package/dist/{index-B_tPYi5Z.js → index-BTx5DUIG.js} +1 -1
- package/dist/{leaflet-src-PeylHk0o.js → leaflet-src-DNSrX3rh.js} +1 -1
- package/dist/{main-CVOZp_Nx.js → main--ZN-jusz.js} +107 -106
- package/dist/{vue3-xml-viewer.common-CcF3Xd23.js → vue3-xml-viewer.common-UMibNgKb.js} +1 -1
- package/package.json +1 -1
- package/src/config.ts +8 -0
- package/src/functions/resources.ts +3 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as u, computed as a, openBlock as t, createElementBlock as o, createElementVNode as l, createBlock as f, withCtx as p, createTextVNode as m, toDisplayString as _, unref as x } from "vue";
|
|
2
|
-
import { a as h, d as v } from "./main-
|
|
2
|
+
import { a as h, d as v } from "./main--ZN-jusz.js";
|
|
3
3
|
const g = { class: "fr-text--xs" }, b = { key: 0 }, k = ["src"], B = /* @__PURE__ */ u({
|
|
4
4
|
__name: "Datafair.client",
|
|
5
5
|
props: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as _, ref as y, computed as o, openBlock as t, createElementBlock as u, createBlock as p, withCtx as f, createTextVNode as m, toDisplayString as d, unref as l } from "vue";
|
|
2
|
-
import { a as z, u as T, b as k, d as h } from "./main-
|
|
2
|
+
import { a as z, u as T, b as k, d as h } from "./main--ZN-jusz.js";
|
|
3
3
|
const w = { class: "text-xs" }, B = ["src"], E = /* @__PURE__ */ _({
|
|
4
4
|
__name: "ImagePreview.client",
|
|
5
5
|
props: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as c, defineAsyncComponent as u, openBlock as m, createBlock 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--ZN-jusz.js";
|
|
3
|
+
import { _ as h } from "./PreviewWrapper.vue_vue_type_script_setup_true_lang-3CDNhxIL.js";
|
|
4
4
|
const J = /* @__PURE__ */ c({
|
|
5
5
|
__name: "JsonPreview.client",
|
|
6
6
|
props: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as E, useTemplateRef as G, ref as W, onMounted as z, openBlock as u, createBlock as B, withCtx as N, createTextVNode as V, toDisplayString as q, unref as A, createElementBlock as D } from "vue";
|
|
2
|
-
import { a as F, d as O } from "./main-
|
|
2
|
+
import { a as F, d as O } from "./main--ZN-jusz.js";
|
|
3
3
|
const Z = /* @__PURE__ */ E({
|
|
4
4
|
__name: "MapContainer.client",
|
|
5
5
|
props: {
|
|
@@ -24,7 +24,7 @@ const Z = /* @__PURE__ */ E({
|
|
|
24
24
|
import("./Tile-CSpn0Ca8.js").then((t) => t.d),
|
|
25
25
|
import("./OSM-CcrUhItr.js"),
|
|
26
26
|
// @ts-expect-error no types provided
|
|
27
|
-
import("./index-
|
|
27
|
+
import("./index-BTx5DUIG.js")
|
|
28
28
|
]), { CRS: _, GeoportalAttribution: S, GeoportalFullScreen: g, GeoportalZoom: b, LayerImport: v, LayerSwitcher: L } = C;
|
|
29
29
|
await Promise.resolve({ }), await Promise.resolve({ }), await Promise.resolve({ }), await Promise.resolve({ }), _.load(), e = new s({
|
|
30
30
|
target: a.value,
|
|
@@ -12,8 +12,8 @@ var bZ = (R, l, U, Z) => ({
|
|
|
12
12
|
}
|
|
13
13
|
});
|
|
14
14
|
import { defineComponent as Rd, ref as Nd, onBeforeUnmount as sd, openBlock as LU, createBlock as bd, unref as nd, withCtx as nZ, createElementVNode as kU, normalizeClass as ad, createElementBlock as aZ, Fragment as hd, renderList as md, createVNode as id } from "vue";
|
|
15
|
-
import { _ as Md } from "./PreviewWrapper.vue_vue_type_script_setup_true_lang-
|
|
16
|
-
import { u as Jd, _ as Gd } from "./main-
|
|
15
|
+
import { _ as Md } from "./PreviewWrapper.vue_vue_type_script_setup_true_lang-3CDNhxIL.js";
|
|
16
|
+
import { u as Jd, _ as Gd } from "./main--ZN-jusz.js";
|
|
17
17
|
var ZU = {};
|
|
18
18
|
ZU.d = (R, l) => {
|
|
19
19
|
for (var U in l)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as S0, ref as P0, computed as qc, useTemplateRef as I0, onMounted as E0, openBlock as vh, createElementBlock as ip, createBlock as M0, withCtx as Gm, createTextVNode as $m, toDisplayString as Wc, unref as _s, createElementVNode as Za, createVNode as A0, createCommentVNode as C0 } from "vue";
|
|
2
|
-
import { g as D0, a as z0, e as R0, u as k0, f as L0, h as F0, d as O0, i as B0, j as N0, Q as j0, t as V0 } from "./main-
|
|
2
|
+
import { g as D0, a as z0, e as R0, u as k0, f as L0, h as F0, d as O0, i as B0, j as N0, Q as j0, t as V0 } from "./main--ZN-jusz.js";
|
|
3
3
|
var un = Uint8Array, Fl = Uint16Array, U0 = Int32Array, lg = new un([
|
|
4
4
|
0,
|
|
5
5
|
0,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as C, ref as v, computed as y, onMounted as S, nextTick as w, openBlock as a, createElementBlock as b, normalizeClass as B, renderSlot as x, createElementVNode as _, toDisplayString as i, unref as t, createBlock as s, withCtx as n, createTextVNode as u, createCommentVNode as E } from "vue";
|
|
2
|
-
import { a as L, b as N, c as R, d as c } from "./main-
|
|
2
|
+
import { a as L, b as N, c as R, d as c } from "./main--ZN-jusz.js";
|
|
3
3
|
const V = { class: "text-gray-medium" }, F = /* @__PURE__ */ C({
|
|
4
4
|
__name: "PreviewWrapper",
|
|
5
5
|
props: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
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-
|
|
3
|
-
import { _ as w } from "./PreviewWrapper.vue_vue_type_script_setup_true_lang-
|
|
2
|
+
import { u as x } from "./main--ZN-jusz.js";
|
|
3
|
+
import { _ as w } from "./PreviewWrapper.vue_vue_type_script_setup_true_lang-3CDNhxIL.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-UMibNgKb.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}`);
|
package/dist/components-next.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as e, l as t, m as r, n as o, o as i, p as n, q as c, r as l, j as b, C as u, s as g, v as T, D as d, w as C, x as p, y as m, z as S, B as D, E as R, F as O, G as E, H as f, I, J as y, K as h, L as A, M, N as P, O as v, P as F, R as L, S as z, T as w, U as G, V as _, W as N, X as U, Y as H, Z as k, $ as x, a0 as B, a1 as Q, a2 as V, a3 as j, a4 as W, a5 as Y, a6 as X, a7 as q, a8 as Z, a9 as J, aa as K, ab as $, ac as aa, ad as sa, ae as ea, af as ta, ag as ra, ah as oa, ai as ia, aj as na, ak as ca, al as la, am as ba, an as ua, ao as ga, ap as Ta, aq as da, ar as Ca, as as pa, at as ma, au as Sa, av as Da, aw as Ra, ax as Oa, ay as Ea, az as fa, aA as Ia, aB as ya, aC as ha, aD as Aa, aE as Ma, aF as Pa, aG as va, aH as Fa, aI as La, aJ as za, aK as wa, aL as Ga, aM as _a, aN as Na, aO as Ua, aP as Ha, aQ as ka, aR as xa, aS as Ba, aT as Qa, aU as Va, aV as ja, aW as Wa, aX as Ya, aY as Xa, aZ as qa, a_ as Za, a$ as Ja, b0 as Ka, b1 as $a, b2 as as, b3 as ss, b4 as es, b5 as ts, b6 as rs, b7 as os, b8 as is, b9 as ns, ba as cs, bb as ls, bc as bs, bd as us, be as gs, bf as Ts, bg as ds, bh as Cs, bi as ps, bj as ms, bk as Ss, bl as Ds, bm as Rs, bn as Os, bo as Es, bp as fs, bq as Is, br as ys, bs as hs, bt as As, bu as Ms, bv as Ps, bw as vs, bx as Fs, by as Ls, bz as zs, h as ws, f as Gs, bA as _s, bB as Ns, c as Us, bC as Hs, b as ks, bD as xs, bE as Bs, bF as Qs, bG as Vs, bH as js, bI as Ws, bJ as Ys, bK as Xs, bL as qs, bM as Zs, bN as Js, bO as Ks, bP as $s, bQ as ae, bR as se, bS as ee, bT as te, bU as re, bV as oe, bW as ie, bX as ne, bY as ce, bZ as le, b_ as be, b$ as ue, c0 as ge, c1 as Te, c1 as de, c2 as Ce, c3 as pe, c4 as me, c5 as Se, c6 as De, t as Re, c7 as Oe, c8 as Ee, c9 as fe, ca as Ie, cb as ye, u as he, cc as Ae, cd as Me, ce as Pe, e as ve, cf as Fe, cg as Le, ch as ze, ci as we, cj as Ge, ck as _e, cl as Ne, cm as Ue, cn as He, co as ke, cp as xe, cq as Be, a as Qe } from "./main-
|
|
1
|
+
import { A as e, l as t, m as r, n as o, o as i, p as n, q as c, r as l, j as b, C as u, s as g, v as T, D as d, w as C, x as p, y as m, z as S, B as D, E as R, F as O, G as E, H as f, I, J as y, K as h, L as A, M, N as P, O as v, P as F, R as L, S as z, T as w, U as G, V as _, W as N, X as U, Y as H, Z as k, $ as x, a0 as B, a1 as Q, a2 as V, a3 as j, a4 as W, a5 as Y, a6 as X, a7 as q, a8 as Z, a9 as J, aa as K, ab as $, ac as aa, ad as sa, ae as ea, af as ta, ag as ra, ah as oa, ai as ia, aj as na, ak as ca, al as la, am as ba, an as ua, ao as ga, ap as Ta, aq as da, ar as Ca, as as pa, at as ma, au as Sa, av as Da, aw as Ra, ax as Oa, ay as Ea, az as fa, aA as Ia, aB as ya, aC as ha, aD as Aa, aE as Ma, aF as Pa, aG as va, aH as Fa, aI as La, aJ as za, aK as wa, aL as Ga, aM as _a, aN as Na, aO as Ua, aP as Ha, aQ as ka, aR as xa, aS as Ba, aT as Qa, aU as Va, aV as ja, aW as Wa, aX as Ya, aY as Xa, aZ as qa, a_ as Za, a$ as Ja, b0 as Ka, b1 as $a, b2 as as, b3 as ss, b4 as es, b5 as ts, b6 as rs, b7 as os, b8 as is, b9 as ns, ba as cs, bb as ls, bc as bs, bd as us, be as gs, bf as Ts, bg as ds, bh as Cs, bi as ps, bj as ms, bk as Ss, bl as Ds, bm as Rs, bn as Os, bo as Es, bp as fs, bq as Is, br as ys, bs as hs, bt as As, bu as Ms, bv as Ps, bw as vs, bx as Fs, by as Ls, bz as zs, h as ws, f as Gs, bA as _s, bB as Ns, c as Us, bC as Hs, b as ks, bD as xs, bE as Bs, bF as Qs, bG as Vs, bH as js, bI as Ws, bJ as Ys, bK as Xs, bL as qs, bM as Zs, bN as Js, bO as Ks, bP as $s, bQ as ae, bR as se, bS as ee, bT as te, bU as re, bV as oe, bW as ie, bX as ne, bY as ce, bZ as le, b_ as be, b$ as ue, c0 as ge, c1 as Te, c1 as de, c2 as Ce, c3 as pe, c4 as me, c5 as Se, c6 as De, t as Re, c7 as Oe, c8 as Ee, c9 as fe, ca as Ie, cb as ye, u as he, cc as Ae, cd as Me, ce as Pe, e as ve, cf as Fe, cg as Le, ch as ze, ci as we, cj as Ge, ck as _e, cl as Ne, cm as Ue, cn as He, co as ke, cp as xe, cq as Be, a as Qe } from "./main--ZN-jusz.js";
|
|
2
2
|
export {
|
|
3
3
|
e as AI_SUGGESTION_MIN_DESCRIPTION_LENGTH,
|
|
4
4
|
t as ASSOCIATION,
|
|
@@ -6,7 +6,7 @@ import { a as TileGrid, U as UrlTile, e as extentFromProjection, c as createXYZ,
|
|
|
6
6
|
import { D as DEFAULT_MAX_ZOOM, a as assert, f as forEach, i as intersectsLineString, b as intersectsLineStringArray, l as linearRingssContainsXY, c as intersectsLinearRingMultiArray, d as compose, e as create, g as apply, s as setFromArray, m as multiply, h as scale, r as reset, t as translate } from "./common-BoeTUnDZ.js";
|
|
7
7
|
import { R as RBush$1, C as Collection, a as CollectionEventType, b as asColorLike, d as defaultFillStyle, c as defaultStrokeStyle, e as defaultLineCap, f as defaultLineDash, g as defaultLineDashOffset, h as defaultLineJoin, i as defaultLineWidth, j as defaultMiterLimit, k as defaultStrokeOffset, l as defaultPadding, m as defaultTextBaseline, n as defaultTextAlign, o as defaultFont, r as registerFont, p as getTextDimensions, q as drawImageOrLabel, s as measureAndCacheTextWidth, I as Icon, B as BaseVectorLayer, P as PointerInteraction, t as noModifierKeys, u as always, v as shiftKeyOnly, w as InteractionProperty, M as MapBrowserEventType, x as MapBrowserEvent, y as never, z as createEditingStyle, A as primaryAction, D as altKeyOnly, E as singleClick, F as Interaction, G as Fill, S as Stroke, T as Text, H as Style$1, J as CircleStyle, K as checkedFonts, L as Map$1, N as pointerMove, O as ImageStyle, Q as Attribution, Z as Zoom, U as MapProperty } from "./Map-BfqKMw0S.js";
|
|
8
8
|
import { S as SimpleGeometry, m as maxSquaredDelta, a as assignClosestPoint, i as inflateCoordinates, d as douglasPeucker, b as deflateCoordinates, c as arrayMaxSquaredDelta, e as assignClosestArrayPoint, f as inflateCoordinatesArray, g as douglasPeuckerArray, h as deflateCoordinatesArray, P as Point$1, j as multiArrayMaxSquaredDelta, k as assignClosestMultiArrayPoint, l as linearRingss$1, o as orientLinearRingsArray, n as inflateMultiCoordinatesArray, p as getInteriorPointsOfMultiArray, q as linearRingssAreOriented, r as quantizeMultiArray, s as Polygon, t as deflateMultiCoordinatesArray, u as getInteriorPointOfArray, v as inflateEnds, w as transform2D, x as quantizeArray, y as deflateCoordinate, z as rotate, A as snap, B as transformGeom2D, V as ViewHint, G as Geometry, C as getStrideForLayout, D as linearRingsAreOriented, E as orientLinearRings, F as getLayoutForStride, H as circular, L as LinearRing, I as View, J as ViewProperty, K as fromExtent } from "./View-BYBpt-AU.js";
|
|
9
|
-
import { k as commonjsGlobal, g as getDefaultExportFromCjs$1 } from "./main-
|
|
9
|
+
import { k as commonjsGlobal, g as getDefaultExportFromCjs$1 } from "./main--ZN-jusz.js";
|
|
10
10
|
import { R as RenderEventType, a as asArray, B as BaseLayer } from "./Event-iXDrp-fy.js";
|
|
11
11
|
import { Z as ZIndexContext, C as CanvasLayerRenderer, c as canvasPool$1, T as TileLayer, a as CanvasTileLayerRenderer, b as TileProperty } from "./Tile-CSpn0Ca8.js";
|
|
12
12
|
function padNumber(i, e, t) {
|
|
@@ -1227,7 +1227,7 @@ const m7 = (function() {
|
|
|
1227
1227
|
return global;
|
|
1228
1228
|
throw new Error("unable to locate global object");
|
|
1229
1229
|
})(), $v = m7.fetch ? (...e) => m7.fetch(...e) : () => Promise.reject(new Error("[ofetch] global.fetch is not supported!")), Uv = m7.Headers, qv = m7.AbortController, Ot = xp({ fetch: $v, Headers: Uv, AbortController: qv }), yp = /* @__PURE__ */ Symbol();
|
|
1230
|
-
function
|
|
1230
|
+
function v2() {
|
|
1231
1231
|
const e = y2(yp);
|
|
1232
1232
|
if (!e) throw new Error("Calling `useComponentsConfig` outside @datagouv/components");
|
|
1233
1233
|
return e;
|
|
@@ -1239,7 +1239,7 @@ function Bo(e) {
|
|
|
1239
1239
|
);
|
|
1240
1240
|
}
|
|
1241
1241
|
async function ut(e, t) {
|
|
1242
|
-
const i =
|
|
1242
|
+
const i = v2();
|
|
1243
1243
|
if (i.customUseFetch)
|
|
1244
1244
|
return await i.customUseFetch(e, t);
|
|
1245
1245
|
const r = t?.raw, n = J(null), l = J(null), a = J("idle"), c = async (u) => {
|
|
@@ -1274,7 +1274,7 @@ async function ut(e, t) {
|
|
|
1274
1274
|
};
|
|
1275
1275
|
}
|
|
1276
1276
|
function Wv() {
|
|
1277
|
-
const e =
|
|
1277
|
+
const e = v2();
|
|
1278
1278
|
return (t, i) => "avatar_thumbnail" in t && t.avatar_thumbnail ? t.avatar_thumbnail : "avatar_url" in t && t.avatar_url ? t.avatar_url : `${e.apiBase}/api/1/avatars/${t.id}/${i}`;
|
|
1279
1279
|
}
|
|
1280
1280
|
const jv = ["src", "width", "height"], _i = /* @__PURE__ */ o({
|
|
@@ -11401,7 +11401,7 @@ const KH = ["datetime", "title", "data-allow-mismatch"], YH = { key: 1 }, ee = /
|
|
|
11401
11401
|
replace: { type: Boolean }
|
|
11402
11402
|
},
|
|
11403
11403
|
setup(e) {
|
|
11404
|
-
const t =
|
|
11404
|
+
const t = v2(), { locale: i } = y1(), r = e, n = A(() => typeof r.to != "string" ? !1 : r.to && r.to.startsWith("http")), l = A(() => t.appLink || n.value ? r.to : typeof r.to == "string" ? `/${i}${r.to}` : r.to);
|
|
11405
11405
|
return (a, c) => w(t).appLink ? (v(), j(a2(w(t)?.appLink), {
|
|
11406
11406
|
key: 0,
|
|
11407
11407
|
to: l.value,
|
|
@@ -11967,17 +11967,17 @@ var AV = /* @__PURE__ */ o({
|
|
|
11967
11967
|
x: 0,
|
|
11968
11968
|
y: 0
|
|
11969
11969
|
};
|
|
11970
|
-
const
|
|
11970
|
+
const H2 = (xe) => 1 / (1.5 + Math.abs(xe) / 20);
|
|
11971
11971
|
if (n.value === "y") {
|
|
11972
11972
|
if ($1.includes("top") || $1.includes("bottom")) if ($1.includes("top") && z1 < 0 || $1.includes("bottom") && z1 > 0) k1.y = z1;
|
|
11973
11973
|
else {
|
|
11974
|
-
const xe = z1 *
|
|
11974
|
+
const xe = z1 * H2(z1);
|
|
11975
11975
|
k1.y = Math.abs(xe) < Math.abs(z1) ? xe : z1;
|
|
11976
11976
|
}
|
|
11977
11977
|
} else if (n.value === "x" && ($1.includes("left") || $1.includes("right")))
|
|
11978
11978
|
if ($1.includes("left") && Z1 < 0 || $1.includes("right") && Z1 > 0) k1.x = Z1;
|
|
11979
11979
|
else {
|
|
11980
|
-
const xe = Z1 *
|
|
11980
|
+
const xe = Z1 * H2(Z1);
|
|
11981
11981
|
k1.x = Math.abs(xe) < Math.abs(Z1) ? xe : Z1;
|
|
11982
11982
|
}
|
|
11983
11983
|
(Math.abs(k1.x) > 0 || Math.abs(k1.y) > 0) && (d.value = !0), f.value?.style.setProperty("--swipe-amount-x", `${k1.x}px`), f.value?.style.setProperty("--swipe-amount-y", `${k1.y}px`);
|
|
@@ -12779,7 +12779,7 @@ function ts(e) {
|
|
|
12779
12779
|
return e ? Tp(e, vS) && (li(e, L7) || li(e, x7)) : !1;
|
|
12780
12780
|
}
|
|
12781
12781
|
function K91(e, t) {
|
|
12782
|
-
const i =
|
|
12782
|
+
const i = v2(), r = HS(i.baseUrl, "oembed.js");
|
|
12783
12783
|
return `<div data-udata-${e}="${t}" data-height="1500" data-width="1200"></div><script data-udata="${i.baseUrl}" src="${r}" async defer><\/script>`;
|
|
12784
12784
|
}
|
|
12785
12785
|
const kp = /* @__PURE__ */ o({
|
|
@@ -13943,7 +13943,7 @@ const pM = ["aria-describedby"], CM = ["id"], gM = { class: "drop-shadow bg-whit
|
|
|
13943
13943
|
as: { default: "div" }
|
|
13944
13944
|
},
|
|
13945
13945
|
setup(e) {
|
|
13946
|
-
const t =
|
|
13946
|
+
const t = v2(), { t: i } = y1();
|
|
13947
13947
|
return (r, n) => (v(), _("div", fM, [
|
|
13948
13948
|
e.showType ? (v(), j(kp, {
|
|
13949
13949
|
key: 0,
|
|
@@ -14187,7 +14187,7 @@ function bM() {
|
|
|
14187
14187
|
L1[Z] = L1[F] = L1[W] = L1[Q] = L1[n1] = L1[t1] = L1[r1] = L1[p1] = L1[u1] = !0, L1[u] = L1[h] = L1[T] = L1[d] = L1[k] = L1[p] = L1[C] = L1[g] = L1[f] = L1[L] = L1[y] = L1[V] = L1[z] = L1[M] = L1[B] = !1;
|
|
14188
14188
|
var z1 = {};
|
|
14189
14189
|
z1[u] = z1[h] = z1[T] = z1[k] = z1[d] = z1[p] = z1[Z] = z1[F] = z1[W] = z1[Q] = z1[n1] = z1[f] = z1[L] = z1[y] = z1[V] = z1[z] = z1[M] = z1[b] = z1[t1] = z1[r1] = z1[p1] = z1[u1] = !0, z1[C] = z1[g] = z1[B] = !1;
|
|
14190
|
-
var Z1 = typeof f3 == "object" && f3 && f3.Object === Object && f3, $1 = typeof self == "object" && self && self.Object === Object && self, k1 = Z1 || $1 || Function("return this")(),
|
|
14190
|
+
var Z1 = typeof f3 == "object" && f3 && f3.Object === Object && f3, $1 = typeof self == "object" && self && self.Object === Object && self, k1 = Z1 || $1 || Function("return this")(), H2 = t && !t.nodeType && t, xe = H2 && !0 && e && !e.nodeType && e, ft = xe && xe.exports === H2, h2 = ft && Z1.process, De = (function() {
|
|
14191
14191
|
try {
|
|
14192
14192
|
return h2 && h2.binding("util");
|
|
14193
14193
|
} catch {
|
|
@@ -14414,15 +14414,15 @@ function bM() {
|
|
|
14414
14414
|
return N && co(I, W5(I), N);
|
|
14415
14415
|
}
|
|
14416
14416
|
function P4(N, I, e1, g1, W1, O1, t2) {
|
|
14417
|
-
var
|
|
14418
|
-
if (g1 && (
|
|
14419
|
-
return
|
|
14417
|
+
var V2;
|
|
14418
|
+
if (g1 && (V2 = O1 ? g1(N, W1, O1, t2) : g1(N)), V2 !== void 0)
|
|
14419
|
+
return V2;
|
|
14420
14420
|
if (!q5(N))
|
|
14421
14421
|
return N;
|
|
14422
14422
|
var te = _0(N);
|
|
14423
14423
|
if (te) {
|
|
14424
|
-
if (
|
|
14425
|
-
return Nx(N,
|
|
14424
|
+
if (V2 = Ax(N), !I)
|
|
14425
|
+
return Nx(N, V2);
|
|
14426
14426
|
} else {
|
|
14427
14427
|
var X2 = E0(N), Te = X2 == g || X2 == m;
|
|
14428
14428
|
if ($x(N))
|
|
@@ -14430,23 +14430,23 @@ function bM() {
|
|
|
14430
14430
|
if (X2 == y || X2 == u || Te && !O1) {
|
|
14431
14431
|
if (_1(N))
|
|
14432
14432
|
return O1 ? N : {};
|
|
14433
|
-
if (
|
|
14434
|
-
return Zx(N, w8(
|
|
14433
|
+
if (V2 = kx(Te ? {} : N), !I)
|
|
14434
|
+
return Zx(N, w8(V2, N));
|
|
14435
14435
|
} else {
|
|
14436
14436
|
if (!z1[X2])
|
|
14437
14437
|
return O1 ? N : {};
|
|
14438
|
-
|
|
14438
|
+
V2 = Fx(N, X2, P4, I);
|
|
14439
14439
|
}
|
|
14440
14440
|
}
|
|
14441
14441
|
t2 || (t2 = new yt());
|
|
14442
14442
|
var Be = t2.get(N);
|
|
14443
14443
|
if (Be)
|
|
14444
14444
|
return Be;
|
|
14445
|
-
if (t2.set(N,
|
|
14445
|
+
if (t2.set(N, V2), !te)
|
|
14446
14446
|
var Ve = e1 ? Rx(N) : W5(N);
|
|
14447
14447
|
return a4(Ve || N, function(Pe, Ae) {
|
|
14448
|
-
Ve && (Ae = Pe, Pe = N[Ae]), s9(
|
|
14449
|
-
}),
|
|
14448
|
+
Ve && (Ae = Pe, Pe = N[Ae]), s9(V2, Ae, P4(Pe, I, e1, g1, Ae, N, t2));
|
|
14449
|
+
}), V2;
|
|
14450
14450
|
}
|
|
14451
14451
|
function Q1(N) {
|
|
14452
14452
|
return q5(N) ? E1(N) : {};
|
|
@@ -14471,8 +14471,8 @@ function bM() {
|
|
|
14471
14471
|
return N === I ? !0 : N == null || I == null || !q5(N) && !a3(I) ? N !== N && I !== I : n9(N, I, Wt, e1, g1, W1);
|
|
14472
14472
|
}
|
|
14473
14473
|
function n9(N, I, e1, g1, W1, O1) {
|
|
14474
|
-
var t2 = _0(N),
|
|
14475
|
-
t2 || (te = E0(N), te = te == u ? y : te),
|
|
14474
|
+
var t2 = _0(N), V2 = _0(I), te = h, X2 = h;
|
|
14475
|
+
t2 || (te = E0(N), te = te == u ? y : te), V2 || (X2 = E0(I), X2 = X2 == u ? y : X2);
|
|
14476
14476
|
var Te = te == y && !_1(N), Be = X2 == y && !_1(I), Ve = te == X2;
|
|
14477
14477
|
if (Ve && !Te)
|
|
14478
14478
|
return O1 || (O1 = new yt()), t2 || Ux(N) ? uo(N, I, e1, g1, W1, O1) : Ex(N, I, te, e1, g1, W1, O1);
|
|
@@ -14496,9 +14496,9 @@ function bM() {
|
|
|
14496
14496
|
}
|
|
14497
14497
|
for (; ++W1 < O1; ) {
|
|
14498
14498
|
t2 = e1[W1];
|
|
14499
|
-
var
|
|
14499
|
+
var V2 = t2[0], te = N[V2], X2 = t2[1];
|
|
14500
14500
|
if (t2[2]) {
|
|
14501
|
-
if (te === void 0 && !(
|
|
14501
|
+
if (te === void 0 && !(V2 in N))
|
|
14502
14502
|
return !1;
|
|
14503
14503
|
} else {
|
|
14504
14504
|
var Te = new yt(), Be;
|
|
@@ -14598,8 +14598,8 @@ function bM() {
|
|
|
14598
14598
|
function co(N, I, e1, g1) {
|
|
14599
14599
|
e1 || (e1 = {});
|
|
14600
14600
|
for (var W1 = -1, O1 = I.length; ++W1 < O1; ) {
|
|
14601
|
-
var t2 = I[W1],
|
|
14602
|
-
s9(e1, t2,
|
|
14601
|
+
var t2 = I[W1], V2 = void 0;
|
|
14602
|
+
s9(e1, t2, V2 === void 0 ? N[t2] : V2);
|
|
14603
14603
|
}
|
|
14604
14604
|
return e1;
|
|
14605
14605
|
}
|
|
@@ -14607,14 +14607,14 @@ function bM() {
|
|
|
14607
14607
|
return co(N, ho(N), I);
|
|
14608
14608
|
}
|
|
14609
14609
|
function uo(N, I, e1, g1, W1, O1) {
|
|
14610
|
-
var t2 = W1 & a,
|
|
14611
|
-
if (
|
|
14610
|
+
var t2 = W1 & a, V2 = N.length, te = I.length;
|
|
14611
|
+
if (V2 != te && !(t2 && te > V2))
|
|
14612
14612
|
return !1;
|
|
14613
14613
|
var X2 = O1.get(N);
|
|
14614
14614
|
if (X2 && O1.get(I))
|
|
14615
14615
|
return X2 == I;
|
|
14616
14616
|
var Te = -1, Be = !0, Ve = W1 & l ? new ve() : void 0;
|
|
14617
|
-
for (O1.set(N, I), O1.set(I, N); ++Te <
|
|
14617
|
+
for (O1.set(N, I), O1.set(I, N); ++Te < V2; ) {
|
|
14618
14618
|
var Pe = N[Te], Ae = I[Te];
|
|
14619
14619
|
if (g1)
|
|
14620
14620
|
var o4 = t2 ? g1(Ae, Pe, Te, I, N, O1) : g1(Pe, Ae, Te, N, I, O1);
|
|
@@ -14657,16 +14657,16 @@ function bM() {
|
|
|
14657
14657
|
case M:
|
|
14658
14658
|
return N == I + "";
|
|
14659
14659
|
case f:
|
|
14660
|
-
var
|
|
14660
|
+
var V2 = m2;
|
|
14661
14661
|
case z:
|
|
14662
14662
|
var te = O1 & a;
|
|
14663
|
-
if (
|
|
14663
|
+
if (V2 || (V2 = wt), N.size != I.size && !te)
|
|
14664
14664
|
return !1;
|
|
14665
14665
|
var X2 = t2.get(N);
|
|
14666
14666
|
if (X2)
|
|
14667
14667
|
return X2 == I;
|
|
14668
14668
|
O1 |= l, t2.set(N, I);
|
|
14669
|
-
var Te = uo(
|
|
14669
|
+
var Te = uo(V2(N), V2(I), g1, W1, O1, t2);
|
|
14670
14670
|
return t2.delete(N), Te;
|
|
14671
14671
|
case b:
|
|
14672
14672
|
if (n0)
|
|
@@ -14675,11 +14675,11 @@ function bM() {
|
|
|
14675
14675
|
return !1;
|
|
14676
14676
|
}
|
|
14677
14677
|
function _x(N, I, e1, g1, W1, O1) {
|
|
14678
|
-
var t2 = W1 & a,
|
|
14678
|
+
var t2 = W1 & a, V2 = W5(N), te = V2.length, X2 = W5(I), Te = X2.length;
|
|
14679
14679
|
if (te != Te && !t2)
|
|
14680
14680
|
return !1;
|
|
14681
14681
|
for (var Be = te; Be--; ) {
|
|
14682
|
-
var Ve =
|
|
14682
|
+
var Ve = V2[Be];
|
|
14683
14683
|
if (!(t2 ? Ve in I : et.call(I, Ve)))
|
|
14684
14684
|
return !1;
|
|
14685
14685
|
}
|
|
@@ -14689,7 +14689,7 @@ function bM() {
|
|
|
14689
14689
|
var Ae = !0;
|
|
14690
14690
|
O1.set(N, I), O1.set(I, N);
|
|
14691
14691
|
for (var o4 = t2; ++Be < te; ) {
|
|
14692
|
-
Ve =
|
|
14692
|
+
Ve = V2[Be];
|
|
14693
14693
|
var R0 = N[Ve], U4 = I[Ve];
|
|
14694
14694
|
if (g1)
|
|
14695
14695
|
var xo = t2 ? g1(U4, R0, Ve, I, N, O1) : g1(R0, U4, Ve, N, I, O1);
|
|
@@ -26981,7 +26981,7 @@ function Dz(e) {
|
|
|
26981
26981
|
...Cc
|
|
26982
26982
|
],
|
|
26983
26983
|
end: /}/
|
|
26984
|
-
},
|
|
26984
|
+
}, H2 = {
|
|
26985
26985
|
match: [
|
|
26986
26986
|
/class\b/,
|
|
26987
26987
|
/\s+/,
|
|
@@ -27064,7 +27064,7 @@ function Dz(e) {
|
|
|
27064
27064
|
...r,
|
|
27065
27065
|
z1,
|
|
27066
27066
|
Z1,
|
|
27067
|
-
|
|
27067
|
+
H2,
|
|
27068
27068
|
xe,
|
|
27069
27069
|
ft,
|
|
27070
27070
|
$1,
|
|
@@ -28927,7 +28927,7 @@ function jz() {
|
|
|
28927
28927
|
function k1(K, d1) {
|
|
28928
28928
|
K.className !== void 0 && (K.scope = K.className, delete K.className);
|
|
28929
28929
|
}
|
|
28930
|
-
function
|
|
28930
|
+
function H2(K, d1) {
|
|
28931
28931
|
d1 && K.beginKeywords && (K.begin = "\\b(" + K.beginKeywords.split(" ").join("|") + ")(?!\\.)(?=\\b|\\s)", K.__beforeBegin = $1, K.keywords = K.keywords || K.beginKeywords, delete K.beginKeywords, K.relevance === void 0 && (K.relevance = 0));
|
|
28932
28932
|
}
|
|
28933
28933
|
function xe(K, d1) {
|
|
@@ -29109,7 +29109,7 @@ function jz() {
|
|
|
29109
29109
|
wt,
|
|
29110
29110
|
De
|
|
29111
29111
|
].forEach((W2) => W2(I1, A1)), K.compilerExtensions.forEach((W2) => W2(I1, A1)), I1.__beforeBegin = null, [
|
|
29112
|
-
|
|
29112
|
+
H2,
|
|
29113
29113
|
// do this later so compiler extensions that come earlier have access to the
|
|
29114
29114
|
// raw array if they wanted to perhaps manipulate it, etc.
|
|
29115
29115
|
xe,
|
|
@@ -32115,7 +32115,7 @@ function eE(e) {
|
|
|
32115
32115
|
codeTextData: k,
|
|
32116
32116
|
data: k,
|
|
32117
32117
|
codeFlowValue: k,
|
|
32118
|
-
definition: l(
|
|
32118
|
+
definition: l(H2),
|
|
32119
32119
|
definitionDestinationString: a,
|
|
32120
32120
|
definitionLabelString: a,
|
|
32121
32121
|
definitionTitleString: a,
|
|
@@ -32520,7 +32520,7 @@ function eE(e) {
|
|
|
32520
32520
|
value: ""
|
|
32521
32521
|
};
|
|
32522
32522
|
}
|
|
32523
|
-
function
|
|
32523
|
+
function H2() {
|
|
32524
32524
|
return {
|
|
32525
32525
|
type: "definition",
|
|
32526
32526
|
identifier: "",
|
|
@@ -50252,7 +50252,7 @@ let hm = _e.RenderStrategy, Z6 = o({ props: { as: { type: [Object, String], defa
|
|
|
50252
50252
|
const qi = /* @__PURE__ */ o({
|
|
50253
50253
|
__name: "ClientOnly",
|
|
50254
50254
|
setup(e) {
|
|
50255
|
-
const t =
|
|
50255
|
+
const t = v2();
|
|
50256
50256
|
return (i, r) => w(t).clientOnly ? (v(), j(a2(w(t)?.clientOnly), { key: 0 }, {
|
|
50257
50257
|
default: O(() => [
|
|
50258
50258
|
b1(i.$slots, "default")
|
|
@@ -50377,7 +50377,7 @@ const qi = /* @__PURE__ */ o({
|
|
|
50377
50377
|
titleTag: {}
|
|
50378
50378
|
},
|
|
50379
50379
|
setup(e) {
|
|
50380
|
-
const t = e, { t: i } = y1(), r =
|
|
50380
|
+
const t = e, { t: i } = y1(), r = v2(), n = A(() => r.tabularApiDataserviceId === t.dataservice.id);
|
|
50381
50381
|
return (l, a) => (v(), j(z5, {
|
|
50382
50382
|
"article-class": {
|
|
50383
50383
|
"border-tabular-api": n.value,
|
|
@@ -50621,7 +50621,7 @@ const eP = { class: "text-sm text-gray-plain font-bold mb-0" }, tP = { class: "l
|
|
|
50621
50621
|
quality: {}
|
|
50622
50622
|
},
|
|
50623
50623
|
setup(e) {
|
|
50624
|
-
const { t } = y1(), i =
|
|
50624
|
+
const { t } = y1(), i = v2();
|
|
50625
50625
|
return (r, n) => (v(), _(h1, null, [
|
|
50626
50626
|
S("p", eP, R(w(t)("Qualité des métadonnées :")), 1),
|
|
50627
50627
|
S("ul", tP, [
|
|
@@ -50868,7 +50868,7 @@ const eP = { class: "text-sm text-gray-plain font-bold mb-0" }, tP = { class: "l
|
|
|
50868
50868
|
}
|
|
50869
50869
|
}), pm = /* @__PURE__ */ Symbol("tabular-profile");
|
|
50870
50870
|
async function Cm(e) {
|
|
50871
|
-
const t =
|
|
50871
|
+
const t = v2(), i = A(() => F1(e)), r = A(
|
|
50872
50872
|
() => i.value ? `${t.tabularApiUrl}/api/resources/${i.value}/profile/` : null
|
|
50873
50873
|
), { data: n, error: l, status: a, refresh: c } = await ut(r, { raw: !0 });
|
|
50874
50874
|
return { resourceId: i, data: n, error: l, status: a, refresh: c };
|
|
@@ -51719,7 +51719,8 @@ function e$(e) {
|
|
|
51719
51719
|
return "organization" in e || "owner" in e;
|
|
51720
51720
|
}
|
|
51721
51721
|
function Vm(e, t) {
|
|
51722
|
-
|
|
51722
|
+
const i = v2();
|
|
51723
|
+
return i.getResourceExternalUrl ? i.getResourceExternalUrl(e, t) : `${e.page}${e$(t) ? "/community-resources" : ""}?resource_id=${t.id}`;
|
|
51723
51724
|
}
|
|
51724
51725
|
function Wi(e) {
|
|
51725
51726
|
return e.filesize ? e.filesize : "analysis:content-length" in e.extras ? e.extras["analysis:content-length"] : null;
|
|
@@ -51749,7 +51750,7 @@ const as1 = (e) => {
|
|
|
51749
51750
|
const t = e.extras;
|
|
51750
51751
|
if (!t || !("check:cors:allow-origin" in t))
|
|
51751
51752
|
return "unknown";
|
|
51752
|
-
const i = t["check:cors:allow-origin"], r = t["check:cors:allow-methods"], l =
|
|
51753
|
+
const i = t["check:cors:allow-origin"], r = t["check:cors:allow-methods"], l = v2().trustedDomains ?? [], a = i === "*", c = i ? l.some((p) => {
|
|
51753
51754
|
try {
|
|
51754
51755
|
const C = new URL(i).hostname;
|
|
51755
51756
|
return C === p || C.endsWith(`.${p}`);
|
|
@@ -51829,14 +51830,14 @@ function u$(e) {
|
|
|
51829
51830
|
})) : [] : [];
|
|
51830
51831
|
}
|
|
51831
51832
|
const Mm = () => {
|
|
51832
|
-
const e =
|
|
51833
|
+
const e = v2();
|
|
51833
51834
|
return (t) => {
|
|
51834
51835
|
const i = t.extras["check:status"], r = typeof i == "number" && i >= 400;
|
|
51835
51836
|
return e.tabularApiUrl && t.extras["analysis:parsing:parsing_table"] && !r$(t) && !r && (e.tabularAllowRemote || t.filetype === "file");
|
|
51836
51837
|
};
|
|
51837
51838
|
}, h$ = ["url", "doi", "www:link", "www:link-1.0-http--link", "www:link-1.0-http--partners", "www:link-1.0-http--related", "www:link-1.0-http--samples"];
|
|
51838
51839
|
function Rr(e, t) {
|
|
51839
|
-
const i =
|
|
51840
|
+
const i = v2(), { t: r } = y1(), n = Mm(), l = A(() => {
|
|
51840
51841
|
const V = F1(e);
|
|
51841
51842
|
return n(V);
|
|
51842
51843
|
}), a = A(() => {
|
|
@@ -51891,7 +51892,7 @@ const d$ = { class: "fr-pl-0" }, p$ = {
|
|
|
51891
51892
|
dataset: {}
|
|
51892
51893
|
},
|
|
51893
51894
|
setup(e) {
|
|
51894
|
-
const t = e, { t: i } = y1(), r =
|
|
51895
|
+
const t = e, { t: i } = y1(), r = v2(), { generatedFormats: n, wfsFormats: l, defaultWfsProjection: a } = Rr(
|
|
51895
51896
|
() => t.resource,
|
|
51896
51897
|
() => t.dataset
|
|
51897
51898
|
), c = A(() => Wi(t.resource)), u = A(
|
|
@@ -52423,7 +52424,7 @@ const pa = /* @__PURE__ */ pe(cU, [["render", hU]]), dU = {
|
|
|
52423
52424
|
tagUrl: { type: Function }
|
|
52424
52425
|
},
|
|
52425
52426
|
setup(e) {
|
|
52426
|
-
const t = e, { t: i } = y1(), r =
|
|
52427
|
+
const t = e, { t: i } = y1(), r = v2();
|
|
52427
52428
|
function n(l) {
|
|
52428
52429
|
return t.tagUrl ? t.tagUrl(l) : `${r.baseUrl.endsWith("/") ? r.baseUrl.slice(0, -1) : r.baseUrl}/datasets/search?tag=${l}`;
|
|
52429
52430
|
}
|
|
@@ -52669,7 +52670,7 @@ const pa = /* @__PURE__ */ pe(cU, [["render", hU]]), dU = {
|
|
|
52669
52670
|
},
|
|
52670
52671
|
async setup(e) {
|
|
52671
52672
|
let t, i;
|
|
52672
|
-
const r = e, { t: n } = y1(), l =
|
|
52673
|
+
const r = e, { t: n } = y1(), l = v2(), { data: a } = ([t, i] = dt(() => ut(`/api/2/datasets/${r.dataset.id}/schemas/`)), t = await t, i(), t), c = a;
|
|
52673
52674
|
return (u, h) => w(c) && w(c).length ? (v(), _("div", zU, [
|
|
52674
52675
|
S("h3", NU, R(w(n)("Schéma de données")), 1),
|
|
52675
52676
|
S("div", ZU, [
|
|
@@ -52727,7 +52728,7 @@ function TU(e, t) {
|
|
|
52727
52728
|
return i.pathname = `${i.pathname}${t}`, i.toString();
|
|
52728
52729
|
}
|
|
52729
52730
|
function BU(e, t) {
|
|
52730
|
-
const i =
|
|
52731
|
+
const i = v2(), r = TU(i.baseUrl, "oembed.js");
|
|
52731
52732
|
return `<div data-udata-${e}="${t}"></div><script data-udata="${i.baseUrl}" src="${r}" async defer><\/script>`;
|
|
52732
52733
|
}
|
|
52733
52734
|
const AU = { class: "space-y-1 py-6" }, kU = { class: "flex items-center space-x-2 mb-1" }, FU = { class: "mb-0 uppercase text-gray-plain text-sm font-bold" }, DU = ["value"], ps1 = /* @__PURE__ */ o({
|
|
@@ -52769,7 +52770,7 @@ const AU = { class: "space-y-1 py-6" }, kU = { class: "flex items-center space-x
|
|
|
52769
52770
|
const t = e, i = J(null);
|
|
52770
52771
|
return J1(async () => {
|
|
52771
52772
|
await Promise.resolve({ });
|
|
52772
|
-
const r = await import("./leaflet-src-
|
|
52773
|
+
const r = await import("./leaflet-src-DNSrX3rh.js").then((a) => a.l);
|
|
52773
52774
|
if (!i.value) return;
|
|
52774
52775
|
const n = r.map(i.value);
|
|
52775
52776
|
r.tileLayer("https://tile.openstreetmap.org/{z}/{x}/{y}.png", {
|
|
@@ -54612,7 +54613,7 @@ const tj = { class: "relative" }, Ls1 = /* @__PURE__ */ o({
|
|
|
54612
54613
|
});
|
|
54613
54614
|
let Hn = null;
|
|
54614
54615
|
function nj() {
|
|
54615
|
-
const e =
|
|
54616
|
+
const e = v2();
|
|
54616
54617
|
return async () => Hn || await (Hn = Ot("api/1/datasets/schemas/", {
|
|
54617
54618
|
baseURL: e.apiBase
|
|
54618
54619
|
}));
|
|
@@ -54641,11 +54642,11 @@ function cj(e, t) {
|
|
|
54641
54642
|
return t && e.find((i) => t.name === i.name) || null;
|
|
54642
54643
|
}
|
|
54643
54644
|
function Lw() {
|
|
54644
|
-
const e =
|
|
54645
|
+
const e = v2();
|
|
54645
54646
|
return (t) => `${e.schemaDocumentationUrl}${t}/`;
|
|
54646
54647
|
}
|
|
54647
54648
|
function uj() {
|
|
54648
|
-
const e =
|
|
54649
|
+
const e = v2();
|
|
54649
54650
|
return (t, i) => {
|
|
54650
54651
|
if (!t.schema || !t.schema.name)
|
|
54651
54652
|
return null;
|
|
@@ -54883,7 +54884,7 @@ async function Aj(e, t, i, r) {
|
|
|
54883
54884
|
});
|
|
54884
54885
|
}
|
|
54885
54886
|
function ys1() {
|
|
54886
|
-
const e =
|
|
54887
|
+
const e = v2();
|
|
54887
54888
|
return (t) => Ot(`${e.tabularApiUrl}/api/resources/${t}/profile/`);
|
|
54888
54889
|
}
|
|
54889
54890
|
const kj = "data:image/svg+xml,%3csvg%20width='208'%20height='282'%20viewBox='0%200%20208%20282'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M151.061%20143.285C146.388%20142.719%20144.831%20139.887%20144.265%20135.781C143.132%20127.71%20141.716%20119.64%20140.3%20111.428H138.743C134.354%20112.419%20129.681%20111.994%20125.575%20110.012C125.009%20109.729%20124.301%20109.587%20123.593%20109.587C122.885%20109.587%20122.177%20109.871%20121.752%20110.437C112.408%20117.516%20106.744%20126.436%20108.302%20138.471C109.01%20142.294%20110.284%20145.833%20112.266%20149.232C119.062%20161.974%20127.133%20173.868%20136.477%20184.911C137.327%20186.044%20138.318%20186.893%20139.451%20187.46C140.583%20188.026%20141.999%20188.309%20143.273%20188.309C162.529%20188.593%20181.785%20189.159%20201.041%20189.584C202.032%20189.584%20203.023%20189.584%20204.014%20190.008C205.147%20190.292%20206.138%20191%20206.846%20191.849C207.554%20192.84%20207.979%20193.831%20207.979%20195.105C207.979%20196.38%20207.412%20197.512%20206.563%20198.362C205.713%20199.212%20204.58%20199.919%20203.448%20200.061C202.032%20200.203%20200.616%20200.203%20199.2%20200.061L143.273%20198.928H140.159C139.734%20200.061%20139.309%20200.911%20138.884%20201.902C139.309%20202.185%20139.592%20202.468%20139.875%20202.468C146.105%20202.751%20152.193%20203.034%20158.282%20203.176C169.042%20203.459%20179.803%20203.884%20190.705%20204.167C192.262%20204.167%20193.82%20204.45%20195.236%20204.733C196.368%20205.017%20197.501%20205.583%20198.351%20206.574C199.059%20207.565%20199.483%20208.698%20199.483%20209.972C199.483%20211.105%20198.917%20212.237%20198.067%20213.087C197.218%20213.937%20196.227%20214.503%20195.094%20214.786C194.245%20214.928%20193.254%20215.069%20192.404%20214.928L138.884%20213.087C137.752%20213.087%20136.619%20212.945%20135.061%20212.804L128.69%20230.644C129.398%20231.068%20130.248%20231.493%20130.955%20231.776L184.192%20251.032C185.466%20251.457%20186.599%20251.881%20187.732%20252.448C189.147%20253.014%20190.422%20254.005%20191.13%20255.421C191.838%20256.837%20192.121%20258.395%20191.696%20259.952C190.705%20265.332%20189.714%20270.571%20188.581%20275.81C187.307%20281.473%20184.475%20283.03%20179.095%20281.331C163.662%20276.376%20148.371%20271.279%20132.938%20266.182L53.9324%20240.271C46.4283%20237.723%2045.4372%20236.165%2047.561%20228.378C47.9857%20226.254%2048.5521%20224.131%2049.26%20222.148C52.3749%20215.069%2050.8175%20207.848%2049.8264%20200.627C47.561%20183.071%2046.1451%20165.372%2047.7026%20147.674C49.6848%20125.02%2057.7552%20104.774%2072.905%2087.6416C78.1437%2081.5534%2084.9398%2077.0228%2092.4439%2074.3326C101.081%2071.2178%20110.001%2068.6692%20118.779%2065.979C120.053%2065.5543%20121.894%2065.1294%20122.885%2065.6958C126.283%2067.5364%20129.256%2066.2622%20132.371%2065.2711C132.371%2064.9879%20132.654%2064.8464%20132.654%2064.5632C132.654%2058.6166%20133.787%2056.9175%20139.592%2056.2096C149.079%2054.9353%20158.423%2053.6611%20167.768%2052.3868C173.148%2051.6789%20175.272%2053.2362%20176.405%2058.6165C179.52%2073.3414%20182.493%2088.0665%20185.466%20102.65C187.024%20110.012%20188.44%20117.233%20189.855%20124.596C190.563%20127.994%20191.13%20131.392%20187.59%20134.082C187.024%20134.507%20186.882%20135.923%20186.882%20136.914C186.882%20139.321%20187.024%20141.727%20186.882%20144.276C186.882%20148.099%20185.325%20150.081%20181.643%20150.789C174.422%20152.205%20167.343%20153.621%20160.122%20154.895C156.441%20155.461%20153.892%20153.904%20152.618%20150.364C151.91%20148.382%20151.344%20146.258%20150.494%20143.71L151.061%20143.285ZM114.39%2078.0138C113.682%2078.0138%20112.974%2078.1553%20112.266%2078.4385C106.319%2080.5623%20100.373%2082.5446%2094.5677%2084.9516C88.7627%2087.5001%2083.6656%2091.323%2079.7011%2096.2785C74.3209%20102.65%2069.7901%20109.729%2066.392%20117.375C60.8701%20129.976%2058.0384%20143.71%2058.0384%20157.444C58.0384%20167.779%2058.7463%20178.257%2059.4542%20188.593C59.879%20194.681%2060.8701%20200.769%2061.7196%20206.999L118.354%20227.387C118.637%20226.962%20118.921%20226.396%20119.062%20225.83C122.602%20215.919%20126%20206.008%20129.54%20196.097C129.823%20195.389%20129.823%20194.681%20129.54%20194.114C129.398%20193.406%20128.973%20192.84%20128.407%20192.415C118.496%20180.664%20109.717%20167.921%20102.213%20154.47C94.143%20140.17%2095.2756%20123.888%20105.611%20111.287C108.443%20107.747%20111.841%20104.49%20114.673%20101.517C113.965%2097.6943%20112.691%2094.013%20112.549%2090.1902C112.549%2086.509%20113.54%2082.403%20114.107%2078.1554L114.39%2078.0138ZM58.4632%20230.219L178.953%20269.863L180.652%20260.943C160.689%20253.722%20141.008%20246.501%20121.186%20239.422C101.364%20232.343%2081.8249%20224.98%2061.7196%20218.184C60.5869%20222.29%2059.5959%20225.971%2058.4632%20230.077V230.219ZM144.265%2065.8375C160.122%2074.3326%20162.388%2093.3052%20150.211%20105.482C151.627%20114.26%20153.043%20122.755%20154.459%20131.392L179.661%20125.02C175.414%20104.066%20171.166%2083.5356%20166.918%2062.864L144.265%2065.979V65.8375ZM123.31%2090.615C123.31%2097.5528%20130.389%20103.074%20138.176%20100.384C141.291%2099.1101%20143.981%2096.8448%20145.539%2093.7299C147.096%2090.7566%20147.663%2087.2169%20146.813%2083.8188C146.388%2081.8366%20145.397%2080.1376%20144.123%2078.7218C142.707%2077.3059%20141.008%2076.1731%20139.167%2075.6068C137.327%2075.0404%20135.203%2075.0405%20133.362%2075.4652C131.38%2075.89%20129.681%2076.8811%20128.265%2078.297C125.009%2081.1287%20123.168%2084.8099%20123.31%2090.4733V90.615ZM161.821%20140.453C161.821%20143.143%20163.096%20143.285%20164.653%20143.002C168.476%20142.294%20172.44%20141.444%20176.263%20140.595C176.405%20140.595%20176.688%20140.312%20176.971%20139.887L176.546%20136.631L161.68%20140.312L161.821%20140.453Z'%20fill='%23102185'/%3e%3cpath%20d='M29.8625%2091.1813C26.8892%2091.1813%2024.907%2089.1991%2024.199%2086.0842C23.3495%2081.5535%2022.2168%2077.0227%2020.9426%2072.6335C18.6772%2065.5542%2014.8543%2058.8997%209.7572%2053.5194C7.77499%2051.6788%205.79279%2049.9798%203.5274%2048.2808C-1.00337%2044.7412%20-1.14495%2041.343%202.96106%2037.3786C5.65121%2034.6884%208.48293%2031.9984%2011.3147%2029.3082C16.2702%2024.3527%2019.6683%2018.123%2021.0841%2011.3269C21.6505%209.06151%2022.0752%206.79603%2022.7832%204.67224C23.7743%201.55734%2025.7565%200%2028.1634%200C30.5704%200%2032.6942%201.84058%2033.6854%205.09706C33.9685%206.37134%2034.2517%207.64554%2034.3933%208.91982C34.9596%2012.7426%2036.3755%2016.4238%2038.4993%2019.6803C40.6231%2022.9368%2043.4548%2025.6271%2046.7113%2027.6093C49.6846%2029.4499%2052.6579%2031.1489%2055.7728%2032.7063C60.5868%2035.2549%2061.4363%2038.7944%2058.0382%2043.042C55.9144%2045.7322%2053.7906%2048.4224%2051.3837%2051.1125C44.0212%2059.4661%2038.6409%2068.8108%2036.9418%2079.9961C36.5171%2083.111%2035.526%2085.9427%2033.9685%2088.6328C33.5437%2089.3408%2032.8358%2089.907%2032.1279%2090.3318C31.42%2090.7566%2030.5704%2091.0397%2029.7209%2091.1813H29.8625ZM29.7209%2065.6958C33.6853%2055.5016%2040.0567%2047.856%2046.8529%2039.9272C38.924%2036.5291%2032.411%2030.5825%2028.1634%2023.0784C24.7654%2031.0072%2019.3851%2036.8123%2013.2969%2042.1925C20.8009%2048.4223%2025.6149%2056.3511%2029.7209%2065.6958Z'%20fill='%23102185'/%3e%3c/svg%3e", Fj = { class: "flex flex-col items-center py-12" }, Dj = ["src"], Oj = { class: "fr-text--bold mb-1" }, Ij = { class: "text-sm text-gray-medium mb-0 text-center max-w-lg" }, F7 = /* @__PURE__ */ o({
|
|
@@ -54912,7 +54913,7 @@ const kj = "data:image/svg+xml,%3csvg%20width='208'%20height='282'%20viewBox='0%
|
|
|
54912
54913
|
resource: {}
|
|
54913
54914
|
},
|
|
54914
54915
|
setup(e) {
|
|
54915
|
-
const t = e, { t: i } = y1(), r = J([]), n = J([]), l = J(!0), a = J(!1), c = J(null), u = J(0), h =
|
|
54916
|
+
const t = e, { t: i } = y1(), r = J([]), n = J([]), l = J(!0), a = J(!1), c = J(null), u = J(0), h = v2(), d = A(() => h.tabularApiPageSize || 15), p = J(1);
|
|
54916
54917
|
function C(y) {
|
|
54917
54918
|
return y === c.value?.column;
|
|
54918
54919
|
}
|
|
@@ -60255,7 +60256,7 @@ const cY = {
|
|
|
60255
60256
|
canEdit: { type: Boolean, default: !1 }
|
|
60256
60257
|
},
|
|
60257
60258
|
setup(e) {
|
|
60258
|
-
const t = ["url", "doi", "www:link", " www:link-1.0-http--link", "www:link-1.0-http--partners", "www:link-1.0-http--related", "www:link-1.0-http--samples"], i = e, r =
|
|
60259
|
+
const t = ["url", "doi", "www:link", " www:link-1.0-http--link", "www:link-1.0-http--partners", "www:link-1.0-http--related", "www:link-1.0-http--samples"], i = e, r = v2(), n = lt(() => import("./MapContainer.client-CbfoAPCF.js")), l = lt(() => import("./Pmtiles.client-Diw2dwhY.js")), a = lt(() => import("./JsonPreview.client-BHZx8aen.js")), c = lt(() => import("./PdfPreview.client-BWq1dMvs.js")), u = lt(() => import("./XmlPreview.client-HUxB9uqG.js")), h = lt(() => import("./ImagePreview.client-CAvNUnVD.js")), d = lt(() => import("./Datafair.client-CCziAlBg.js")), { t: p } = y1(), C = Mm(), g = A(() => {
|
|
60259
60260
|
const C1 = i.resource.format?.toLowerCase();
|
|
60260
60261
|
return C1 === "json" || C1 === "pdf" || C1 === "xml" || E6(C1);
|
|
60261
60262
|
}), m = A(() => C(i.resource)), f = A(() => i.resource.extras["analysis:parsing:pmtiles_url"] || i.resource.format === "pmtiles"), L = A(() => ts(i.dataset.organization) && i.resource.extras.datafairEmbed), y = A(() => ts(i.dataset.organization) && i.resource.extras.apidocUrl), H = A(() => _r(i.resource.format) ? i.resource.format : p("Fichier")), V = A(() => Hm(i.resource)), z = A(() => V.value === "wms"), M = J(i.expandedOnMount), b = () => {
|
|
@@ -60723,7 +60724,7 @@ function dL(e, t) {
|
|
|
60723
60724
|
return { debounced: r, flush: l };
|
|
60724
60725
|
}
|
|
60725
60726
|
async function fX(e) {
|
|
60726
|
-
const t =
|
|
60727
|
+
const t = v2(), i = J(""), { debounced: r, flush: n } = dL(i, t.searchDebounce ?? 300), l = A(() => F1(e).id), a = A(() => `/api/2/datasets/${l.value}/resources/`), c = (r1) => A(() => ({
|
|
60727
60728
|
type: r1,
|
|
60728
60729
|
page_size: Xu,
|
|
60729
60730
|
q: r.value || void 0
|
|
@@ -61151,7 +61152,7 @@ const WX = { class: "flex min-h-0 flex-1 flex-col" }, jX = { class: "text-xs bre
|
|
|
61151
61152
|
},
|
|
61152
61153
|
async setup(e) {
|
|
61153
61154
|
let t, i;
|
|
61154
|
-
const r = e, { t: n } = y1(), l =
|
|
61155
|
+
const r = e, { t: n } = y1(), l = v2(), a = A(
|
|
61155
61156
|
() => `${l.tabularApiUrl}/api/resources/${r.resourceId}/data/`
|
|
61156
61157
|
), { data: c, error: u, status: h } = ([t, i] = dt(() => gm(() => r.resourceId)), t = await t, i(), t), d = A(() => c.value?.profile?.header ?? []), {
|
|
61157
61158
|
columnTypesMap: p,
|
|
@@ -61179,9 +61180,9 @@ const WX = { class: "flex min-h-0 flex-1 flex-col" }, jX = { class: "text-xs bre
|
|
|
61179
61180
|
n1.value = !0;
|
|
61180
61181
|
const Z1 = t1.value;
|
|
61181
61182
|
try {
|
|
61182
|
-
const $1 = W.value + 1, k1 = { ...V.value, page: $1 },
|
|
61183
|
+
const $1 = W.value + 1, k1 = { ...V.value, page: $1 }, H2 = await Ot(a.value, { params: k1 });
|
|
61183
61184
|
if (Z1 !== t1.value) return;
|
|
61184
|
-
F.value = [...F.value, ...
|
|
61185
|
+
F.value = [...F.value, ...H2.data], W.value = $1, Q.value = F.value.length < z.value.meta.total;
|
|
61185
61186
|
} finally {
|
|
61186
61187
|
n1.value = !1;
|
|
61187
61188
|
}
|
|
@@ -61211,8 +61212,8 @@ const WX = { class: "flex min-h-0 flex-1 flex-col" }, jX = { class: "text-xs bre
|
|
|
61211
61212
|
const T1 = A(() => {
|
|
61212
61213
|
const Z1 = [];
|
|
61213
61214
|
for (const [$1, k1] of Object.entries(H.value)) {
|
|
61214
|
-
const
|
|
61215
|
-
k1.in?.length &&
|
|
61215
|
+
const H2 = [];
|
|
61216
|
+
k1.in?.length && H2.push(`= ${k1.in.join(", ")}`), k1.exact != null && (C($1) === "boolean" ? H2.push(`= ${k1.exact === "true" ? n("Vrai") : n("Faux")}`) : H2.push(`= ${k1.exact}`)), k1.contains && H2.push(`${n("contient")} "${k1.contains}"`), k1.null === "only" ? H2.push(n("null uniquement")) : k1.null === "exclude" && H2.push(n("sans null")), k1.min != null && k1.max != null ? H2.push(`${k1.min} – ${k1.max}`) : k1.min != null ? H2.push(`≥ ${k1.min}`) : k1.max != null && H2.push(`≤ ${k1.max}`), H2.length && Z1.push({ column: $1, label: H2.join(", ") });
|
|
61216
61217
|
}
|
|
61217
61218
|
return Z1;
|
|
61218
61219
|
});
|
|
@@ -62869,20 +62870,20 @@ const WX = { class: "flex min-h-0 flex-1 flex-col" }, jX = { class: "text-xs bre
|
|
|
62869
62870
|
async setup(e) {
|
|
62870
62871
|
let t, i;
|
|
62871
62872
|
const r = lt(
|
|
62872
|
-
() => import("./JsonPreview.client-
|
|
62873
|
+
() => import("./JsonPreview.client-BHZx8aen.js")
|
|
62873
62874
|
), n = lt(
|
|
62874
|
-
() => import("./PdfPreview.client-
|
|
62875
|
+
() => import("./PdfPreview.client-BWq1dMvs.js")
|
|
62875
62876
|
), l = lt(
|
|
62876
|
-
() => import("./XmlPreview.client-
|
|
62877
|
+
() => import("./XmlPreview.client-HUxB9uqG.js")
|
|
62877
62878
|
), a = lt(
|
|
62878
|
-
() => import("./ImagePreview.client-
|
|
62879
|
+
() => import("./ImagePreview.client-CAvNUnVD.js")
|
|
62879
62880
|
), c = lt(
|
|
62880
|
-
() => import("./Datafair.client-
|
|
62881
|
+
() => import("./Datafair.client-CCziAlBg.js")
|
|
62881
62882
|
), u = lt(
|
|
62882
|
-
() => import("./MapContainer.client-
|
|
62883
|
+
() => import("./MapContainer.client-CbfoAPCF.js")
|
|
62883
62884
|
), h = lt(
|
|
62884
|
-
() => import("./Pmtiles.client-
|
|
62885
|
-
), d = e, { t: p } = y1(), C =
|
|
62885
|
+
() => import("./Pmtiles.client-Diw2dwhY.js")
|
|
62886
|
+
), d = e, { t: p } = y1(), C = v2(), g = S5(), m = dl(), {
|
|
62886
62887
|
previewKind: f,
|
|
62887
62888
|
hasTabularData: L,
|
|
62888
62889
|
hasPmtiles: y,
|
|
@@ -63333,7 +63334,7 @@ const WX = { class: "flex min-h-0 flex-1 flex-col" }, jX = { class: "text-xs bre
|
|
|
63333
63334
|
});
|
|
63334
63335
|
let Zn = null;
|
|
63335
63336
|
function D11() {
|
|
63336
|
-
const e =
|
|
63337
|
+
const e = v2(), { locale: t } = y1();
|
|
63337
63338
|
return async () => Zn || await (Zn = Ot("api/1/reuses/types/", {
|
|
63338
63339
|
baseURL: e.apiBase,
|
|
63339
63340
|
query: { lang: t }
|
|
@@ -63564,7 +63565,7 @@ const P11 = { class: "flex flex-wrap items-center gap-1" }, $11 = { class: "text
|
|
|
63564
63565
|
showLinks: { type: Boolean }
|
|
63565
63566
|
},
|
|
63566
63567
|
setup(e) {
|
|
63567
|
-
const { t } = y1(), i =
|
|
63568
|
+
const { t } = y1(), i = v2(), r = Lw();
|
|
63568
63569
|
return (n, l) => (v(), _("div", {
|
|
63569
63570
|
id: e.id,
|
|
63570
63571
|
class: c1(["p-4 relative border bg-white hover:bg-gray-some", {
|
|
@@ -64226,7 +64227,7 @@ const ps = (e) => typeof e < "u", R4 = (e) => typeof e == "function", Th = (e, t
|
|
|
64226
64227
|
function q21(e) {
|
|
64227
64228
|
return e.type === "mouseup" || e.type === "click" || e.type === "contextmenu";
|
|
64228
64229
|
}
|
|
64229
|
-
const
|
|
64230
|
+
const S2 = Math.PI, P2 = 2 * S2, W21 = P2 + S2, W7 = Number.POSITIVE_INFINITY, j21 = S2 / 180, ae = S2 / 2, X4 = S2 / 4, Bh = S2 * 2 / 3, V4 = Math.log10, x0 = Math.sign;
|
|
64230
64231
|
function K9(e, t, i) {
|
|
64231
64232
|
return Math.abs(e - t) < i;
|
|
64232
64233
|
}
|
|
@@ -64259,10 +64260,10 @@ function bL(e, t, i) {
|
|
|
64259
64260
|
l = e[r][i], isNaN(l) || (t.min = Math.min(t.min, l), t.max = Math.max(t.max, l));
|
|
64260
64261
|
}
|
|
64261
64262
|
function Xt(e) {
|
|
64262
|
-
return e * (
|
|
64263
|
+
return e * (S2 / 180);
|
|
64263
64264
|
}
|
|
64264
64265
|
function Ga(e) {
|
|
64265
|
-
return e * (180 /
|
|
64266
|
+
return e * (180 / S2);
|
|
64266
64267
|
}
|
|
64267
64268
|
function kh(e) {
|
|
64268
64269
|
if (!ie(e))
|
|
@@ -64275,7 +64276,7 @@ function kh(e) {
|
|
|
64275
64276
|
function zL(e, t) {
|
|
64276
64277
|
const i = t.x - e.x, r = t.y - e.y, n = Math.sqrt(i * i + r * r);
|
|
64277
64278
|
let l = Math.atan2(r, i);
|
|
64278
|
-
return l < -0.5 *
|
|
64279
|
+
return l < -0.5 * S2 && (l += P2), {
|
|
64279
64280
|
angle: l,
|
|
64280
64281
|
distance: n
|
|
64281
64282
|
};
|
|
@@ -64284,7 +64285,7 @@ function J6(e, t) {
|
|
|
64284
64285
|
return Math.sqrt(Math.pow(t.x - e.x, 2) + Math.pow(t.y - e.y, 2));
|
|
64285
64286
|
}
|
|
64286
64287
|
function X21(e, t) {
|
|
64287
|
-
return (e - t + W21) % P2 -
|
|
64288
|
+
return (e - t + W21) % P2 - S2;
|
|
64288
64289
|
}
|
|
64289
64290
|
function Ue(e) {
|
|
64290
64291
|
return (e % P2 + P2) % P2;
|
|
@@ -64456,7 +64457,7 @@ const U3 = (e) => e === 0 || e === 1, Dh = (e, t, i) => -(Math.pow(2, 10 * (e -=
|
|
|
64456
64457
|
easeInOutQuint: (e) => (e /= 0.5) < 1 ? 0.5 * e * e * e * e * e : 0.5 * ((e -= 2) * e * e * e * e + 2),
|
|
64457
64458
|
easeInSine: (e) => -Math.cos(e * ae) + 1,
|
|
64458
64459
|
easeOutSine: (e) => Math.sin(e * ae),
|
|
64459
|
-
easeInOutSine: (e) => -0.5 * (Math.cos(
|
|
64460
|
+
easeInOutSine: (e) => -0.5 * (Math.cos(S2 * e) - 1),
|
|
64460
64461
|
easeInExpo: (e) => e === 0 ? 0 : Math.pow(2, 10 * (e - 1)),
|
|
64461
64462
|
easeOutExpo: (e) => e === 1 ? 1 : -Math.pow(2, -10 * e) + 1,
|
|
64462
64463
|
easeInOutExpo: (e) => U3(e) ? e : e < 0.5 ? 0.5 * Math.pow(2, 10 * (e * 2 - 1)) : 0.5 * (-Math.pow(2, -10 * (e * 2 - 1)) + 2),
|
|
@@ -64836,7 +64837,7 @@ function AL(e, t, i, r, n) {
|
|
|
64836
64837
|
d = n ? n / 2 : f, e.moveTo(i + Math.sin(L) * d, r - Math.cos(L) * f), L += Bh, e.lineTo(i + Math.sin(L) * d, r - Math.cos(L) * f), L += Bh, e.lineTo(i + Math.sin(L) * d, r - Math.cos(L) * f), e.closePath();
|
|
64837
64838
|
break;
|
|
64838
64839
|
case "rectRounded":
|
|
64839
|
-
h = f * 0.516, u = f - h, a = Math.cos(L + X4) * u, p = Math.cos(L + X4) * (n ? n / 2 - h : u), c = Math.sin(L + X4) * u, C = Math.sin(L + X4) * (n ? n / 2 - h : u), e.arc(i - p, r - c, h, L -
|
|
64840
|
+
h = f * 0.516, u = f - h, a = Math.cos(L + X4) * u, p = Math.cos(L + X4) * (n ? n / 2 - h : u), c = Math.sin(L + X4) * u, C = Math.sin(L + X4) * (n ? n / 2 - h : u), e.arc(i - p, r - c, h, L - S2, L - ae), e.arc(i + C, r - a, h, L - ae, L), e.arc(i + p, r + c, h, L, L + ae), e.arc(i - C, r + a, h, L + ae, L + S2), e.closePath();
|
|
64840
64841
|
break;
|
|
64841
64842
|
case "rect":
|
|
64842
64843
|
if (!m) {
|
|
@@ -64917,7 +64918,7 @@ function H5(e, t, i, r, n, l = {}) {
|
|
|
64917
64918
|
}
|
|
64918
64919
|
function gs(e, t) {
|
|
64919
64920
|
const { x: i, y: r, w: n, h: l, radius: a } = t;
|
|
64920
|
-
e.arc(i + a.topLeft, r + a.topLeft, a.topLeft, 1.5 *
|
|
64921
|
+
e.arc(i + a.topLeft, r + a.topLeft, a.topLeft, 1.5 * S2, S2, !0), e.lineTo(i, r + l - a.bottomLeft), e.arc(i + a.bottomLeft, r + l - a.bottomLeft, a.bottomLeft, S2, ae, !0), e.lineTo(i + n - a.bottomRight, r + l), e.arc(i + n - a.bottomRight, r + l - a.bottomRight, a.bottomRight, ae, 0, !0), e.lineTo(i + n, r + a.topRight), e.arc(i + n - a.topRight, r + a.topRight, a.topRight, 0, -ae, !0), e.lineTo(i + a.topLeft, r);
|
|
64921
64922
|
}
|
|
64922
64923
|
const Le1 = /^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/, xe1 = /^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;
|
|
64923
64924
|
function ye1(e, t) {
|
|
@@ -66816,7 +66817,7 @@ class Nt1 extends D4 {
|
|
|
66816
66817
|
function Zt1(e, t, i) {
|
|
66817
66818
|
let r = 1, n = 1, l = 0, a = 0;
|
|
66818
66819
|
if (t < P2) {
|
|
66819
|
-
const c = e, u = c + t, h = Math.cos(c), d = Math.sin(c), p = Math.cos(u), C = Math.sin(u), g = (V, z, M) => Cs(V, c, u, !0) ? 1 : Math.max(z, z * i, M, M * i), m = (V, z, M) => Cs(V, c, u, !0) ? -1 : Math.min(z, z * i, M, M * i), f = g(0, h, p), L = g(ae, d, C), y = m(
|
|
66820
|
+
const c = e, u = c + t, h = Math.cos(c), d = Math.sin(c), p = Math.cos(u), C = Math.sin(u), g = (V, z, M) => Cs(V, c, u, !0) ? 1 : Math.max(z, z * i, M, M * i), m = (V, z, M) => Cs(V, c, u, !0) ? -1 : Math.min(z, z * i, M, M * i), f = g(0, h, p), L = g(ae, d, C), y = m(S2, h, p), H = m(S2 + ae, d, C);
|
|
66820
66821
|
r = (f - y) / 2, n = (L - H) / 2, l = -(f + y) / 2, a = -(L + H) / 2;
|
|
66821
66822
|
}
|
|
66822
66823
|
return {
|
|
@@ -67178,7 +67179,7 @@ class JL extends D4 {
|
|
|
67178
67179
|
this.outerRadius = l - c * this.index, this.innerRadius = this.outerRadius - c;
|
|
67179
67180
|
}
|
|
67180
67181
|
updateElements(t, i, r, n) {
|
|
67181
|
-
const l = n === "reset", a = this.chart, u = a.options.animation, h = this._cachedMeta.rScale, d = h.xCenter, p = h.yCenter, C = h.getIndexAngle(0) - 0.5 *
|
|
67182
|
+
const l = n === "reset", a = this.chart, u = a.options.animation, h = this._cachedMeta.rScale, d = h.xCenter, p = h.yCenter, C = h.getIndexAngle(0) - 0.5 * S2;
|
|
67182
67183
|
let g = C, m;
|
|
67183
67184
|
const f = 360 / this.countVisibleElements();
|
|
67184
67185
|
for (m = 0; m < i; ++m)
|
|
@@ -69770,9 +69771,9 @@ function q01(e, t, i) {
|
|
|
69770
69771
|
} else {
|
|
69771
69772
|
const C = Math.min(h / 2, a * Ue(r - i));
|
|
69772
69773
|
if (d === "round")
|
|
69773
|
-
e.arc(n, l, C, i -
|
|
69774
|
+
e.arc(n, l, C, i - S2 / 2, r + S2 / 2, !0);
|
|
69774
69775
|
else if (d === "bevel") {
|
|
69775
|
-
const g = 2 * C * C, m = -g * Math.cos(i +
|
|
69776
|
+
const g = 2 * C * C, m = -g * Math.cos(i + S2 / 2) + n, f = -g * Math.sin(i + S2 / 2) + l, L = g * Math.cos(r + S2 / 2) + n, y = g * Math.sin(r + S2 / 2) + l;
|
|
69776
69777
|
e.lineTo(m, f), e.lineTo(L, y);
|
|
69777
69778
|
}
|
|
69778
69779
|
}
|
|
@@ -69817,7 +69818,7 @@ function Y7(e, t, i, r, n, l) {
|
|
|
69817
69818
|
const t1 = d > 0 ? d - r : 0, r1 = p > 0 ? p - r : 0, p1 = (t1 + r1) / 2, u1 = p1 !== 0 ? m * p1 / (p1 + r) : m;
|
|
69818
69819
|
g = (m - u1) / 2;
|
|
69819
69820
|
}
|
|
69820
|
-
const f = Math.max(1e-3, m * p - i /
|
|
69821
|
+
const f = Math.max(1e-3, m * p - i / S2) / p, L = (m - f) / 2, y = u + L + g, H = n - L - g, { outerStart: V, outerEnd: z, innerStart: M, innerEnd: b } = G01(t, C, p, H - y), B = p - V, T = p - z, k = y + V / B, Z = H - z / T, F = C + M, W = C + b, Q = y + M / F, n1 = H - b / W;
|
|
69821
69822
|
if (e.beginPath(), l) {
|
|
69822
69823
|
const t1 = (k + Z) / 2;
|
|
69823
69824
|
if (e.arc(a, c, p, k, t1), e.arc(a, c, p, t1, Z), z > 0) {
|
|
@@ -69871,7 +69872,7 @@ function Y01(e, t, i, r, n) {
|
|
|
69871
69872
|
e.stroke();
|
|
69872
69873
|
isNaN(c) || (f = a + (c % P2 || P2));
|
|
69873
69874
|
}
|
|
69874
|
-
m && W01(e, t, f), u.selfJoin && f - a >=
|
|
69875
|
+
m && W01(e, t, f), u.selfJoin && f - a >= S2 && g === 0 && d !== "miter" && q01(e, t, f), l || (Y7(e, t, i, r, f, n), e.stroke());
|
|
69875
69876
|
}
|
|
69876
69877
|
class X01 extends n4 {
|
|
69877
69878
|
static id = "arc";
|
|
@@ -69946,7 +69947,7 @@ class X01 extends n4 {
|
|
|
69946
69947
|
t.save();
|
|
69947
69948
|
const c = (this.startAngle + this.endAngle) / 2;
|
|
69948
69949
|
t.translate(Math.cos(c) * n, Math.sin(c) * n);
|
|
69949
|
-
const u = 1 - Math.sin(Math.min(
|
|
69950
|
+
const u = 1 - Math.sin(Math.min(S2, r || 0)), h = n * u;
|
|
69950
69951
|
t.fillStyle = i.backgroundColor, t.strokeStyle = i.borderColor, K01(t, this, h, l, a), Y01(t, this, h, l, a), t.restore();
|
|
69951
69952
|
}
|
|
69952
69953
|
}
|
|
@@ -71225,7 +71226,7 @@ class ao extends n4 {
|
|
|
71225
71226
|
_drawArgs(t) {
|
|
71226
71227
|
const { top: i, left: r, bottom: n, right: l, options: a } = this, c = a.align;
|
|
71227
71228
|
let u = 0, h, d, p;
|
|
71228
|
-
return this.isHorizontal() ? (d = $e(c, r, l), p = i + t, h = l - r) : (a.position === "left" ? (d = r + t, p = $e(c, n, i), u =
|
|
71229
|
+
return this.isHorizontal() ? (d = $e(c, r, l), p = i + t, h = l - r) : (a.position === "left" ? (d = r + t, p = $e(c, n, i), u = S2 * -0.5) : (d = l - t, p = $e(c, i, n), u = S2 * 0.5), h = n - i), {
|
|
71229
71230
|
titleX: d,
|
|
71230
71231
|
titleY: p,
|
|
71231
71232
|
maxWidth: h,
|
|
@@ -72203,7 +72204,7 @@ function x51(e) {
|
|
|
72203
72204
|
r: e.right - e._padding.right,
|
|
72204
72205
|
t: e.top + e._padding.top,
|
|
72205
72206
|
b: e.bottom - e._padding.bottom
|
|
72206
|
-
}, i = Object.assign({}, t), r = [], n = [], l = e._pointLabels.length, a = e.options.pointLabels, c = a.centerPointLabels ?
|
|
72207
|
+
}, i = Object.assign({}, t), r = [], n = [], l = e._pointLabels.length, a = e.options.pointLabels, c = a.centerPointLabels ? S2 / l : 0;
|
|
72207
72208
|
for (let u = 0; u < l; u++) {
|
|
72208
72209
|
const h = a.setContext(e.getPointLabelContext(u));
|
|
72209
72210
|
n[u] = h.padding;
|
|
@@ -72253,7 +72254,7 @@ function H51(e, t) {
|
|
|
72253
72254
|
function V51(e, t, i) {
|
|
72254
72255
|
const r = [], n = e._pointLabels.length, l = e.options, { centerPointLabels: a, display: c } = l.pointLabels, u = {
|
|
72255
72256
|
extra: al(l) / 2,
|
|
72256
|
-
additionalAngle: a ?
|
|
72257
|
+
additionalAngle: a ? S2 / n : 0
|
|
72257
72258
|
};
|
|
72258
72259
|
let h;
|
|
72259
72260
|
for (let d = 0; d < n; d++) {
|
|
@@ -73695,7 +73696,7 @@ const yi1 = ["for", "title"], vi1 = {
|
|
|
73695
73696
|
}),
|
|
73696
73697
|
emits: ["update:modelValue", "update:id"],
|
|
73697
73698
|
setup(e) {
|
|
73698
|
-
const t = R2(e, "modelValue"), i = R2(e, "id"), r =
|
|
73699
|
+
const t = R2(e, "modelValue"), i = R2(e, "id"), r = v2(), { t: n } = y1(), { fetching: l } = yx({
|
|
73699
73700
|
model: t,
|
|
73700
73701
|
id: i,
|
|
73701
73702
|
getId: (c) => c.id,
|
|
@@ -73776,7 +73777,7 @@ const yi1 = ["for", "title"], vi1 = {
|
|
|
73776
73777
|
},
|
|
73777
73778
|
emits: ["update:modelValue", "update:id"],
|
|
73778
73779
|
setup(e) {
|
|
73779
|
-
const t = R2(e, "modelValue"), i = R2(e, "id"), r =
|
|
73780
|
+
const t = R2(e, "modelValue"), i = R2(e, "id"), r = v2(), { t: n } = y1();
|
|
73780
73781
|
xx({ model: t, id: i });
|
|
73781
73782
|
async function l(a) {
|
|
73782
73783
|
return (await Ot("/api/1/tags/suggest/", {
|
|
@@ -73881,7 +73882,7 @@ const yi1 = ["for", "title"], vi1 = {
|
|
|
73881
73882
|
},
|
|
73882
73883
|
emits: ["update:modelValue", "update:id"],
|
|
73883
73884
|
setup(e) {
|
|
73884
|
-
const t = R2(e, "modelValue"), i = R2(e, "id"), r =
|
|
73885
|
+
const t = R2(e, "modelValue"), i = R2(e, "id"), r = v2(), { t: n } = y1(), { fetching: l } = yx({
|
|
73885
73886
|
model: t,
|
|
73886
73887
|
id: i,
|
|
73887
73888
|
getId: (c) => c.id,
|
|
@@ -74229,7 +74230,7 @@ const yi1 = ["for", "title"], vi1 = {
|
|
|
74229
74230
|
let i, r;
|
|
74230
74231
|
const n = e, l = t, a = R2(e, "type");
|
|
74231
74232
|
a.value || (a.value = u0(n.config[0] ?? { class: "datasets" }));
|
|
74232
|
-
const { t: c } = y1(), u =
|
|
74233
|
+
const { t: c } = y1(), u = v2(), h = S5(), d = ny(/* @__PURE__ */ new Map()), p = /* @__PURE__ */ new Map(), C = a.value, g = A(
|
|
74233
74234
|
() => n.config.find((B1) => u0(B1) === a.value)
|
|
74234
74235
|
), m = A(() => {
|
|
74235
74236
|
if (n.placeholder !== void 0) return n.placeholder ?? "";
|
|
@@ -74340,10 +74341,10 @@ const yi1 = ["for", "title"], vi1 = {
|
|
|
74340
74341
|
name: c("Thématiques"),
|
|
74341
74342
|
placeholder: c("Rechercher une thématique")
|
|
74342
74343
|
})
|
|
74343
|
-
},
|
|
74344
|
+
}, H2 = {};
|
|
74344
74345
|
for (const B1 of n.config) {
|
|
74345
74346
|
const Y = u0(B1), l1 = hi1({ ...Z1, typeConfig: B1 });
|
|
74346
|
-
|
|
74347
|
+
H2[Y] = ([i, r] = dt(() => k1[B1.class].fetch(l1, C === Y)), i = await i, r(), i);
|
|
74347
74348
|
}
|
|
74348
74349
|
const xe = A(() => ({
|
|
74349
74350
|
q: Z.value,
|
|
@@ -74371,7 +74372,7 @@ const yi1 = ["for", "title"], vi1 = {
|
|
|
74371
74372
|
B1.ref.value = B1.defaultValue;
|
|
74372
74373
|
B.value = "", k();
|
|
74373
74374
|
}
|
|
74374
|
-
const ye = A(() =>
|
|
74375
|
+
const ye = A(() => H2[a.value]?.data.value), Oe = A(() => H2[a.value]?.status.value);
|
|
74375
74376
|
q1(ye, (B1) => {
|
|
74376
74377
|
B1 && l("resultsCount", B1.total);
|
|
74377
74378
|
}, { immediate: !0 });
|
|
@@ -74429,8 +74430,8 @@ const yi1 = ["for", "title"], vi1 = {
|
|
|
74429
74430
|
(v(!0), _(h1, null, D1(e.config, (l1) => (v(), j(_6, {
|
|
74430
74431
|
key: w(u0)(l1),
|
|
74431
74432
|
value: w(u0)(l1),
|
|
74432
|
-
count:
|
|
74433
|
-
loading:
|
|
74433
|
+
count: H2[w(u0)(l1)]?.data.value?.total,
|
|
74434
|
+
loading: H2[w(u0)(l1)]?.status.value === "pending" || H2[w(u0)(l1)]?.status.value === "idle",
|
|
74434
74435
|
icon: l1.icon ?? k1[l1.class].icon
|
|
74435
74436
|
}, {
|
|
74436
74437
|
default: O(() => [
|
|
@@ -75052,7 +75053,7 @@ async function D91(e, t) {
|
|
|
75052
75053
|
};
|
|
75053
75054
|
}
|
|
75054
75055
|
function Bs1() {
|
|
75055
|
-
const e =
|
|
75056
|
+
const e = v2();
|
|
75056
75057
|
if (!e.metricsApiUrl || !e.apiBase)
|
|
75057
75058
|
throw new Error("metricsApiUrl and apiBase must be configured in @datagouv/components-next");
|
|
75058
75059
|
return {
|
|
@@ -75389,7 +75390,7 @@ export {
|
|
|
75389
75390
|
W91 as r,
|
|
75390
75391
|
Jn as s,
|
|
75391
75392
|
CS as t,
|
|
75392
|
-
|
|
75393
|
+
v2 as u,
|
|
75393
75394
|
ct as v,
|
|
75394
75395
|
Ku as w,
|
|
75395
75396
|
mm as x,
|
package/package.json
CHANGED
package/src/config.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { inject, type Component, type InjectionKey } from 'vue'
|
|
2
2
|
import type { UseFetchFunction } from './functions/api.types'
|
|
3
3
|
import type { $Fetch, FetchOptions } from 'ofetch'
|
|
4
|
+
import type { Dataset, DatasetV2 } from './types/datasets'
|
|
5
|
+
import type { CommunityResource, Resource } from './types/resources'
|
|
4
6
|
|
|
5
7
|
export type PluginConfig = {
|
|
6
8
|
name: string // Name of the application (ex: data.gouv.fr)
|
|
@@ -45,6 +47,12 @@ export type PluginConfig = {
|
|
|
45
47
|
clientOnly?: Component | null
|
|
46
48
|
searchDebounce?: number
|
|
47
49
|
forumUrl?: string
|
|
50
|
+
/**
|
|
51
|
+
* Overrides the "Copier le lien" target built by `getResourceExternalUrl`.
|
|
52
|
+
* Must return an absolute URL: it is copied to the clipboard and used as an
|
|
53
|
+
* external, `_blank` link target.
|
|
54
|
+
*/
|
|
55
|
+
getResourceExternalUrl?: (dataset: Dataset | DatasetV2 | Omit<Dataset, 'resources' | 'community_resources'>, resource: Resource | CommunityResource) => string
|
|
48
56
|
}
|
|
49
57
|
|
|
50
58
|
export const configKey = Symbol() as InjectionKey<PluginConfig>
|
|
@@ -176,6 +176,9 @@ export function isCommunityResource(resource: Resource | CommunityResource): boo
|
|
|
176
176
|
}
|
|
177
177
|
|
|
178
178
|
export function getResourceExternalUrl(dataset: Dataset | DatasetV2 | Omit<Dataset, 'resources' | 'community_resources'>, resource: Resource | CommunityResource): string {
|
|
179
|
+
const config = useComponentsConfig()
|
|
180
|
+
if (config.getResourceExternalUrl) return config.getResourceExternalUrl(dataset, resource)
|
|
181
|
+
|
|
179
182
|
return `${dataset.page}${isCommunityResource(resource) ? '/community-resources' : ''}?resource_id=${resource.id}`
|
|
180
183
|
}
|
|
181
184
|
|