@datagouv/components-next 1.0.2-dev.175 → 1.0.2-dev.177

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-C6yl7cs9.js";
2
+ import { a as h, d as v } from "./main-DD4ieUAo.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-C6yl7cs9.js";
2
+ import { a as z, u as T, b as k, d as h } from "./main-DD4ieUAo.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-C6yl7cs9.js";
3
- import { _ as h } from "./PreviewWrapper.vue_vue_type_script_setup_true_lang-xeH1RPpE.js";
2
+ import { u as d } from "./main-DD4ieUAo.js";
3
+ import { _ as h } from "./PreviewWrapper.vue_vue_type_script_setup_true_lang-DeoHZXW1.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-C6yl7cs9.js";
2
+ import { a as F, d as O } from "./main-DD4ieUAo.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-DJKcSjd1.js")
27
+ import("./index-CaUlhl3k.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-xeH1RPpE.js";
16
- import { u as Jd, _ as Gd } from "./main-C6yl7cs9.js";
15
+ import { _ as Md } from "./PreviewWrapper.vue_vue_type_script_setup_true_lang-DeoHZXW1.js";
16
+ import { u as Jd, _ as Gd } from "./main-DD4ieUAo.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-C6yl7cs9.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-DD4ieUAo.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-C6yl7cs9.js";
2
+ import { a as L, b as N, c as R, d as c } from "./main-DD4ieUAo.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-C6yl7cs9.js";
3
- import { _ as w } from "./PreviewWrapper.vue_vue_type_script_setup_true_lang-xeH1RPpE.js";
2
+ import { u as x } from "./main-DD4ieUAo.js";
3
+ import { _ as w } from "./PreviewWrapper.vue_vue_type_script_setup_true_lang-DeoHZXW1.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-BVy1SCNX.js").then((e) => e.v).then((e) => e.default || e.XmlViewer)
11
+ () => import("./vue3-xml-viewer.common-B1KPK4L4.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 m, z as S, 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 k, Z as x, $ as B, a0 as H, a1 as Q, a2 as V, a3 as j, a4 as W, a5 as Y, a6 as X, a7 as Z, a8 as $, a9 as q, aa as J, ab as K, 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 ma, au as Sa, 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 ka, aQ as xa, aR as Ba, aS as Ha, aT as Qa, aU as Va, aV as ja, aW as Wa, aX as Ya, aY as Xa, aZ as Za, a_ as $a, a$ as qa, b0 as Ja, b1 as Ka, 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 ms, bk as Ss, 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 ks, bC as xs, bD as Bs, bE as Hs, bF as Qs, bG as Vs, bH as js, bI as Ws, bJ as Ys, bK as Xs, bL as Zs, bM as $s, bN as qs, bO as Js, bP as Ks, 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, b$ as ge, c0 as Te, c1 as de, c2 as Ce, c3 as pe, c4 as me, t as Se, c5 as De, c6 as Re, c7 as Oe, c8 as Ee, c9 as fe, u as Ie, ca as ye, cb as he, cc as Ae, e as Me, cd 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 ke, co as xe, a as Be } from "./main-C6yl7cs9.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 m, z as S, 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 k, Z as x, $ as B, a0 as H, a1 as Q, a2 as V, a3 as j, a4 as W, a5 as Y, a6 as X, a7 as Z, a8 as $, a9 as q, aa as J, ab as K, 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 ma, au as Sa, 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 ka, aQ as xa, aR as Ba, aS as Ha, aT as Qa, aU as Va, aV as ja, aW as Wa, aX as Ya, aY as Xa, aZ as Za, a_ as $a, a$ as qa, b0 as Ja, b1 as Ka, 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 ms, bk as Ss, 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 ks, bC as xs, bD as Bs, bE as Hs, bF as Qs, bG as Vs, bH as js, bI as Ws, bJ as Ys, bK as Xs, bL as Zs, bM as $s, bN as qs, bO as Js, bP as Ks, 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, b$ as ge, c0 as Te, c1 as de, c2 as Ce, c3 as pe, c4 as me, t as Se, c5 as De, c6 as Re, c7 as Oe, c8 as Ee, c9 as fe, u as Ie, ca as ye, cb as he, cc as Ae, e as Me, cd 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 ke, co as xe, a as Be } from "./main-DD4ieUAo.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-C6yl7cs9.js";
9
+ import { k as commonjsGlobal, g as getDefaultExportFromCjs$1 } from "./main-DD4ieUAo.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-C6yl7cs9.js";
1
+ import { g as qo } from "./main-DD4ieUAo.js";
2
2
  function jo(Vt, qt) {
3
3
  for (var l = 0; l < qt.length; l++) {
4
4
  const it = qt[l];
@@ -52322,7 +52322,7 @@ const vU = { class: "space-y-1 py-6" }, HU = { class: "flex items-center space-x
52322
52322
  const t = e, i = J(null);
52323
52323
  return J1(async () => {
52324
52324
  await Promise.resolve({ });
52325
- const r = await import("./leaflet-src-BD33h89G.js").then((a) => a.l);
52325
+ const r = await import("./leaflet-src-ByYGrf8H.js").then((a) => a.l);
52326
52326
  if (!i.value) return;
52327
52327
  const n = r.map(i.value);
52328
52328
  r.tileLayer("https://tile.openstreetmap.org/{z}/{x}/{y}.png", {
@@ -59815,7 +59815,7 @@ const JK = {
59815
59815
  canEdit: { type: Boolean, default: !1 }
59816
59816
  },
59817
59817
  setup(e) {
59818
- 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-C2-wpwfR.js")), l = lt(() => import("./Pmtiles.client-Dvs5bOnS.js")), a = lt(() => import("./JsonPreview.client-B8uxh1GZ.js")), c = lt(() => import("./PdfPreview.client-TZBvHz1H.js")), u = lt(() => import("./XmlPreview.client-B8VNtxJh.js")), h = lt(() => import("./ImagePreview.client-BOl9-Gsf.js")), d = lt(() => import("./Datafair.client-Fk_pm1Ur.js")), { t: p } = w1(), { formatRelativeIfRecentDate: C } = We(), g = Lm(), m = A(() => {
59818
+ 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-IGYJWP5m.js")), l = lt(() => import("./Pmtiles.client-CLq7UHBg.js")), a = lt(() => import("./JsonPreview.client-CKOU-LBs.js")), c = lt(() => import("./PdfPreview.client-csUebU3A.js")), u = lt(() => import("./XmlPreview.client-C1toAbQ0.js")), h = lt(() => import("./ImagePreview.client-CPmCyisP.js")), d = lt(() => import("./Datafair.client-CaxMyNif.js")), { t: p } = w1(), { formatRelativeIfRecentDate: C } = We(), g = Lm(), m = A(() => {
59819
59819
  const v1 = i.resource.format?.toLowerCase();
59820
59820
  return v1 === "json" || v1 === "pdf" || v1 === "xml" || z6(v1);
59821
59821
  }), f = A(() => g(i.resource)), x = A(() => i.resource.extras["analysis:parsing:pmtiles_url"] || i.resource.format === "pmtiles"), y = A(() => Q9(i.dataset.organization) && i.resource.extras.datafairEmbed), H = A(() => Q9(i.dataset.organization) && i.resource.extras.apidocUrl), V = A(() => Zr(i.resource.format) ? i.resource.format : p("Fichier")), b = A(() => fm(i.resource)), M = A(() => b.value === "wms"), z = J(i.expandedOnMount), B = () => {
@@ -62398,19 +62398,19 @@ const AX = { class: "flex min-h-0 flex-1 flex-col" }, kX = { class: "text-xs bre
62398
62398
  async setup(e) {
62399
62399
  let t, i;
62400
62400
  const r = lt(
62401
- () => import("./JsonPreview.client-B8uxh1GZ.js")
62401
+ () => import("./JsonPreview.client-CKOU-LBs.js")
62402
62402
  ), n = lt(
62403
- () => import("./PdfPreview.client-TZBvHz1H.js")
62403
+ () => import("./PdfPreview.client-csUebU3A.js")
62404
62404
  ), l = lt(
62405
- () => import("./XmlPreview.client-B8VNtxJh.js")
62405
+ () => import("./XmlPreview.client-C1toAbQ0.js")
62406
62406
  ), a = lt(
62407
- () => import("./ImagePreview.client-BOl9-Gsf.js")
62407
+ () => import("./ImagePreview.client-CPmCyisP.js")
62408
62408
  ), c = lt(
62409
- () => import("./Datafair.client-Fk_pm1Ur.js")
62409
+ () => import("./Datafair.client-CaxMyNif.js")
62410
62410
  ), u = lt(
62411
- () => import("./MapContainer.client-C2-wpwfR.js")
62411
+ () => import("./MapContainer.client-IGYJWP5m.js")
62412
62412
  ), h = lt(
62413
- () => import("./Pmtiles.client-Dvs5bOnS.js")
62413
+ () => import("./Pmtiles.client-CLq7UHBg.js")
62414
62414
  ), d = e, { t: p } = w1(), C = V2(), g = fs(), m = lp(), {
62415
62415
  previewKind: f,
62416
62416
  hasTabularData: x,
@@ -73534,8 +73534,8 @@ const gi1 = ["for", "title"], fi1 = {
73534
73534
  setup(e, { emit: t }) {
73535
73535
  const i = t, { t: r } = w1(), n = [
73536
73536
  { value: "open", label: r("Téléchargement libre") },
73537
- { value: "open_with_account", label: r("Ouvert sous condition") },
73538
- { value: "restricted", label: r("Accessible sous habilitation") }
73537
+ { value: "open_with_account", label: r("Ouvert avec un compte") },
73538
+ { value: "restricted", label: r("Accès restreint") }
73539
73539
  ];
73540
73540
  return (l, a) => (v(), j(Yi, {
73541
73541
  "model-value": e.modelValue,
@@ -1,4 +1,4 @@
1
- import { g as Ke } from "./main-C6yl7cs9.js";
1
+ import { g as Ke } from "./main-DD4ieUAo.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.175",
3
+ "version": "1.0.2-dev.177",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "engines": {
@@ -31,7 +31,7 @@ const { t } = useTranslation()
31
31
 
32
32
  const options = [
33
33
  { value: 'open', label: t('Téléchargement libre') },
34
- { value: 'open_with_account', label: t('Ouvert sous condition') },
35
- { value: 'restricted', label: t('Accessible sous habilitation') },
34
+ { value: 'open_with_account', label: t('Ouvert avec un compte') },
35
+ { value: 'restricted', label: t('Accès restreint') },
36
36
  ]
37
37
  </script>