@datagouv/components-next 1.0.2-dev.183 → 1.0.2-dev.184

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 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-OEOVgq_i.js";
2
+ import { a as h, d as v } from "./main-XF-P-N34.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-OEOVgq_i.js";
2
+ import { a as z, u as T, b as k, d as h } from "./main-XF-P-N34.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-OEOVgq_i.js";
3
- import { _ as h } from "./PreviewWrapper.vue_vue_type_script_setup_true_lang-U260inZw.js";
2
+ import { u as d } from "./main-XF-P-N34.js";
3
+ import { _ as h } from "./PreviewWrapper.vue_vue_type_script_setup_true_lang-DpfhdGPQ.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-OEOVgq_i.js";
2
+ import { a as F, d as O } from "./main-XF-P-N34.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-NypeTAz3.js")
27
+ import("./index-CFSub4e5.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-U260inZw.js";
16
- import { u as Jd, _ as Gd } from "./main-OEOVgq_i.js";
15
+ import { _ as Md } from "./PreviewWrapper.vue_vue_type_script_setup_true_lang-DpfhdGPQ.js";
16
+ import { u as Jd, _ as Gd } from "./main-XF-P-N34.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-OEOVgq_i.js";
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-XF-P-N34.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-OEOVgq_i.js";
2
+ import { a as L, b as N, c as R, d as c } from "./main-XF-P-N34.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-OEOVgq_i.js";
3
- import { _ as w } from "./PreviewWrapper.vue_vue_type_script_setup_true_lang-U260inZw.js";
2
+ import { u as x } from "./main-XF-P-N34.js";
3
+ import { _ as w } from "./PreviewWrapper.vue_vue_type_script_setup_true_lang-DpfhdGPQ.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-BBV8Gl3e.js").then((e) => e.v).then((e) => e.default || e.XmlViewer)
11
+ () => import("./vue3-xml-viewer.common-DL7Mtemm.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}`);
@@ -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 S, z as m, 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 L, R as z, S as F, 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 Z, a8 as q, 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 Sa, au as ma, 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 La, aI as za, aJ as Fa, 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 Za, a_ as qa, 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 Ss, bk as ms, 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 Ls, by as zs, h as Fs, f as ws, bz as Gs, bA as _s, c as Ns, bB as Us, b as Hs, bC 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 Zs, bM as qs, 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, c0 as Te, c1 as de, c2 as Ce, c3 as pe, c4 as Se, c5 as me, t as De, c6 as Re, c7 as Oe, c8 as Ee, c9 as fe, ca as Ie, u as ye, cb as he, cc as Ae, cd as Me, e as Pe, ce as ve, cf as Le, cg as ze, ch as Fe, ci as we, cj as Ge, ck as _e, cl as Ne, cm as Ue, cn as He, co as ke, cp as xe, a as Be } from "./main-OEOVgq_i.js";
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 S, z as m, 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 L, R as z, S as F, 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 Z, a8 as q, 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 Sa, au as ma, 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 La, aI as za, aJ as Fa, 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 Za, a_ as qa, 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 Ss, bk as ms, 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 Ls, by as zs, h as Fs, f as ws, bz as Gs, bA as _s, c as Ns, bB as Us, b as Hs, bC 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 Zs, bM as qs, 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, c0 as Te, c1 as de, c2 as Ce, c3 as pe, c4 as Se, c5 as me, t as De, c6 as Re, c7 as Oe, c8 as Ee, c9 as fe, ca as Ie, u as ye, cb as he, cc as Ae, cd as Me, e as Pe, ce as ve, cf as Le, cg as ze, ch as Fe, ci as we, cj as Ge, ck as _e, cl as Ne, cm as Ue, cn as He, co as ke, cp as xe, a as Be } from "./main-XF-P-N34.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-OEOVgq_i.js";
9
+ import { k as commonjsGlobal, g as getDefaultExportFromCjs$1 } from "./main-XF-P-N34.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) {
@@ -1,4 +1,4 @@
1
- import { g as qo } from "./main-OEOVgq_i.js";
1
+ import { g as qo } from "./main-XF-P-N34.js";
2
2
  function jo(Vt, qt) {
3
3
  for (var l = 0; l < qt.length; l++) {
4
4
  const it = qt[l];
@@ -52335,7 +52335,7 @@ const SU = { class: "space-y-1 py-6" }, MU = { class: "flex items-center space-x
52335
52335
  const t = e, i = J(null);
52336
52336
  return J1(async () => {
52337
52337
  await Promise.resolve({ });
52338
- const r = await import("./leaflet-src-C54gIk3N.js").then((a) => a.l);
52338
+ const r = await import("./leaflet-src-C5avjsNM.js").then((a) => a.l);
52339
52339
  if (!i.value) return;
52340
52340
  const n = r.map(i.value);
52341
52341
  r.tileLayer("https://tile.openstreetmap.org/{z}/{x}/{y}.png", {
@@ -59828,7 +59828,7 @@ const iY = {
59828
59828
  canEdit: { type: Boolean, default: !1 }
59829
59829
  },
59830
59830
  setup(e) {
59831
- 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-piLVEoQA.js")), l = lt(() => import("./Pmtiles.client-CgP56qtf.js")), a = lt(() => import("./JsonPreview.client-B4zhw3J3.js")), c = lt(() => import("./PdfPreview.client-BjOjQS21.js")), u = lt(() => import("./XmlPreview.client-SbISXrsW.js")), h = lt(() => import("./ImagePreview.client-HoFfwk5b.js")), d = lt(() => import("./Datafair.client-D0E6rbay.js")), { t: p } = w1(), { formatRelativeIfRecentDate: C } = We(), g = ym(), m = A(() => {
59831
+ 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-BhOFQB0f.js")), l = lt(() => import("./Pmtiles.client-CnRtFRuj.js")), a = lt(() => import("./JsonPreview.client-C6kbi1xP.js")), c = lt(() => import("./PdfPreview.client-BO8w5U0x.js")), u = lt(() => import("./XmlPreview.client-C81gabMx.js")), h = lt(() => import("./ImagePreview.client-DEdDfDwe.js")), d = lt(() => import("./Datafair.client-DrdGHGHA.js")), { t: p } = w1(), { formatRelativeIfRecentDate: C } = We(), g = ym(), m = A(() => {
59832
59832
  const v1 = i.resource.format?.toLowerCase();
59833
59833
  return v1 === "json" || v1 === "pdf" || v1 === "xml" || N6(v1);
59834
59834
  }), f = A(() => g(i.resource)), x = A(() => i.resource.extras["analysis:parsing:pmtiles_url"] || i.resource.format === "pmtiles"), y = A(() => J9(i.dataset.organization) && i.resource.extras.datafairEmbed), H = A(() => J9(i.dataset.organization) && i.resource.extras.apidocUrl), V = A(() => Er(i.resource.format) ? i.resource.format : p("Fichier")), b = A(() => wm(i.resource)), M = A(() => b.value === "wms"), z = J(i.expandedOnMount), B = () => {
@@ -62411,19 +62411,19 @@ const DX = { class: "flex min-h-0 flex-1 flex-col" }, OX = { class: "text-xs bre
62411
62411
  async setup(e) {
62412
62412
  let t, i;
62413
62413
  const r = lt(
62414
- () => import("./JsonPreview.client-B4zhw3J3.js")
62414
+ () => import("./JsonPreview.client-C6kbi1xP.js")
62415
62415
  ), n = lt(
62416
- () => import("./PdfPreview.client-BjOjQS21.js")
62416
+ () => import("./PdfPreview.client-BO8w5U0x.js")
62417
62417
  ), l = lt(
62418
- () => import("./XmlPreview.client-SbISXrsW.js")
62418
+ () => import("./XmlPreview.client-C81gabMx.js")
62419
62419
  ), a = lt(
62420
- () => import("./ImagePreview.client-HoFfwk5b.js")
62420
+ () => import("./ImagePreview.client-DEdDfDwe.js")
62421
62421
  ), c = lt(
62422
- () => import("./Datafair.client-D0E6rbay.js")
62422
+ () => import("./Datafair.client-DrdGHGHA.js")
62423
62423
  ), u = lt(
62424
- () => import("./MapContainer.client-piLVEoQA.js")
62424
+ () => import("./MapContainer.client-BhOFQB0f.js")
62425
62425
  ), h = lt(
62426
- () => import("./Pmtiles.client-CgP56qtf.js")
62426
+ () => import("./Pmtiles.client-CnRtFRuj.js")
62427
62427
  ), d = e, { t: p } = w1(), C = V2(), g = ms(), m = ap(), {
62428
62428
  previewKind: f,
62429
62429
  hasTabularData: x,
@@ -74112,6 +74112,7 @@ const wi1 = ["for", "title"], Li1 = {
74112
74112
  size: "sm",
74113
74113
  icon: w(fH),
74114
74114
  "icon-only": "",
74115
+ external: "",
74115
74116
  target: "_blank"
74116
74117
  }, null, 8, ["href", "title", "icon"])) : $("", !0)
74117
74118
  ])
@@ -1,4 +1,4 @@
1
- import { g as Ke } from "./main-OEOVgq_i.js";
1
+ import { g as Ke } from "./main-XF-P-N34.js";
2
2
  import We from "vue";
3
3
  function Fe($, K) {
4
4
  for (var V = 0; V < K.length; V++) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@datagouv/components-next",
3
- "version": "1.0.2-dev.183",
3
+ "version": "1.0.2-dev.184",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "engines": {
@@ -228,6 +228,7 @@
228
228
  size="sm"
229
229
  :icon="RiRssLine"
230
230
  icon-only
231
+ external
231
232
  target="_blank"
232
233
  />
233
234
  </div>