@datagouv/components-next 1.0.0 → 1.0.1
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/assets/main.css +0 -28
- package/dist/{Datafair.client-Dls5AHTE.js → Datafair.client-B5lBpOl8.js} +2 -2
- package/dist/{JsonPreview.client-DPDTs433.js → JsonPreview.client-Doz1Z0BS.js} +16 -16
- package/dist/{MapContainer.client-BdAzd7bj.js → MapContainer.client-oiieO8H-.js} +3 -3
- package/dist/PdfPreview.client-CdAhkDFJ.js +14513 -0
- package/dist/{Pmtiles.client-mF6xaOO_.js → Pmtiles.client-B0v8tGJQ.js} +2 -2
- package/dist/Swagger.client-CsK65JnG.js +4 -0
- package/dist/{XmlPreview.client-C0OgBkSq.js → XmlPreview.client-CrjHf74q.js} +15 -15
- package/dist/components-next.css +1 -1
- package/dist/components-next.js +130 -125
- package/dist/components.css +1 -1
- package/dist/{index-BRGqW8aQ.js → index-Bbu9rOHt.js} +1 -1
- package/dist/{main-CNHxAJ8J.js → main-CiH8ZmBI.js} +22114 -21911
- package/dist/{vue3-xml-viewer.common-CmAdQfIy.js → vue3-xml-viewer.common-Bi_bsV6C.js} +1 -1
- package/package.json +2 -2
- package/src/components/DataserviceCard.vue +3 -3
- package/src/components/DatasetCard.vue +2 -2
- package/src/components/DatasetQuality.vue +23 -16
- package/src/components/DatasetQualityInline.vue +13 -17
- package/src/components/DatasetQualityScore.vue +12 -15
- package/src/components/DiscussionMessageCard.vue +1 -1
- package/src/components/ObjectCard.vue +2 -2
- package/src/components/ObjectCardHeader.vue +1 -1
- package/src/components/OrganizationHorizontalCard.vue +87 -0
- package/src/components/OrganizationNameWithCertificate.vue +1 -1
- package/src/components/ProgressBar.vue +31 -0
- package/src/components/ResourceAccordion/Datafair.client.vue +1 -1
- package/src/components/ResourceAccordion/JsonPreview.client.vue +3 -3
- package/src/components/ResourceAccordion/MapContainer.client.vue +1 -1
- package/src/components/ResourceAccordion/PdfPreview.client.vue +70 -74
- package/src/components/ResourceAccordion/Pmtiles.client.vue +1 -1
- package/src/components/ResourceAccordion/Preview.vue +1 -1
- package/src/components/ResourceAccordion/ResourceAccordion.vue +5 -8
- package/src/components/ResourceAccordion/XmlPreview.client.vue +3 -3
- package/src/components/ResourceExplorer/ResourceExplorerViewer.vue +50 -1
- package/src/components/ReuseHorizontalCard.vue +1 -1
- package/src/components/Search/Filter/ProducerTypeFilter.vue +13 -3
- package/src/components/Search/GlobalSearch.vue +124 -28
- package/src/components/Toggletip.vue +5 -2
- package/src/components/TopicCard.vue +1 -1
- package/src/composables/useHasTabularData.ts +15 -0
- package/src/composables/useResourceCapabilities.ts +18 -5
- package/src/composables/useTranslation.ts +2 -1
- package/src/functions/api.ts +11 -3
- package/src/functions/api.types.ts +1 -1
- package/src/functions/resourceCapabilities.ts +55 -0
- package/src/main.ts +8 -1
- package/src/types/resources.ts +10 -0
- package/src/types/search.ts +29 -1
- package/dist/PdfPreview.client-CopqSDyt.js +0 -107
- package/dist/Swagger.client-eJ7gpfZA.js +0 -4
- package/dist/pdf-vue3-IkJO65RH.js +0 -273
- package/dist/pdf.min-f72cfa08-CdgJTooZ.js +0 -9501
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as ig, ref as rg, computed as Ol, useTemplateRef as ng, onMounted as ag, createElementBlock as Th, openBlock as nu, createBlock as sg, withCtx as wd, createVNode as Td, createElementVNode as ha, unref as La, toDisplayString as jl, createCommentVNode as og, createTextVNode as lg } from "vue";
|
|
2
|
-
import { b as cg, a as ug, c as hg, u as pg, d as dg, e as fg, _ as mg, F as gg, f as _g, h as yg, K as xg, t as vg } from "./main-
|
|
2
|
+
import { b as cg, a as ug, c as hg, u as pg, d as dg, e as fg, _ as mg, F as gg, f as _g, h as yg, K as xg, t as vg } from "./main-CiH8ZmBI.js";
|
|
3
3
|
var tn = Uint8Array, So = Uint16Array, bg = Int32Array, Dd = new tn([
|
|
4
4
|
0,
|
|
5
5
|
0,
|
|
@@ -22772,7 +22772,7 @@ const T_ = 8, S_ = "Bright", P_ = { "mapbox:autocomposite": !1, "mapbox:groups":
|
|
|
22772
22772
|
class: "flex items-center space-x-2"
|
|
22773
22773
|
}, {
|
|
22774
22774
|
default: wd(() => [
|
|
22775
|
-
Td(La(gg), { class: "
|
|
22775
|
+
Td(La(gg), { class: "shrink-0 size-6" }),
|
|
22776
22776
|
ha("span", null, jl(La(X)("L'aperçu cartographique de ce fichier n'a pas pu être chargé.")), 1)
|
|
22777
22777
|
]),
|
|
22778
22778
|
_: 1
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as b, defineAsyncComponent as L, ref as o, computed as w, onMounted as T, createElementBlock as p, openBlock as
|
|
2
|
-
import { u as E, a as M, g as q, _ as h, F as v } from "./main-
|
|
1
|
+
import { defineComponent as b, defineAsyncComponent as L, ref as o, computed as w, onMounted as T, createElementBlock as p, openBlock as r, createBlock as m, createCommentVNode as P, createVNode as u, unref as t, toDisplayString as i, withCtx as f, createElementVNode as d } from "vue";
|
|
2
|
+
import { u as E, a as M, g as q, _ as h, F as v } from "./main-CiH8ZmBI.js";
|
|
3
3
|
const B = { class: "fr-text--xs" }, S = { key: 0 }, V = {
|
|
4
4
|
key: 1,
|
|
5
5
|
class: "text-gray-medium"
|
|
@@ -10,8 +10,8 @@ const B = { class: "fr-text--xs" }, S = { key: 0 }, V = {
|
|
|
10
10
|
},
|
|
11
11
|
setup(k) {
|
|
12
12
|
const z = L(
|
|
13
|
-
() => import("./vue3-xml-viewer.common-
|
|
14
|
-
), g = k, x = E(), { t:
|
|
13
|
+
() => import("./vue3-xml-viewer.common-Bi_bsV6C.js").then((e) => e.v).then((e) => e.default || e.XmlViewer)
|
|
14
|
+
), g = k, x = E(), { t: l } = M(), n = o(null), c = o(!1), s = o(null), _ = o(!1), y = w(() => q(g.resource)), X = w(() => {
|
|
15
15
|
const e = y.value;
|
|
16
16
|
if (!e || !x.maxXmlPreviewCharSize)
|
|
17
17
|
return !1;
|
|
@@ -37,37 +37,37 @@ const B = { class: "fr-text--xs" }, S = { key: 0 }, V = {
|
|
|
37
37
|
};
|
|
38
38
|
return T(() => {
|
|
39
39
|
C();
|
|
40
|
-
}), (e, a) => (
|
|
41
|
-
n.value ? (
|
|
40
|
+
}), (e, a) => (r(), p("div", B, [
|
|
41
|
+
n.value ? (r(), p("div", S, [
|
|
42
42
|
u(t(z), { xml: n.value }, null, 8, ["xml"])
|
|
43
|
-
])) : c.value ? (
|
|
43
|
+
])) : c.value ? (r(), p("div", V, i(t(l)("Chargement de l'aperçu XML...")), 1)) : _.value ? (r(), m(h, {
|
|
44
44
|
key: 2,
|
|
45
45
|
type: "warning",
|
|
46
46
|
class: "flex items-center space-x-2"
|
|
47
47
|
}, {
|
|
48
48
|
default: f(() => [
|
|
49
|
-
u(t(v), { class: "
|
|
50
|
-
d("span", null, i(y.value ? t(
|
|
49
|
+
u(t(v), { class: "shrink-0 size-6" }),
|
|
50
|
+
d("span", null, i(y.value ? t(l)("Fichier XML trop volumineux pour l'aperçu. Pour consulter le fichier complet, téléchargez-le en cliquant sur le bouton bleu ou depuis l'onglet Téléchargements.") : t(l)("L'aperçu n'est pas disponible car la taille du fichier est inconnue. Pour consulter le fichier complet, téléchargez-le en cliquant sur le bouton bleu ou depuis l'onglet Téléchargements.")), 1)
|
|
51
51
|
]),
|
|
52
52
|
_: 1
|
|
53
|
-
})) : s.value === "network" ? (
|
|
53
|
+
})) : s.value === "network" ? (r(), m(h, {
|
|
54
54
|
key: 3,
|
|
55
55
|
type: "warning",
|
|
56
56
|
class: "flex items-center space-x-2"
|
|
57
57
|
}, {
|
|
58
58
|
default: f(() => [
|
|
59
|
-
u(t(v), { class: "
|
|
60
|
-
d("span", null, i(t(
|
|
59
|
+
u(t(v), { class: "shrink-0 size-6" }),
|
|
60
|
+
d("span", null, i(t(l)("Ce fichier XML ne peut pas être prévisualisé, peut-être parce qu'il est hébergé sur un autre site qui ne l'autorise pas. Pour le consulter, téléchargez-le en cliquant sur le bouton bleu ou depuis l'onglet Téléchargements.")), 1)
|
|
61
61
|
]),
|
|
62
62
|
_: 1
|
|
63
|
-
})) : s.value ? (
|
|
63
|
+
})) : s.value ? (r(), m(h, {
|
|
64
64
|
key: 4,
|
|
65
65
|
type: "warning",
|
|
66
66
|
class: "flex items-center space-x-2"
|
|
67
67
|
}, {
|
|
68
68
|
default: f(() => [
|
|
69
|
-
u(t(v), { class: "
|
|
70
|
-
d("span", null, i(t(
|
|
69
|
+
u(t(v), { class: "shrink-0 size-6" }),
|
|
70
|
+
d("span", null, i(t(l)("Erreur lors du chargement de l'aperçu XML.")), 1)
|
|
71
71
|
]),
|
|
72
72
|
_: 1
|
|
73
73
|
})) : P("", !0)
|