@datagouv/components-next 1.0.2-dev.40 → 1.0.2-dev.41

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.
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as l, computed as a, createElementBlock as o, openBlock as t, createBlock as u, createElementVNode as f, withCtx as p, createTextVNode as m, toDisplayString as _, unref as h } from "vue";
2
- import { a as x, _ as g } from "./main-ifX24DGW.js";
2
+ import { a as x, _ as g } from "./main-CF7lWk6R.js";
3
3
  const v = { class: "fr-text--xs" }, b = { key: 0 }, k = ["src"], $ = /* @__PURE__ */ l({
4
4
  __name: "Datafair.client",
5
5
  props: {
@@ -0,0 +1,40 @@
1
+ import { defineComponent as c, defineAsyncComponent as u, createBlock as m, openBlock as p, unref as r, withCtx as f, createVNode as l } from "vue";
2
+ import { u as d } from "./main-CF7lWk6R.js";
3
+ import { _ as h } from "./PreviewWrapper.vue_vue_type_script_setup_true_lang-BlcvVwW8.js";
4
+ const J = /* @__PURE__ */ c({
5
+ __name: "JsonPreview.client",
6
+ props: {
7
+ resource: {}
8
+ },
9
+ setup(o) {
10
+ const t = u(
11
+ () => import("./vue3-json-viewer-BXwup7nO.js").then((e) => (Promise.resolve({ }), e.JsonViewer))
12
+ ), n = o, s = d(), i = async () => {
13
+ const e = await fetch(n.resource.url);
14
+ if (!e.ok) throw new Error(`HTTP error! status: ${e.status}`);
15
+ return e.json();
16
+ };
17
+ return (e, w) => (p(), m(h, {
18
+ "file-type": "JSON",
19
+ resource: o.resource,
20
+ "max-size": r(s).maxJsonPreviewCharSize,
21
+ load: i
22
+ }, {
23
+ default: f(({ data: a }) => [
24
+ l(r(t), {
25
+ value: a,
26
+ boxed: "",
27
+ sort: "",
28
+ theme: "light",
29
+ "max-depth": 3,
30
+ "expand-depth": 2,
31
+ "indent-width": 2
32
+ }, null, 8, ["value"])
33
+ ]),
34
+ _: 1
35
+ }, 8, ["resource", "max-size"]));
36
+ }
37
+ });
38
+ export {
39
+ J as default
40
+ };
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as E, useTemplateRef as G, ref as W, onMounted as B, createBlock as z, createElementBlock as N, openBlock as m, withCtx as U, createTextVNode as V, toDisplayString as q, unref as A } from "vue";
2
- import { a as D, _ as F } from "./main-ifX24DGW.js";
2
+ import { a as D, _ as F } from "./main-CF7lWk6R.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-DbNFNPfU.js").then((t) => t.d),
25
25
  import("./OSM-s40W6sQ2.js"),
26
26
  // @ts-expect-error no types provided
27
- import("./index-B0fPq7-b.js")
27
+ import("./index-CzClB3i0.js")
28
28
  ]), { CRS: S, GeoportalAttribution: g, GeoportalFullScreen: M, GeoportalZoom: b, LayerImport: v, LayerSwitcher: L } = _;
29
29
  await Promise.resolve({ }), await Promise.resolve({ }), await Promise.resolve({ }), await Promise.resolve({ }), S.load(), e = new s({
30
30
  target: a.value,