@datagouv/components-next 1.0.2-dev.213 → 1.0.2-dev.214

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-DmYsCy8b.js";
2
+ import { a as h, d as v } from "./main-ajZVLXAR.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-DmYsCy8b.js";
2
+ import { a as z, u as T, b as k, d as h } from "./main-ajZVLXAR.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-DmYsCy8b.js";
3
- import { _ as h } from "./PreviewWrapper.vue_vue_type_script_setup_true_lang-38X8Egf9.js";
2
+ import { u as d } from "./main-ajZVLXAR.js";
3
+ import { _ as h } from "./PreviewWrapper.vue_vue_type_script_setup_true_lang-Btbi8cZr.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-DmYsCy8b.js";
2
+ import { a as F, d as O } from "./main-ajZVLXAR.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-DI5PtNs-.js").then((t) => t.d),
25
25
  import("./OSM-BUakwXg7.js"),
26
26
  // @ts-expect-error no types provided
27
- import("./index-WbWNwOZz.js")
27
+ import("./index-DBfW8lYm.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-38X8Egf9.js";
16
- import { u as Jd, _ as Gd } from "./main-DmYsCy8b.js";
15
+ import { _ as Md } from "./PreviewWrapper.vue_vue_type_script_setup_true_lang-Btbi8cZr.js";
16
+ import { u as Jd, _ as Gd } from "./main-ajZVLXAR.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 I0, ref as E0, computed as Zc, useTemplateRef as M0, onMounted as A0, openBlock as vh, createElementBlock as ip, createBlock as C0, withCtx as Gm, createTextVNode as Zm, toDisplayString as qc, unref as _s, createElementVNode as Ua, createVNode as D0, createCommentVNode as z0 } from "vue";
2
- import { g as R0, a as k0, e as L0, u as F0, f as O0, d as B0, h as N0, i as j0, Q as V0, t as U0 } from "./main-DmYsCy8b.js";
2
+ import { g as R0, a as k0, e as L0, u as F0, f as O0, d as B0, h as N0, i as j0, Q as V0, t as U0 } from "./main-ajZVLXAR.js";
3
3
  var on = Uint8Array, Rl = Uint16Array, $0 = Int32Array, cg = new on([
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-DmYsCy8b.js";
2
+ import { a as L, b as N, c as R, d as c } from "./main-ajZVLXAR.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-DmYsCy8b.js";
3
- import { _ as w } from "./PreviewWrapper.vue_vue_type_script_setup_true_lang-38X8Egf9.js";
2
+ import { u as x } from "./main-ajZVLXAR.js";
3
+ import { _ as w } from "./PreviewWrapper.vue_vue_type_script_setup_true_lang-Btbi8cZr.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-Cpgf1TpW.js").then((e) => e.v).then((e) => e.default || e.XmlViewer)
11
+ () => import("./vue3-xml-viewer.common-BZ1O_76n.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, k as t, l as r, m as o, n as i, o as n, p as c, q as l, i as b, C as u, r as g, s as T, v as d, D as p, w as C, x as m, y as D, z as S, B as R, E as O, F as E, G as f, H as I, I as y, J as h, K as A, L as P, M, N as v, O as F, P as L, R as z, S as w, T as G, U as _, V as N, W as U, X as k, Y as x, Z as H, $ as B, a0 as V, a1 as Q, a2 as W, a3 as Y, a4 as j, a5 as X, a6 as q, a7 as Z, a8 as J, a9 as K, aa as $, ab as aa, ac as sa, ad as ea, ae as ta, af as ra, ag as oa, ah as ia, ai as na, aj as ca, ak as la, al as ba, am as ua, an as ga, ao as Ta, ap as da, aq as pa, ar as Ca, as as ma, at as Da, au as Sa, av as Ra, aw as Oa, ax as Ea, ay as fa, az as Ia, aA as ya, aB as ha, aC as Aa, aD as Pa, aE as Ma, aF as va, aG as Fa, aH as La, aI as za, aJ as wa, aK as Ga, aL as _a, aM as Na, aN as Ua, aO as ka, aP as xa, aQ as Ha, aR as Ba, aS as Va, aT as Qa, aU as Wa, aV as Ya, aW as ja, aX as Xa, aY as qa, aZ as Za, a_ as Ja, a$ as Ka, b0 as $a, b1 as as, b2 as ss, b3 as es, b4 as ts, b5 as rs, b6 as os, b7 as is, b8 as ns, b9 as cs, ba as ls, bb as bs, bc as us, bd as gs, be as Ts, bf as ds, bg as ps, bh as Cs, bi as ms, bj as Ds, bk as Ss, bl as Rs, bm as Os, bn as Es, bo as fs, bp as Is, bq as ys, br as hs, bs as As, bt as Ps, bu as Ms, bv as vs, bw as Fs, f as Ls, bx as zs, by as ws, bz as Gs, bA as _s, bB as Ns, bC as Us, bD as ks, bE as xs, bF as Hs, c as Bs, bG as Vs, b as Qs, bH as Ws, bI as Ys, bJ as js, bK as Xs, bL as qs, bM as Zs, 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, c1 as Te, c2 as de, c3 as pe, c4 as Ce, c5 as me, c6 as De, c7 as Se, c7 as Re, c8 as Oe, c9 as Ee, ca as fe, cb as Ie, cc as ye, t as he, cd as Ae, ce as Pe, cf as Me, cg as ve, ch as Fe, ci as Le, u as ze, cj as we, ck as Ge, cl as _e, e as Ne, cm as Ue, cn as ke, co as xe, cp as He, cq as Be, cr as Ve, cs as Qe, ct as We, cu as Ye, cv as je, cw as Xe, cx as qe, a as Ze } from "./main-DmYsCy8b.js";
1
+ import { A as e, k as t, l as r, m as o, n as i, o as n, p as c, q as l, i as b, C as u, r as g, s as T, v as d, D as p, w as C, x as m, y as D, z as S, B as R, E as O, F as E, G as f, H as I, I as y, J as h, K as A, L as P, M, N as v, O as F, P as L, R as z, S as w, T as G, U as _, V as N, W as U, X as k, Y as x, Z as H, $ as B, a0 as V, a1 as Q, a2 as W, a3 as Y, a4 as j, a5 as X, a6 as q, a7 as Z, a8 as J, a9 as K, aa as $, ab as aa, ac as sa, ad as ea, ae as ta, af as ra, ag as oa, ah as ia, ai as na, aj as ca, ak as la, al as ba, am as ua, an as ga, ao as Ta, ap as da, aq as pa, ar as Ca, as as ma, at as Da, au as Sa, av as Ra, aw as Oa, ax as Ea, ay as fa, az as Ia, aA as ya, aB as ha, aC as Aa, aD as Pa, aE as Ma, aF as va, aG as Fa, aH as La, aI as za, aJ as wa, aK as Ga, aL as _a, aM as Na, aN as Ua, aO as ka, aP as xa, aQ as Ha, aR as Ba, aS as Va, aT as Qa, aU as Wa, aV as Ya, aW as ja, aX as Xa, aY as qa, aZ as Za, a_ as Ja, a$ as Ka, b0 as $a, b1 as as, b2 as ss, b3 as es, b4 as ts, b5 as rs, b6 as os, b7 as is, b8 as ns, b9 as cs, ba as ls, bb as bs, bc as us, bd as gs, be as Ts, bf as ds, bg as ps, bh as Cs, bi as ms, bj as Ds, bk as Ss, bl as Rs, bm as Os, bn as Es, bo as fs, bp as Is, bq as ys, br as hs, bs as As, bt as Ps, bu as Ms, bv as vs, bw as Fs, f as Ls, bx as zs, by as ws, bz as Gs, bA as _s, bB as Ns, bC as Us, bD as ks, bE as xs, bF as Hs, c as Bs, bG as Vs, b as Qs, bH as Ws, bI as Ys, bJ as js, bK as Xs, bL as qs, bM as Zs, 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, c1 as Te, c2 as de, c3 as pe, c4 as Ce, c5 as me, c6 as De, c7 as Se, c7 as Re, c8 as Oe, c9 as Ee, ca as fe, cb as Ie, cc as ye, t as he, cd as Ae, ce as Pe, cf as Me, cg as ve, ch as Fe, ci as Le, u as ze, cj as we, ck as Ge, cl as _e, e as Ne, cm as Ue, cn as ke, co as xe, cp as He, cq as Be, cr as Ve, cs as Qe, ct as We, cu as Ye, cv as je, cw as Xe, cx as qe, a as Ze } from "./main-ajZVLXAR.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, I as IDENTITY_TRANSFORM, r as reset, t as translate } from "./common-C3bYhKiN.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-B4L0JtRr.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-CwG9s9BF.js";
9
- import { j as commonjsGlobal, g as getDefaultExportFromCjs$1 } from "./main-DmYsCy8b.js";
9
+ import { j as commonjsGlobal, g as getDefaultExportFromCjs$1 } from "./main-ajZVLXAR.js";
10
10
  import { R as RenderEventType, a as asArray, B as BaseLayer } from "./Event-CfA33G1K.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-DI5PtNs-.js";
12
12
  function padNumber(i, e, t) {
@@ -1,4 +1,4 @@
1
- import { g as qo } from "./main-DmYsCy8b.js";
1
+ import { g as qo } from "./main-ajZVLXAR.js";
2
2
  function jo(Vt, qt) {
3
3
  for (var l = 0; l < qt.length; l++) {
4
4
  const it = qt[l];
@@ -51895,7 +51895,7 @@ const Hj = { class: "space-y-1 py-6" }, Vj = { class: "flex items-center space-x
51895
51895
  const t = e, i = X(null);
51896
51896
  return Q1(async () => {
51897
51897
  await Promise.resolve({ });
51898
- const s = await import("./leaflet-src-Dwr0MQKJ.js").then((l) => l.l);
51898
+ const s = await import("./leaflet-src-BVQOwwAz.js").then((l) => l.l);
51899
51899
  if (!i.value) return;
51900
51900
  const n = s.map(i.value);
51901
51901
  s.tileLayer("https://tile.openstreetmap.org/{z}/{x}/{y}.png", {
@@ -59417,7 +59417,7 @@ const QX = {
59417
59417
  canEdit: { type: Boolean, default: !1 }
59418
59418
  },
59419
59419
  setup(e) {
59420
- 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, s = H2(), n = ft(() => import("./MapContainer.client-Djkm7Ffx.js")), a = ft(() => import("./Pmtiles.client-B0pvBTZA.js")), l = ft(() => import("./JsonPreview.client-oVSo5Xoc.js")), c = ft(() => import("./PdfPreview.client--SRpDOiB.js")), u = ft(() => import("./XmlPreview.client-DoPp78zs.js")), h = ft(() => import("./ImagePreview.client-BK7Bro_1.js")), d = ft(() => import("./Datafair.client-d3BYHNiH.js")), { t: p } = H1(), C = TL(), g = A(() => {
59420
+ 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, s = H2(), n = ft(() => import("./MapContainer.client-DZcQPJZz.js")), a = ft(() => import("./Pmtiles.client-bKJX-Qr8.js")), l = ft(() => import("./JsonPreview.client-BTE1Tkyx.js")), c = ft(() => import("./PdfPreview.client-Blkihbpx.js")), u = ft(() => import("./XmlPreview.client-BxLfQYbe.js")), h = ft(() => import("./ImagePreview.client-CEHAHHAi.js")), d = ft(() => import("./Datafair.client-CbuEIwkL.js")), { t: p } = H1(), C = TL(), g = A(() => {
59421
59421
  const g1 = i.resource.format?.toLowerCase();
59422
59422
  return g1 === "json" || g1 === "pdf" || g1 === "xml" || qa(g1);
59423
59423
  }), m = A(() => C(i.resource)), w = A(() => i.resource.extras["analysis:parsing:pmtiles_url"] || i.resource.format === "pmtiles"), y = A(() => B9(i.dataset.organization) && i.resource.extras.datafairEmbed), L = A(() => B9(i.dataset.organization) && i.resource.extras.apidocUrl), H = A(() => Zn(i.resource.format) ? i.resource.format : p("Fichier")), V = A(() => _L(i.resource)), z = A(() => V.value === "wms"), M = X(i.expandedOnMount), N = () => {
@@ -67323,19 +67323,19 @@ const kp = /* @__PURE__ */ o({
67323
67323
  async setup(e) {
67324
67324
  let t, i;
67325
67325
  const s = ft(
67326
- () => import("./JsonPreview.client-oVSo5Xoc.js")
67326
+ () => import("./JsonPreview.client-BTE1Tkyx.js")
67327
67327
  ), n = ft(
67328
- () => import("./PdfPreview.client--SRpDOiB.js")
67328
+ () => import("./PdfPreview.client-Blkihbpx.js")
67329
67329
  ), a = ft(
67330
- () => import("./XmlPreview.client-DoPp78zs.js")
67330
+ () => import("./XmlPreview.client-BxLfQYbe.js")
67331
67331
  ), l = ft(
67332
- () => import("./ImagePreview.client-BK7Bro_1.js")
67332
+ () => import("./ImagePreview.client-CEHAHHAi.js")
67333
67333
  ), c = ft(
67334
- () => import("./Datafair.client-d3BYHNiH.js")
67334
+ () => import("./Datafair.client-CbuEIwkL.js")
67335
67335
  ), u = ft(
67336
- () => import("./MapContainer.client-Djkm7Ffx.js")
67336
+ () => import("./MapContainer.client-DZcQPJZz.js")
67337
67337
  ), h = ft(
67338
- () => import("./Pmtiles.client-B0pvBTZA.js")
67338
+ () => import("./Pmtiles.client-bKJX-Qr8.js")
67339
67339
  ), d = e, { t: p } = H1(), C = H2(), g = e5(), m = Ol(), {
67340
67340
  previewKind: w,
67341
67341
  hasTabularData: y,
@@ -77760,7 +77760,7 @@ const K71 = { class: "fr-search-bar fr-search-bar--lg w-full" }, Q71 = ["for"],
77760
77760
  "onUpdate:modelValue": u[0] || (u[0] = (h) => t.value = h),
77761
77761
  type: "search",
77762
77762
  name: "q",
77763
- class: "input flex-1 max-h-12 m-0 rounded-tl shadow-input-blue",
77763
+ class: "input max-h-12 m-0 rounded-tl shadow-input-blue",
77764
77764
  "aria-label": e.placeholder === null ? f(s)("Rechercher...") : e.placeholder ?? f(s)("Rechercher..."),
77765
77765
  placeholder: e.placeholder === null ? void 0 : e.placeholder ?? f(s)("Rechercher...")
77766
77766
  }, null, 8, X71), [
@@ -1,4 +1,4 @@
1
- import { g as Ke } from "./main-DmYsCy8b.js";
1
+ import { g as Ke } from "./main-ajZVLXAR.js";
2
2
  import We from "vue";
3
3
  function Fe(I, 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.213",
3
+ "version": "1.0.2-dev.214",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "engines": {
@@ -12,7 +12,7 @@
12
12
  v-model="q"
13
13
  type="search"
14
14
  name="q"
15
- class="input flex-1 max-h-12 m-0 rounded-tl shadow-input-blue"
15
+ class="input max-h-12 m-0 rounded-tl shadow-input-blue"
16
16
  :aria-label="placeholder === null ? t('Rechercher...') : placeholder ?? t('Rechercher...')"
17
17
  :placeholder="placeholder === null ? undefined : placeholder ?? t('Rechercher...')"
18
18
  >