@datagouv/components-next 1.0.2-dev.113 → 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.
Files changed (31) hide show
  1. package/dist/{Control-ZFh5ta_U.js → Control-b-43UT2B.js} +10 -10
  2. package/dist/{Datafair.client-CKB2P_X1.js → Datafair.client-BH351yV9.js} +4 -4
  3. package/dist/{Event-DSQcW7OF.js → Event-py_AAwJY.js} +18 -18
  4. package/dist/{Image-BijNEG0p.js → Image-BHQYZWzH.js} +23 -23
  5. package/dist/{JsonPreview.client-Bx11-jfT.js → JsonPreview.client-CawLfTe_.js} +5 -5
  6. package/dist/{Map-BUtPf5GN.js → Map-CtP7leHl.js} +1313 -1173
  7. package/dist/{MapContainer.client-CdZSeT_L.js → MapContainer.client-DN8kHTOA.js} +17 -17
  8. package/dist/{OSM-D4MTdBtk.js → OSM-gdDSIsDA.js} +15 -23
  9. package/dist/{PdfPreview.client-Bh9lP-qU.js → PdfPreview.client-BGOycK0h.js} +6 -10
  10. package/dist/Pmtiles.client-CRaI4U8S.js +26123 -0
  11. package/dist/{PreviewWrapper.vue_vue_type_script_setup_true_lang-BnC7vWGP.js → PreviewWrapper.vue_vue_type_script_setup_true_lang-DAddoRna.js} +2 -2
  12. package/dist/{ScaleLine-hJQIqcZm.js → ScaleLine-hG-FhNqy.js} +2 -2
  13. package/dist/{Tile-Dcl7oIVu.js → Tile-D6rFonpT.js} +163 -166
  14. package/dist/{TileImage-BJeHipMX.js → TileImage-cfrEgz5y.js} +131 -119
  15. package/dist/{View-xp_P_OHw.js → View-vp7vDb9q.js} +169 -119
  16. package/dist/{XmlPreview.client-oFAOv828.js → XmlPreview.client-Dyv0J4kw.js} +5 -5
  17. package/dist/{common-BjQlan3k.js → common-C8efyyuc.js} +49 -49
  18. package/dist/components-next.css +1 -52
  19. package/dist/components-next.js +36 -36
  20. package/dist/components.css +2 -2
  21. package/dist/{index-CxCuKQ81.js → index-_qLRU0Z5.js} +6382 -6057
  22. package/dist/{leaflet-src-7m1mB8LI.js → leaflet-src-D_sX6kLJ.js} +162 -164
  23. package/dist/{main-CQ9ZQG7n.js → main-CR8bhz_w.js} +19161 -20321
  24. package/dist/{proj-CsNo9yH1.js → proj-CsjVeojN.js} +322 -306
  25. package/dist/{text-clamp.esm-B5kW_XMt.js → text-clamp.esm-DVseBqZZ.js} +4 -4
  26. package/dist/{tilecoord-A0fLnBZr.js → tilecoord-CPcQJnrF.js} +270 -261
  27. package/dist/{vue3-json-viewer-BXwup7nO.js → vue3-json-viewer-CJLQFzXZ.js} +10 -16
  28. package/dist/{vue3-xml-viewer.common-B9qp90K_.js → vue3-xml-viewer.common-DRgxPToX.js} +1 -1
  29. package/package.json +34 -34
  30. package/src/components/ResourceAccordion/Pmtiles.client.vue +3 -1
  31. 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, createBlock as N, createElementBlock as z, openBlock as u, withCtx as U, createTextVNode as V, toDisplayString as q, unref as A } from "vue";
2
- import { a as D, _ as F } from "./main-CQ9ZQG7n.js";
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 } = D();
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-xp_P_OHw.js").then((t) => t.N),
22
- import("./Map-BUtPf5GN.js").then((t) => t.U),
23
- import("./ScaleLine-hJQIqcZm.js"),
24
- import("./Tile-Dcl7oIVu.js").then((t) => t.d),
25
- import("./OSM-D4MTdBtk.js"),
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-CxCuKQ81.js")
28
- ]), { CRS: _, GeoportalAttribution: S, GeoportalFullScreen: g, GeoportalZoom: b, LayerImport: v, LayerSwitcher: L } = C;
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 R = new g({
47
+ const T = new b({
48
48
  position: "top-right"
49
49
  });
50
- e.addControl(R);
51
- const T = new b({
50
+ e.addControl(T);
51
+ const R = new g({
52
52
  position: "bottom-left"
53
53
  });
54
- e.addControl(T);
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(), N(F, { key: 0 }, {
87
- default: U(() => [
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(), z("div", {
91
+ })) : (u(), D("div", {
92
92
  key: 1,
93
93
  id: "map",
94
94
  ref_key: "mapRef",
@@ -1,13 +1,12 @@
1
- import { W as u } from "./Image-BijNEG0p.js";
2
- import { T as d, c as o, e as m, d as s } from "./TileImage-BJeHipMX.js";
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 : o({
10
- extent: m(r),
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 h = '&#169; <a href="https://www.openstreetmap.org/copyright" target="_blank">OpenStreetMap</a> contributors.';
44
- class b extends g {
43
+ const u = '&#169; <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 = [h];
52
- const t = e.crossOrigin !== void 0 ? e.crossOrigin : "anonymous", l = e.url !== void 0 ? e.url : "https://tile.openstreetmap.org/{z}/{x}/{y}.png";
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: t,
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: l,
64
+ url: t,
73
65
  wrapX: e.wrapX,
74
66
  zDirection: e.zDirection
75
67
  });
76
68
  }
77
69
  }
78
70
  export {
79
- h as ATTRIBUTION,
80
- b as default
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, createBlock as Nd, openBlock as LU, 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-BnC7vWGP.js";
16
- import { u as id } from "./main-CQ9ZQG7n.js";
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
- switch (l) {
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) {