@datagouv/components-next 1.0.2-dev.112 → 1.0.2-dev.114
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-ZFh5ta_U.js → Control-b-43UT2B.js} +10 -10
- package/dist/{Datafair.client-CKB2P_X1.js → Datafair.client-BH351yV9.js} +4 -4
- package/dist/{Event-DSQcW7OF.js → Event-py_AAwJY.js} +18 -18
- package/dist/{Image-BijNEG0p.js → Image-BHQYZWzH.js} +23 -23
- package/dist/{JsonPreview.client-Bx11-jfT.js → JsonPreview.client-CawLfTe_.js} +5 -5
- package/dist/{Map-BUtPf5GN.js → Map-CtP7leHl.js} +1313 -1173
- package/dist/{MapContainer.client-CdZSeT_L.js → MapContainer.client-DN8kHTOA.js} +17 -17
- package/dist/{OSM-D4MTdBtk.js → OSM-gdDSIsDA.js} +15 -23
- package/dist/{PdfPreview.client-Bh9lP-qU.js → PdfPreview.client-BGOycK0h.js} +6 -10
- package/dist/Pmtiles.client-CRaI4U8S.js +26123 -0
- package/dist/{PreviewWrapper.vue_vue_type_script_setup_true_lang-BnC7vWGP.js → PreviewWrapper.vue_vue_type_script_setup_true_lang-DAddoRna.js} +2 -2
- package/dist/{ScaleLine-hJQIqcZm.js → ScaleLine-hG-FhNqy.js} +2 -2
- package/dist/{Tile-Dcl7oIVu.js → Tile-D6rFonpT.js} +163 -166
- package/dist/{TileImage-BJeHipMX.js → TileImage-cfrEgz5y.js} +131 -119
- package/dist/{View-xp_P_OHw.js → View-vp7vDb9q.js} +169 -119
- package/dist/{XmlPreview.client-oFAOv828.js → XmlPreview.client-Dyv0J4kw.js} +5 -5
- package/dist/{common-BjQlan3k.js → common-C8efyyuc.js} +49 -49
- package/dist/components-next.css +1 -52
- package/dist/components-next.js +36 -36
- package/dist/components.css +2 -2
- package/dist/{index-CxCuKQ81.js → index-_qLRU0Z5.js} +6382 -6057
- package/dist/{leaflet-src-7m1mB8LI.js → leaflet-src-D_sX6kLJ.js} +162 -164
- package/dist/{main-CQ9ZQG7n.js → main-CR8bhz_w.js} +19161 -20321
- package/dist/{proj-CsNo9yH1.js → proj-CsjVeojN.js} +322 -306
- package/dist/{text-clamp.esm-B5kW_XMt.js → text-clamp.esm-DVseBqZZ.js} +4 -4
- package/dist/{tilecoord-A0fLnBZr.js → tilecoord-CPcQJnrF.js} +270 -261
- package/dist/{vue3-json-viewer-BXwup7nO.js → vue3-json-viewer-CJLQFzXZ.js} +10 -16
- package/dist/{vue3-xml-viewer.common-B9qp90K_.js → vue3-xml-viewer.common-DRgxPToX.js} +1 -1
- package/package.json +34 -34
- package/src/components/ResourceAccordion/Pmtiles.client.vue +3 -1
- package/dist/Pmtiles.client-Bi46wN14.js +0 -25185
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { defineComponent as E, useTemplateRef as G, ref as W, onMounted as B,
|
|
2
|
-
import {
|
|
1
|
+
import { defineComponent as E, useTemplateRef as G, ref as W, onMounted as B, openBlock as u, createBlock as z, withCtx as N, createTextVNode as V, toDisplayString as q, unref as A, createElementBlock as D } from "vue";
|
|
2
|
+
import { c2 as F, _ as O } from "./main-CR8bhz_w.js";
|
|
3
3
|
const Z = /* @__PURE__ */ E({
|
|
4
4
|
__name: "MapContainer.client",
|
|
5
5
|
props: {
|
|
6
6
|
resource: {}
|
|
7
7
|
},
|
|
8
8
|
setup(m) {
|
|
9
|
-
const r = m, { t: f } =
|
|
9
|
+
const r = m, { t: f } = F();
|
|
10
10
|
let e = null;
|
|
11
11
|
const a = G("mapRef"), n = W(!1);
|
|
12
12
|
async function d() {
|
|
@@ -18,14 +18,14 @@ const Z = /* @__PURE__ */ E({
|
|
|
18
18
|
{ default: h },
|
|
19
19
|
C
|
|
20
20
|
] = await Promise.all([
|
|
21
|
-
import("./View-
|
|
22
|
-
import("./Map-
|
|
23
|
-
import("./ScaleLine-
|
|
24
|
-
import("./Tile-
|
|
25
|
-
import("./OSM-
|
|
21
|
+
import("./View-vp7vDb9q.js").then((t) => t.b),
|
|
22
|
+
import("./Map-CtP7leHl.js").then((t) => t.f),
|
|
23
|
+
import("./ScaleLine-hG-FhNqy.js"),
|
|
24
|
+
import("./Tile-D6rFonpT.js").then((t) => t.T),
|
|
25
|
+
import("./OSM-gdDSIsDA.js"),
|
|
26
26
|
// @ts-expect-error no types provided
|
|
27
|
-
import("./index-
|
|
28
|
-
]), { CRS: _, GeoportalAttribution: S, GeoportalFullScreen:
|
|
27
|
+
import("./index-_qLRU0Z5.js")
|
|
28
|
+
]), { CRS: _, GeoportalAttribution: S, GeoportalFullScreen: b, GeoportalZoom: g, 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,
|
|
31
31
|
layers: [
|
|
@@ -44,14 +44,14 @@ const Z = /* @__PURE__ */ E({
|
|
|
44
44
|
bar: !1
|
|
45
45
|
});
|
|
46
46
|
e.addControl(M);
|
|
47
|
-
const
|
|
47
|
+
const T = new b({
|
|
48
48
|
position: "top-right"
|
|
49
49
|
});
|
|
50
|
-
e.addControl(
|
|
51
|
-
const
|
|
50
|
+
e.addControl(T);
|
|
51
|
+
const R = new g({
|
|
52
52
|
position: "bottom-left"
|
|
53
53
|
});
|
|
54
|
-
e.addControl(
|
|
54
|
+
e.addControl(R);
|
|
55
55
|
const k = new L({
|
|
56
56
|
options: {
|
|
57
57
|
position: "top-right"
|
|
@@ -83,12 +83,12 @@ const Z = /* @__PURE__ */ E({
|
|
|
83
83
|
}
|
|
84
84
|
return B(() => {
|
|
85
85
|
d();
|
|
86
|
-
}), (i, s) => n.value ? (u(),
|
|
87
|
-
default:
|
|
86
|
+
}), (i, s) => n.value ? (u(), z(O, { key: 0 }, {
|
|
87
|
+
default: N(() => [
|
|
88
88
|
V(q(A(f)("L'aperçu cartographique de ce fichier n'a pas pu être chargé.")), 1)
|
|
89
89
|
]),
|
|
90
90
|
_: 1
|
|
91
|
-
})) : (u(),
|
|
91
|
+
})) : (u(), D("div", {
|
|
92
92
|
key: 1,
|
|
93
93
|
id: "map",
|
|
94
94
|
ref_key: "mapRef",
|
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
class g extends d {
|
|
1
|
+
import { a, e as l, g as c } from "./TileImage-cfrEgz5y.js";
|
|
2
|
+
class n extends a {
|
|
4
3
|
/**
|
|
5
4
|
* @param {Options} [options] XYZ options.
|
|
6
5
|
*/
|
|
7
6
|
constructor(e) {
|
|
8
7
|
e = e || {};
|
|
9
|
-
const r = e.projection !== void 0 ? e.projection : "EPSG:3857", t = e.tileGrid !== void 0 ? e.tileGrid :
|
|
10
|
-
extent:
|
|
8
|
+
const r = e.projection !== void 0 ? e.projection : "EPSG:3857", t = e.tileGrid !== void 0 ? e.tileGrid : l({
|
|
9
|
+
extent: c(r),
|
|
11
10
|
maxResolution: e.maxResolution,
|
|
12
11
|
maxZoom: e.maxZoom,
|
|
13
12
|
minZoom: e.minZoom,
|
|
@@ -17,6 +16,7 @@ class g extends d {
|
|
|
17
16
|
attributions: e.attributions,
|
|
18
17
|
cacheSize: e.cacheSize,
|
|
19
18
|
crossOrigin: e.crossOrigin,
|
|
19
|
+
referrerPolicy: e.referrerPolicy,
|
|
20
20
|
interpolate: e.interpolate,
|
|
21
21
|
projection: r,
|
|
22
22
|
reprojectionErrorThreshold: e.reprojectionErrorThreshold,
|
|
@@ -40,42 +40,34 @@ class g extends d {
|
|
|
40
40
|
return this.gutter_;
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
|
-
const
|
|
44
|
-
class
|
|
43
|
+
const u = '© <a href="https://www.openstreetmap.org/copyright" target="_blank">OpenStreetMap</a> contributors.';
|
|
44
|
+
class o extends n {
|
|
45
45
|
/**
|
|
46
46
|
* @param {Options} [options] Open Street Map options.
|
|
47
47
|
*/
|
|
48
48
|
constructor(e) {
|
|
49
49
|
e = e || {};
|
|
50
50
|
let r;
|
|
51
|
-
e.attributions !== void 0 ? r = e.attributions : r = [
|
|
52
|
-
const t = e.
|
|
51
|
+
e.attributions !== void 0 ? r = e.attributions : r = [u];
|
|
52
|
+
const t = e.url !== void 0 ? e.url : "https://tile.openstreetmap.org/{z}/{x}/{y}.png";
|
|
53
53
|
super({
|
|
54
54
|
attributions: r,
|
|
55
55
|
attributionsCollapsible: !1,
|
|
56
56
|
cacheSize: e.cacheSize,
|
|
57
|
-
crossOrigin:
|
|
57
|
+
crossOrigin: e.crossOrigin !== void 0 ? e.crossOrigin : "anonymous",
|
|
58
|
+
referrerPolicy: e.referrerPolicy || "origin-when-cross-origin",
|
|
58
59
|
interpolate: e.interpolate,
|
|
59
60
|
maxZoom: e.maxZoom !== void 0 ? e.maxZoom : 19,
|
|
60
61
|
reprojectionErrorThreshold: e.reprojectionErrorThreshold,
|
|
61
|
-
tileLoadFunction:
|
|
62
|
-
/**
|
|
63
|
-
* @param {import("../ImageTile.js").default} tile Image tile
|
|
64
|
-
* @param {string} src Image src
|
|
65
|
-
*/
|
|
66
|
-
(i, c) => {
|
|
67
|
-
const a = i.getImage();
|
|
68
|
-
!u && a instanceof HTMLImageElement && (a.referrerPolicy = "origin-when-cross-origin"), (e.tileLoadFunction || s)(i, c);
|
|
69
|
-
}
|
|
70
|
-
),
|
|
62
|
+
tileLoadFunction: e.tileLoadFunction,
|
|
71
63
|
transition: e.transition,
|
|
72
|
-
url:
|
|
64
|
+
url: t,
|
|
73
65
|
wrapX: e.wrapX,
|
|
74
66
|
zDirection: e.zDirection
|
|
75
67
|
});
|
|
76
68
|
}
|
|
77
69
|
}
|
|
78
70
|
export {
|
|
79
|
-
|
|
80
|
-
|
|
71
|
+
u as ATTRIBUTION,
|
|
72
|
+
o as default
|
|
81
73
|
};
|
|
@@ -11,9 +11,9 @@ var sZ = (R, l, U, Z) => ({
|
|
|
11
11
|
return ml(R, l, Z);
|
|
12
12
|
}
|
|
13
13
|
});
|
|
14
|
-
import { defineComponent as cd, ref as td, onBeforeUnmount as Rd,
|
|
15
|
-
import { _ as md } from "./PreviewWrapper.vue_vue_type_script_setup_true_lang-
|
|
16
|
-
import {
|
|
14
|
+
import { defineComponent as cd, ref as td, onBeforeUnmount as Rd, openBlock as LU, createBlock as Nd, unref as sd, withCtx as bd, createElementVNode as nd, createElementBlock as bZ, Fragment as ad, renderList as hd } from "vue";
|
|
15
|
+
import { _ as md } from "./PreviewWrapper.vue_vue_type_script_setup_true_lang-DAddoRna.js";
|
|
16
|
+
import { bP as id } from "./main-CR8bhz_w.js";
|
|
17
17
|
var ZU = {};
|
|
18
18
|
ZU.d = (R, l) => {
|
|
19
19
|
for (var U in l)
|
|
@@ -1520,11 +1520,7 @@ class yl {
|
|
|
1520
1520
|
name: l,
|
|
1521
1521
|
value: U
|
|
1522
1522
|
}) {
|
|
1523
|
-
|
|
1524
|
-
case "enableNewAltTextWhenAddingImage":
|
|
1525
|
-
this.#m = U;
|
|
1526
|
-
break;
|
|
1527
|
-
}
|
|
1523
|
+
l === "enableNewAltTextWhenAddingImage" && (this.#m = U);
|
|
1528
1524
|
}
|
|
1529
1525
|
onPageChanging({
|
|
1530
1526
|
pageNumber: l
|
|
@@ -5992,7 +5988,7 @@ class RF {
|
|
|
5992
5988
|
return this.#l.has(l);
|
|
5993
5989
|
}
|
|
5994
5990
|
}
|
|
5995
|
-
const jl = Symbol("INTERNAL");
|
|
5991
|
+
const jl = /* @__PURE__ */ Symbol("INTERNAL");
|
|
5996
5992
|
class NF {
|
|
5997
5993
|
#l = !1;
|
|
5998
5994
|
#U = !1;
|
|
@@ -8533,7 +8529,7 @@ class gF {
|
|
|
8533
8529
|
return this.#d.get(U) ?? null;
|
|
8534
8530
|
}
|
|
8535
8531
|
}
|
|
8536
|
-
const ql = Symbol("INITIAL_DATA");
|
|
8532
|
+
const ql = /* @__PURE__ */ Symbol("INITIAL_DATA");
|
|
8537
8533
|
class qZ {
|
|
8538
8534
|
#l = /* @__PURE__ */ Object.create(null);
|
|
8539
8535
|
#U(l) {
|