@datagouv/components-next 1.0.0 → 1.0.2-dev.0
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/{Control-BNCDn-8E.js → Control-DuZJdKV_.js} +1 -1
- package/dist/{Datafair.client-Dls5AHTE.js → Datafair.client-DpeBuzZZ.js} +2 -2
- package/dist/{Event-BOgJUhNR.js → Event--kp8kMdJ.js} +21 -21
- package/dist/{Image-BN-4XkIn.js → Image-34hvypZI.js} +114 -58
- package/dist/{JsonPreview.client-DPDTs433.js → JsonPreview.client-B3sQR-rW.js} +16 -16
- package/dist/{Map-BdT3i2C4.js → Map-BjUnLyj8.js} +1534 -1466
- package/dist/{MapContainer.client-BdAzd7bj.js → MapContainer.client-BA6GCqKX.js} +8 -8
- package/dist/{OSM-CamriM9b.js → OSM-s40W6sQ2.js} +22 -12
- package/dist/PdfPreview.client-CbeSChb8.js +14513 -0
- package/dist/Pmtiles.client-D8pFim1L.js +25190 -0
- package/dist/{ScaleLine-BiesrgOv.js → ScaleLine-KW-nXqp3.js} +2 -2
- package/dist/Swagger.client-B-2Q16qa.js +4 -0
- package/dist/{Tile-DCuqwNOI.js → Tile-DbNFNPfU.js} +189 -172
- package/dist/{TileImage-CmZf8EdU.js → TileImage-BsXBxMtq.js} +132 -102
- package/dist/{View-DcDc7N2K.js → View-BR92hTWP.js} +8 -8
- package/dist/{XmlPreview.client-C0OgBkSq.js → XmlPreview.client-DWJt61wG.js} +15 -15
- package/dist/{common-C4rDcQpp.js → common-PJfpC179.js} +34 -33
- package/dist/components-next.css +4 -4
- package/dist/components-next.js +130 -125
- package/dist/components.css +2 -2
- package/dist/{index-BRGqW8aQ.js → index-DVp7Y0Xu.js} +11105 -6743
- package/dist/{main-CNHxAJ8J.js → main-CrSRA2X-.js} +25208 -25053
- package/dist/{proj-CKwYjU38.js → proj-DsetBcW7.js} +513 -498
- package/dist/{tilecoord-YW3qEH_j.js → tilecoord-Db24Px13.js} +242 -224
- package/dist/{vue3-xml-viewer.common-CmAdQfIy.js → vue3-xml-viewer.common-BjA4LdSC.js} +1 -1
- package/package.json +3 -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/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 +3 -4
- package/src/composables/useTranslation.ts +2 -1
- package/src/functions/api.types.ts +1 -1
- package/src/main.ts +8 -1
- package/src/types/search.ts +29 -1
- package/dist/PdfPreview.client-CopqSDyt.js +0 -107
- package/dist/Pmtiles.client-mF6xaOO_.js +0 -22812
- 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 G, useTemplateRef as W, ref as z, onMounted as B, createBlock as F, createElementBlock as N, openBlock as u, withCtx as V, createVNode as U, createElementVNode as q, unref as m, toDisplayString as A } from "vue";
|
|
2
|
-
import { a as D, _ as O, F as P } from "./main-
|
|
2
|
+
import { a as D, _ as O, F as P } from "./main-CrSRA2X-.js";
|
|
3
3
|
const j = /* @__PURE__ */ G({
|
|
4
4
|
__name: "MapContainer.client",
|
|
5
5
|
props: {
|
|
@@ -18,13 +18,13 @@ const j = /* @__PURE__ */ G({
|
|
|
18
18
|
{ default: C },
|
|
19
19
|
_
|
|
20
20
|
] = await Promise.all([
|
|
21
|
-
import("./View-
|
|
22
|
-
import("./Map-
|
|
23
|
-
import("./ScaleLine-
|
|
24
|
-
import("./Tile-
|
|
25
|
-
import("./OSM-
|
|
21
|
+
import("./View-BR92hTWP.js").then((t) => t.M),
|
|
22
|
+
import("./Map-BjUnLyj8.js").then((t) => t.U),
|
|
23
|
+
import("./ScaleLine-KW-nXqp3.js"),
|
|
24
|
+
import("./Tile-DbNFNPfU.js").then((t) => t.d),
|
|
25
|
+
import("./OSM-s40W6sQ2.js"),
|
|
26
26
|
// @ts-expect-error no types provided
|
|
27
|
-
import("./index-
|
|
27
|
+
import("./index-DVp7Y0Xu.js")
|
|
28
28
|
]), { CRS: g, GeoportalAttribution: S, GeoportalFullScreen: M, GeoportalZoom: b, LayerImport: v, LayerSwitcher: L } = _;
|
|
29
29
|
await Promise.resolve({ }), await Promise.resolve({ }), await Promise.resolve({ }), await Promise.resolve({ }), g.load(), e = new s({
|
|
30
30
|
target: r.value,
|
|
@@ -88,7 +88,7 @@ const j = /* @__PURE__ */ G({
|
|
|
88
88
|
class: "flex items-center space-x-2"
|
|
89
89
|
}, {
|
|
90
90
|
default: V(() => [
|
|
91
|
-
U(m(P), { class: "
|
|
91
|
+
U(m(P), { class: "shrink-0 size-6" }),
|
|
92
92
|
q("span", null, A(m(d)("L'aperçu cartographique de ce fichier n'a pas pu être chargé.")), 1)
|
|
93
93
|
]),
|
|
94
94
|
_: 1
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { W as u } from "./Image-34hvypZI.js";
|
|
2
|
+
import { T as d, c as o, e as m, d as s } from "./TileImage-BsXBxMtq.js";
|
|
3
|
+
class g extends d {
|
|
3
4
|
/**
|
|
4
5
|
* @param {Options} [options] XYZ options.
|
|
5
6
|
*/
|
|
6
7
|
constructor(e) {
|
|
7
8
|
e = e || {};
|
|
8
|
-
const r = e.projection !== void 0 ? e.projection : "EPSG:3857", t = e.tileGrid !== void 0 ? e.tileGrid :
|
|
9
|
-
extent:
|
|
9
|
+
const r = e.projection !== void 0 ? e.projection : "EPSG:3857", t = e.tileGrid !== void 0 ? e.tileGrid : o({
|
|
10
|
+
extent: m(r),
|
|
10
11
|
maxResolution: e.maxResolution,
|
|
11
12
|
maxZoom: e.maxZoom,
|
|
12
13
|
minZoom: e.minZoom,
|
|
@@ -39,16 +40,16 @@ class u extends l {
|
|
|
39
40
|
return this.gutter_;
|
|
40
41
|
}
|
|
41
42
|
}
|
|
42
|
-
const
|
|
43
|
-
class
|
|
43
|
+
const h = '© <a href="https://www.openstreetmap.org/copyright" target="_blank">OpenStreetMap</a> contributors.';
|
|
44
|
+
class b extends g {
|
|
44
45
|
/**
|
|
45
46
|
* @param {Options} [options] Open Street Map options.
|
|
46
47
|
*/
|
|
47
48
|
constructor(e) {
|
|
48
49
|
e = e || {};
|
|
49
50
|
let r;
|
|
50
|
-
e.attributions !== void 0 ? r = e.attributions : r = [
|
|
51
|
-
const t = e.crossOrigin !== void 0 ? e.crossOrigin : "anonymous",
|
|
51
|
+
e.attributions !== void 0 ? r = e.attributions : r = [h];
|
|
52
|
+
const t = e.crossOrigin !== void 0 ? e.crossOrigin : "anonymous", l = e.url !== void 0 ? e.url : "https://tile.openstreetmap.org/{z}/{x}/{y}.png";
|
|
52
53
|
super({
|
|
53
54
|
attributions: r,
|
|
54
55
|
attributionsCollapsible: !1,
|
|
@@ -57,15 +58,24 @@ class m extends u {
|
|
|
57
58
|
interpolate: e.interpolate,
|
|
58
59
|
maxZoom: e.maxZoom !== void 0 ? e.maxZoom : 19,
|
|
59
60
|
reprojectionErrorThreshold: e.reprojectionErrorThreshold,
|
|
60
|
-
tileLoadFunction:
|
|
61
|
+
tileLoadFunction: (
|
|
62
|
+
/**
|
|
63
|
+
* @param {import("../ImageTile.js").default} tile Image tile
|
|
64
|
+
* @param {string} src Image src
|
|
65
|
+
*/
|
|
66
|
+
(i, c) => {
|
|
67
|
+
const a = i.getImage();
|
|
68
|
+
!u && a instanceof HTMLImageElement && (a.referrerPolicy = "origin-when-cross-origin"), (e.tileLoadFunction || s)(i, c);
|
|
69
|
+
}
|
|
70
|
+
),
|
|
61
71
|
transition: e.transition,
|
|
62
|
-
url:
|
|
72
|
+
url: l,
|
|
63
73
|
wrapX: e.wrapX,
|
|
64
74
|
zDirection: e.zDirection
|
|
65
75
|
});
|
|
66
76
|
}
|
|
67
77
|
}
|
|
68
78
|
export {
|
|
69
|
-
|
|
70
|
-
|
|
79
|
+
h as ATTRIBUTION,
|
|
80
|
+
b as default
|
|
71
81
|
};
|