@datagouv/components-next 1.0.2-dev.234 → 1.0.2-dev.236
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.
- package/dist/{ImagePreview.client-CSRz7eUF.js → ImagePreview.client-DLua0loY.js} +7 -7
- package/dist/{JsonPreview.client-wT2hfYLv.js → JsonPreview.client-BccnDGn0.js} +2 -2
- package/dist/{PdfPreview.client-DifxM8Th.js → PdfPreview.client-BqkVStKD.js} +2 -2
- package/dist/{Pmtiles.client-OyXiX_7g.js → Pmtiles.client-CTXTfoSy.js} +11 -11
- package/dist/{PreviewWrapper-D7yfQyyH.js → PreviewWrapper-BnFrOpCg.js} +1 -1
- package/dist/{XmlPreview.client-BkPGZLn6.js → XmlPreview.client-sKyOWR0L.js} +2 -2
- package/dist/components-next.js +10625 -10501
- package/dist/components.css +1 -1
- package/dist/{vue-D5eMxsCr.js → config-jrnuUDOH.js} +6542 -6540
- package/dist/{france-BNatwStf.js → france-Ub9ufuh4.js} +66 -66
- package/dist/{resources-kuI_FosB.js → resources-DuiPzI4e.js} +22 -22
- package/package.json +1 -1
- package/src/components/ActivityList/ActivityActor.vue +38 -0
- package/src/components/ActivityList/ActivityList.vue +70 -84
- package/src/components/AvatarWithName.vue +40 -16
- package/src/functions/activities.ts +111 -0
- package/src/functions/users.ts +10 -1
- package/src/main.ts +2 -0
- package/src/types/activity.ts +25 -5
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { l as r } from "./resources-
|
|
1
|
+
import { n as e } from "./config-jrnuUDOH.js";
|
|
2
|
+
import { o as t, t as n } from "./PreviewUnavailable-BJkpCiyL.js";
|
|
3
|
+
import { l as r } from "./resources-DuiPzI4e.js";
|
|
4
4
|
import { computed as i, createBlock as a, createElementBlock as o, createTextVNode as s, defineComponent as c, openBlock as l, ref as u, toDisplayString as d, unref as f, withCtx as p } from "vue";
|
|
5
5
|
//#region src/components/ResourceAccordion/ImagePreview.client.vue?vue&type=script&setup=true&lang.ts
|
|
6
6
|
var m = { class: "text-xs" }, h = ["src"], g = /* @__PURE__ */ c({
|
|
7
7
|
__name: "ImagePreview.client",
|
|
8
8
|
props: { resource: {} },
|
|
9
9
|
setup(c) {
|
|
10
|
-
let g = c, { t: _ } =
|
|
10
|
+
let g = c, { t: _ } = t(), v = e(), y = u(!1), b = i(() => g.resource.format?.toUpperCase() ?? _("Fichier")), x = i(() => r(g.resource)), S = i(() => {
|
|
11
11
|
let e = x.value, t = v.maxImagePreviewByteSize;
|
|
12
12
|
return !e || !t ? !1 : e <= t;
|
|
13
13
|
});
|
|
14
|
-
return (e,
|
|
14
|
+
return (e, t) => (l(), o("div", m, [S.value ? y.value ? (l(), a(n, { key: 1 }, {
|
|
15
15
|
default: p(() => [s(d(f(_)("L'aperçu de ce fichier n'a pas pu être chargé. Téléchargez-le pour le consulter.")), 1)]),
|
|
16
16
|
_: 1
|
|
17
17
|
})) : (l(), o("img", {
|
|
@@ -19,8 +19,8 @@ var m = { class: "text-xs" }, h = ["src"], g = /* @__PURE__ */ c({
|
|
|
19
19
|
src: c.resource.url,
|
|
20
20
|
alt: "",
|
|
21
21
|
class: "block w-full h-auto max-w-[800px]",
|
|
22
|
-
onError:
|
|
23
|
-
}, null, 40, h)) : (l(), a(
|
|
22
|
+
onError: t[0] ||= (e) => y.value = !0
|
|
23
|
+
}, null, 40, h)) : (l(), a(n, { key: 0 }, {
|
|
24
24
|
default: p(() => [s(d(x.value ? f(_)("Le fichier {fileType} est trop volumineux pour être prévisualisé. Téléchargez-le pour le consulter.", { fileType: b.value }) : f(_)("La taille du fichier est inconnue, l'aperçu n'est pas disponible. Téléchargez-le pour le consulter.")), 1)]),
|
|
25
25
|
_: 1
|
|
26
26
|
}))]));
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t } from "./PreviewWrapper-
|
|
1
|
+
import { n as e } from "./config-jrnuUDOH.js";
|
|
2
|
+
import { t } from "./PreviewWrapper-BnFrOpCg.js";
|
|
3
3
|
import { createBlock as n, createVNode as r, defineAsyncComponent as i, defineComponent as a, openBlock as o, unref as s, withCtx as c } from "vue";
|
|
4
4
|
//#endregion
|
|
5
5
|
//#region src/components/ResourceAccordion/JsonPreview.client.vue
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { n as e } from "./config-jrnuUDOH.js";
|
|
2
2
|
import { t } from "./PdfSkeleton-5HBfBlXx.js";
|
|
3
|
-
import { t as n } from "./PreviewWrapper-
|
|
3
|
+
import { t as n } from "./PreviewWrapper-BnFrOpCg.js";
|
|
4
4
|
import { Fragment as r, createBlock as i, createElementBlock as a, createElementVNode as o, createVNode as s, defineComponent as c, normalizeClass as l, onBeforeUnmount as u, openBlock as d, ref as f, renderList as p, unref as m, withCtx as h } from "vue";
|
|
5
5
|
//#region ../node_modules/pdfjs-dist/build/pdf.mjs
|
|
6
6
|
var g = {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { o as e, t } from "./rolldown-runtime-CEFd7nDs.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
2
|
+
import { n, o as r, r as i, t as a, u as o } from "./france-Ub9ufuh4.js";
|
|
3
|
+
import { D as s, n as c } from "./config-jrnuUDOH.js";
|
|
4
|
+
import { o as l, t as u } from "./PreviewUnavailable-BJkpCiyL.js";
|
|
5
5
|
import { t as d } from "./purify.es-CeeOHdER.js";
|
|
6
6
|
import { computed as f, createBlock as p, createCommentVNode as m, createElementBlock as h, createElementVNode as g, createTextVNode as _, createVNode as v, defineComponent as y, onMounted as b, openBlock as x, ref as S, toDisplayString as C, unref as w, useTemplateRef as T, withCtx as E } from "vue";
|
|
7
7
|
//#region ../node_modules/fflate/esm/browser.js
|
|
@@ -38299,17 +38299,17 @@ var tt = et, H = /* @__PURE__ */ e((/* @__PURE__ */ t(((e, t) => {
|
|
|
38299
38299
|
dataset: {}
|
|
38300
38300
|
},
|
|
38301
38301
|
setup(e) {
|
|
38302
|
-
let t = e, { t: y } =
|
|
38302
|
+
let t = e, { t: y } = l(), { formatDate: D } = o(), O = c(), k = S(!1), A = f(() => t.resource.extras["analysis:parsing:pmtiles_url"] ? t.resource.extras["analysis:parsing:pmtiles_url"] : t.resource.url), ee = f(() => O.pmtilesViewerBaseUrl ? `${O.pmtilesViewerBaseUrl}${encodeURIComponent(A.value)}` : null), te = f(() => t.resource.extras["analysis:parsing:pmtiles_url"] ? D(t.resource.extras["analysis:parsing:finished_at"]) : D(t.resource.last_modified)), j = T("containerRef"), ne = f(() => i(t.dataset));
|
|
38303
38303
|
async function re() {
|
|
38304
38304
|
await Promise.resolve({ });
|
|
38305
38305
|
let e = new Fe();
|
|
38306
38306
|
H.default.addProtocol("pmtiles", e.tile);
|
|
38307
38307
|
let t = new tt(A.value);
|
|
38308
38308
|
e.add(t), t.getHeader().then((e) => {
|
|
38309
|
-
let
|
|
38309
|
+
let r = e.minLon < e.maxLon && e.minLat < e.maxLat, i = new H.default.Map({
|
|
38310
38310
|
container: j.value,
|
|
38311
38311
|
style: nt,
|
|
38312
|
-
...
|
|
38312
|
+
...r ? {
|
|
38313
38313
|
bounds: [[e.minLon, e.minLat], [e.maxLon, e.maxLat]],
|
|
38314
38314
|
fitBoundsOptions: { padding: 24 }
|
|
38315
38315
|
} : {
|
|
@@ -38346,7 +38346,7 @@ var tt = et, H = /* @__PURE__ */ e((/* @__PURE__ */ t(((e, t) => {
|
|
|
38346
38346
|
case "Polygon": return "fill";
|
|
38347
38347
|
case "Point": return "circle";
|
|
38348
38348
|
case "LineString": return "line";
|
|
38349
|
-
default: return
|
|
38349
|
+
default: return n(e.geometry, "Unsupported geometry"), "";
|
|
38350
38350
|
}
|
|
38351
38351
|
});
|
|
38352
38352
|
i.addLayer({
|
|
@@ -38373,18 +38373,18 @@ var tt = et, H = /* @__PURE__ */ e((/* @__PURE__ */ t(((e, t) => {
|
|
|
38373
38373
|
}
|
|
38374
38374
|
return b(() => {
|
|
38375
38375
|
re();
|
|
38376
|
-
}), (e, t) => (x(), h("div", rt, [k.value ? (x(), p(
|
|
38376
|
+
}), (e, t) => (x(), h("div", rt, [k.value ? (x(), p(u, { key: 0 }, {
|
|
38377
38377
|
default: E(() => [_(C(w(y)("L'aperçu cartographique de ce fichier n'a pas pu être chargé.")), 1)]),
|
|
38378
38378
|
_: 1
|
|
38379
38379
|
})) : (x(), h("div", it, [ee.value ? (x(), h("div", at, [g("div", ot, [
|
|
38380
38380
|
g("div", {
|
|
38381
38381
|
class: "fr-col-auto",
|
|
38382
|
-
innerHTML: w(
|
|
38382
|
+
innerHTML: w(a)
|
|
38383
38383
|
}, null, 8, st),
|
|
38384
38384
|
g("div", ct, [g("p", lt, C(w(y)("Explorer les données en détail")), 1), g("p", ut, C(w(y)("Utiliser un visualisateur PMTiles pour obtenir un aperçu des données.")), 1)]),
|
|
38385
|
-
g("p", dt, [v(
|
|
38385
|
+
g("p", dt, [v(r, {
|
|
38386
38386
|
href: ee.value,
|
|
38387
|
-
icon: w(
|
|
38387
|
+
icon: w(s),
|
|
38388
38388
|
"icon-right": ""
|
|
38389
38389
|
}, {
|
|
38390
38390
|
default: E(() => [_(C(w(y)("Explorer la carte")), 1)]),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { o as e, t } from "./PreviewUnavailable-BJkpCiyL.js";
|
|
2
|
-
import { l as n, s as r } from "./resources-
|
|
2
|
+
import { l as n, s as r } from "./resources-DuiPzI4e.js";
|
|
3
3
|
import { computed as i, createBlock as a, createCommentVNode as o, createElementBlock as s, createElementVNode as c, createTextVNode as l, defineComponent as u, nextTick as d, normalizeClass as f, onMounted as p, openBlock as m, ref as h, renderSlot as g, toDisplayString as _, unref as v, withCtx as y } from "vue";
|
|
4
4
|
//#region src/components/ResourceAccordion/PreviewWrapper.vue?vue&type=script&setup=true&lang.ts
|
|
5
5
|
var b = { class: "text-gray-medium" }, x = /* @__PURE__ */ u({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { o as e } from "./rolldown-runtime-CEFd7nDs.js";
|
|
2
|
-
import {
|
|
3
|
-
import { t as n } from "./PreviewWrapper-
|
|
2
|
+
import { n as t } from "./config-jrnuUDOH.js";
|
|
3
|
+
import { t as n } from "./PreviewWrapper-BnFrOpCg.js";
|
|
4
4
|
import { createBlock as r, createVNode as i, defineAsyncComponent as a, defineComponent as o, openBlock as s, unref as c, withCtx as l } from "vue";
|
|
5
5
|
//#endregion
|
|
6
6
|
//#region src/components/ResourceAccordion/XmlPreview.client.vue
|