@datagouv/components-next 1.0.2-dev.3 → 1.0.2-dev.30
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-CSUWxY1U.js +30 -0
- package/dist/{Event--kp8kMdJ.js → Event-B0pbfyAo.js} +1 -1
- package/dist/JsonPreview.client-DWP5adeD.js +72 -0
- package/dist/{Map-BjUnLyj8.js → Map-ByzoJvTf.js} +2 -2
- package/dist/MapContainer.client-B0oJPrx5.js +102 -0
- package/dist/{OSM-s40W6sQ2.js → OSM-FSBCBM2l.js} +1 -1
- package/dist/{PdfPreview.client-C-w6-w44.js → PdfPreview.client-B2E_IWUj.js} +533 -548
- package/dist/{Pmtiles.client-BR7_ldHY.js → Pmtiles.client-STSFvULL.js} +575 -580
- package/dist/Swagger.client-mrRTl6ll.js +4 -0
- package/dist/{Tile-DbNFNPfU.js → Tile-nykTnQlb.js} +4 -4
- package/dist/{TileImage-BsXBxMtq.js → TileImage-RLU-wMoy.js} +1 -1
- package/dist/{View-BR92hTWP.js → View-SHblmfOT.js} +1 -1
- package/dist/XmlPreview.client-C0zaJXWA.js +64 -0
- package/dist/components-next.css +4 -4
- package/dist/components-next.js +13 -13
- package/dist/components.css +1 -1
- package/dist/{index-SrYZwgCT.js → index-kxzw3Ssm.js} +1164 -1164
- package/dist/{leaflet-src-7m1mB8LI.js → leaflet-src-DfyFSZpM.js} +185 -183
- package/dist/{main-B2kXxWRG.js → main-BMXOPzsN.js} +34653 -33895
- package/dist/{text-clamp.esm-B5kW_XMt.js → text-clamp.esm-DVseBqZZ.js} +4 -4
- package/dist/{tilecoord-Db24Px13.js → tilecoord-BgTy1qJO.js} +5 -5
- package/dist/{vue3-json-viewer-BXwup7nO.js → vue3-json-viewer-BgCuOAH6.js} +10 -10
- package/dist/{vue3-xml-viewer.common-BRxsqI9j.js → vue3-xml-viewer.common-CwN-5lms.js} +16 -16
- package/package.json +9 -5
- package/src/components/Form/SearchableSelect.vue +2 -1
- package/src/components/ReadMore.vue +1 -1
- package/src/components/ResourceAccordion/Datafair.client.vue +4 -10
- package/src/components/ResourceAccordion/JsonPreview.client.vue +13 -30
- package/src/components/ResourceAccordion/MapContainer.client.vue +7 -11
- package/src/components/ResourceAccordion/PdfPreview.client.vue +13 -29
- package/src/components/ResourceAccordion/Pmtiles.client.vue +5 -10
- package/src/components/ResourceAccordion/Preview.vue +5 -10
- package/src/components/ResourceAccordion/PreviewLoader.vue +1 -2
- package/src/components/ResourceAccordion/PreviewUnavailable.vue +22 -0
- package/src/components/ResourceAccordion/XmlPreview.client.vue +13 -30
- package/src/components/ResourceExplorer/ResourceExplorer.vue +21 -10
- package/src/components/ResourceExplorer/ResourceExplorerViewer.vue +12 -1
- package/src/composables/useResourceCapabilities.ts +1 -1
- package/src/types/dataservices.ts +2 -0
- package/src/types/organizations.ts +1 -1
- package/src/types/users.ts +0 -1
- package/dist/Datafair.client-E5D6ePRC.js +0 -35
- package/dist/JsonPreview.client-C-6eBbPw.js +0 -87
- package/dist/MapContainer.client-DRkAmdOc.js +0 -105
- package/dist/Swagger.client-D4-F6yEf.js +0 -4
- package/dist/XmlPreview.client-Dl2VCgXF.js +0 -79
- /package/assets/illustrations/{_microscope.svg → microscope.svg} +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { T as Oe, b as Pe, d as ye, g as ee, I as Ke, R as Me } from "./tilecoord-
|
|
2
|
-
import { T, h as Te, d as F, l as ze,
|
|
1
|
+
import { T as Oe, b as Pe, d as ye, g as ee, I as Ke, R as Me } from "./tilecoord-BgTy1qJO.js";
|
|
2
|
+
import { T, h as Te, d as F, l as ze, W as Ae, j as be, c as me, t as Fe } from "./Image-34hvypZI.js";
|
|
3
3
|
import { aF as je, aH as ke, al as te, E as Ne, $ as Ze, an as we, aI as Ue, az as qe, aJ as Ge, L as Be, F as Ve, n as We, e as He, X as Xe, a as j, aK as Ye, j as re, d as oe, a2 as $e, i as Qe, H as Je } from "./proj-DsetBcW7.js";
|
|
4
4
|
import { a as ne, e as ie, p as et, g as v, d as ae, n as tt, q as nt } from "./common-PJfpC179.js";
|
|
5
|
-
import { a as xe, R as it, E as X, L as st } from "./Event
|
|
5
|
+
import { a as xe, R as it, E as X, L as st } from "./Event-B0pbfyAo.js";
|
|
6
6
|
function le(u) {
|
|
7
7
|
return u instanceof Image || u instanceof HTMLCanvasElement || u instanceof HTMLVideoElement || u instanceof ImageBitmap ? u : null;
|
|
8
8
|
}
|
|
@@ -496,7 +496,7 @@ class dt extends ct {
|
|
|
496
496
|
ze(s) && (a = s.getContext("2d"));
|
|
497
497
|
}
|
|
498
498
|
if (a && et(a.canvas.style.transform, t) ? (this.container = e, this.context = a, this.containerReused = !0) : this.containerReused ? (this.container = null, this.context = null, this.containerReused = !1) : this.container && (this.container.style.backgroundColor = null), !this.container) {
|
|
499
|
-
r =
|
|
499
|
+
r = Ae ? be() : document.createElement("div"), r.className = i;
|
|
500
500
|
let s = r.style;
|
|
501
501
|
s.position = "absolute", s.width = "100%", s.height = "100%", a = me();
|
|
502
502
|
const l = (
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b as Y, e as f, d as b, h as D, w as v, I as K, R as N, g as k } from "./tilecoord-
|
|
1
|
+
import { b as Y, e as f, d as b, h as D, w as v, I as K, R as N, g as k } from "./tilecoord-BgTy1qJO.js";
|
|
2
2
|
import { t as g, s as W, T as _, W as q } from "./Image-34hvypZI.js";
|
|
3
3
|
import { aQ as H, an as $, q as j, N as V, a7 as B, P as F, S as x, D as E, M as J, F as Q, L as w, X as tt, aR as et, W as it, B as nt, a as R, al as rt, J as st, e as z, E as ot } from "./proj-DsetBcW7.js";
|
|
4
4
|
import { a as m, x as A, y as lt, D as at } from "./common-PJfpC179.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a7 as p, B as it, n as jt, G as Ft, al as x, v as Tt, aL as Et, D as vt, F, ak as W, m as St, x as S, z as j, o as Zt, aM as zt, s as st, C as Pt, A as Xt, a2 as Yt, K as ot, y as bt, N as rt, L as G, am as Gt, aN as L, M as Lt,
|
|
1
|
+
import { a7 as p, B as it, n as jt, G as Ft, al as x, v as Tt, aL as Et, D as vt, F, ak as W, m as St, x as S, z as j, o as Zt, aM as zt, s as st, C as Pt, A as Xt, a2 as Yt, K as ot, y as bt, N as rt, L as G, am as Gt, aN as L, M as Lt, ac as y, j as E, W as q, aE as Ot, aO as Vt, ah as K, k as kt, Q as Ut, V as Dt, af as Y, aP as Ht } from "./proj-DsetBcW7.js";
|
|
2
2
|
import { d as Wt, e as qt, u as at, v as Kt, w as $t, a as N, j as Bt, x as Jt } from "./common-PJfpC179.js";
|
|
3
3
|
const I = {
|
|
4
4
|
ANIMATING: 0,
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { defineComponent as z, defineAsyncComponent as C, ref as o, computed as x, onMounted as X, openBlock as t, createElementBlock as c, createVNode as L, unref as r, toDisplayString as i, createBlock as f, withCtx as m, createTextVNode as p, createCommentVNode as B } from "vue";
|
|
2
|
+
import { u as S, a as V, b as E, _ as d } from "./main-BMXOPzsN.js";
|
|
3
|
+
const M = { class: "fr-text--xs" }, P = { key: 0 }, b = {
|
|
4
|
+
key: 1,
|
|
5
|
+
class: "text-gray-medium"
|
|
6
|
+
}, $ = /* @__PURE__ */ z({
|
|
7
|
+
__name: "XmlPreview.client",
|
|
8
|
+
props: {
|
|
9
|
+
resource: {}
|
|
10
|
+
},
|
|
11
|
+
setup(y) {
|
|
12
|
+
const T = C(
|
|
13
|
+
() => import("./vue3-xml-viewer.common-CwN-5lms.js").then((e) => e.v).then((e) => e.default || e.XmlViewer)
|
|
14
|
+
), h = y, v = S(), { t: a } = V(), n = o(null), u = o(!1), l = o(null), g = o(!1), _ = x(() => E(h.resource)), w = x(() => {
|
|
15
|
+
const e = _.value;
|
|
16
|
+
if (!e || !v.maxXmlPreviewCharSize)
|
|
17
|
+
return !1;
|
|
18
|
+
const s = v.maxXmlPreviewCharSize;
|
|
19
|
+
return e <= s;
|
|
20
|
+
}), k = async () => {
|
|
21
|
+
if (!w.value) {
|
|
22
|
+
g.value = !0;
|
|
23
|
+
return;
|
|
24
|
+
}
|
|
25
|
+
u.value = !0, l.value = null;
|
|
26
|
+
try {
|
|
27
|
+
const e = await fetch(h.resource.url);
|
|
28
|
+
if (!e.ok)
|
|
29
|
+
throw new Error(`HTTP error! status: ${e.status}`);
|
|
30
|
+
const s = await e.text();
|
|
31
|
+
n.value = s;
|
|
32
|
+
} catch (e) {
|
|
33
|
+
console.error("Error loading XML:", e), e instanceof TypeError ? l.value = "network" : l.value = "generic", n.value = null;
|
|
34
|
+
} finally {
|
|
35
|
+
u.value = !1;
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
return X(() => {
|
|
39
|
+
k();
|
|
40
|
+
}), (e, s) => (t(), c("div", M, [
|
|
41
|
+
n.value ? (t(), c("div", P, [
|
|
42
|
+
L(r(T), { xml: n.value }, null, 8, ["xml"])
|
|
43
|
+
])) : u.value ? (t(), c("div", b, i(r(a)("Chargement de l'aperçu XML...")), 1)) : g.value ? (t(), f(d, { key: 2 }, {
|
|
44
|
+
default: m(() => [
|
|
45
|
+
p(i(_.value ? r(a)("Le fichier XML est trop volumineux pour être prévisualisé. Téléchargez-le depuis l'onglet Téléchargements.") : r(a)("La taille du fichier est inconnue, l'aperçu n'est pas disponible. Téléchargez-le depuis l'onglet Téléchargements.")), 1)
|
|
46
|
+
]),
|
|
47
|
+
_: 1
|
|
48
|
+
})) : l.value === "network" ? (t(), f(d, { key: 3 }, {
|
|
49
|
+
default: m(() => [
|
|
50
|
+
p(i(r(a)("Ce fichier est hébergé sur un site externe qui ne permet pas la prévisualisation. Téléchargez-le depuis l'onglet Téléchargements.")), 1)
|
|
51
|
+
]),
|
|
52
|
+
_: 1
|
|
53
|
+
})) : l.value ? (t(), f(d, { key: 4 }, {
|
|
54
|
+
default: m(() => [
|
|
55
|
+
p(i(r(a)("L'aperçu de ce fichier n'a pas pu être chargé. Téléchargez-le depuis l'onglet Téléchargements.")), 1)
|
|
56
|
+
]),
|
|
57
|
+
_: 1
|
|
58
|
+
})) : B("", !0)
|
|
59
|
+
]));
|
|
60
|
+
}
|
|
61
|
+
});
|
|
62
|
+
export {
|
|
63
|
+
$ as default
|
|
64
|
+
};
|