@datagouv/components-next 1.0.2-dev.17 → 1.0.2-dev.170
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/README.md +7 -6
- package/assets/main.css +4 -0
- package/dist/{Control-DuZJdKV_.js → Control-B9WQxlpJ.js} +1 -1
- package/dist/{Datafair.client-Ds3VQrRi.js → Datafair.client-B-OG5WtK.js} +4 -4
- package/dist/{Event--kp8kMdJ.js → Event-iXDrp-fy.js} +31 -31
- package/dist/{Image-34hvypZI.js → Image-mNMBOofs.js} +9 -9
- package/dist/ImagePreview.client-D0c-ifUi.js +36 -0
- package/dist/JsonPreview.client-Dwh9sW9M.js +40 -0
- package/dist/{Map-BjUnLyj8.js → Map-BfqKMw0S.js} +1739 -1599
- package/dist/{MapContainer.client-B2BijMx5.js → MapContainer.client-C2AZ7sOB.js} +38 -39
- package/dist/{OSM-s40W6sQ2.js → OSM-CcrUhItr.js} +15 -23
- package/dist/{PdfPreview.client-DJBMzrlC.js → PdfPreview.client-8NzNfW8b.js} +823 -855
- package/dist/Pmtiles.client-BFH4rTB7.js +26324 -0
- package/dist/PreviewWrapper.vue_vue_type_script_setup_true_lang-BOgE441d.js +58 -0
- package/dist/{ScaleLine-KW-nXqp3.js → ScaleLine-VGQ7nkMS.js} +2 -2
- package/dist/{Tile-DbNFNPfU.js → Tile-CSpn0Ca8.js} +160 -163
- package/dist/{TileImage-BsXBxMtq.js → TileImage-CpbaEFwd.js} +143 -131
- package/dist/{View-BR92hTWP.js → View-BYBpt-AU.js} +483 -422
- package/dist/XmlPreview.client-DMOUO508.js +34 -0
- package/dist/{common-PJfpC179.js → common-BoeTUnDZ.js} +52 -52
- package/dist/components-next.css +1 -52
- package/dist/components-next.js +183 -146
- package/dist/components.css +2 -2
- package/dist/{index-BFQX7Ccz.js → index-C9obT9DJ.js} +21834 -15810
- package/dist/{leaflet-src-7m1mB8LI.js → leaflet-src-B4AZU0vr.js} +185 -187
- package/dist/{main-vqhkVhVS.js → main-DNoYWfit.js} +40723 -73240
- package/dist/{proj-DsetBcW7.js → proj-DxGbobp7.js} +662 -626
- package/dist/{text-clamp.esm-B5kW_XMt.js → text-clamp.esm-DVseBqZZ.js} +4 -4
- package/dist/{tilecoord-Db24Px13.js → tilecoord-DvX7WWiA.js} +273 -264
- package/dist/{vue3-json-viewer-BXwup7nO.js → vue3-json-viewer-CJLQFzXZ.js} +10 -16
- package/dist/{vue3-xml-viewer.common-BcNJo35o.js → vue3-xml-viewer.common-Cp7Cu5ME.js} +16 -16
- package/package.json +47 -38
- package/src/chart.ts +5 -0
- package/src/components/ActivityList/ActivityList.vue +3 -2
- package/src/components/Chart/ChartViewer.vue +320 -0
- package/src/components/Chart/ChartViewerWrapper.vue +182 -0
- package/src/components/DataserviceCard.vue +9 -0
- package/src/components/DataserviceQuality.vue +82 -0
- package/src/components/DataserviceQualityInline.vue +31 -0
- package/src/components/DataserviceQualityTooltipContent.vue +79 -0
- package/src/components/DatasetCard.vue +9 -4
- package/src/components/DatasetQuality.vue +11 -11
- package/src/components/DatasetQualityInline.vue +2 -2
- package/src/components/DatasetQualityTooltipContent.vue +1 -1
- package/src/components/Form/Listbox.vue +101 -0
- package/src/components/InfiniteLoader.vue +53 -0
- package/src/components/ObjectCardHeader.vue +11 -4
- package/src/components/OpenApiViewer/ContentTypeSelect.vue +48 -0
- package/src/components/OpenApiViewer/EndpointRequest.vue +164 -0
- package/src/components/OpenApiViewer/EndpointResponses.vue +149 -0
- package/src/components/OpenApiViewer/OpenApiViewer.vue +308 -0
- package/src/components/OpenApiViewer/SchemaPanel.vue +53 -0
- package/src/components/OpenApiViewer/SchemaTree.vue +77 -0
- package/src/components/OpenApiViewer/openapi.ts +150 -0
- package/src/components/OrganizationNameWithCertificate.vue +3 -2
- package/src/components/Pagination.vue +8 -5
- package/src/components/RadioInput.vue +7 -2
- package/src/components/ResourceAccordion/DataStructure.vue +11 -33
- package/src/components/ResourceAccordion/Downloads.vue +160 -0
- package/src/components/ResourceAccordion/ImagePreview.client.vue +48 -0
- package/src/components/ResourceAccordion/JsonPreview.client.vue +23 -104
- package/src/components/ResourceAccordion/MapContainer.client.vue +1 -3
- package/src/components/ResourceAccordion/Metadata.vue +1 -2
- package/src/components/ResourceAccordion/PdfPreview.client.vue +24 -87
- package/src/components/ResourceAccordion/Pmtiles.client.vue +3 -1
- package/src/components/ResourceAccordion/Preview.vue +11 -11
- package/src/components/ResourceAccordion/PreviewWrapper.vue +82 -0
- package/src/components/ResourceAccordion/ResourceAccordion.vue +19 -113
- package/src/components/ResourceAccordion/XmlPreview.client.vue +16 -98
- package/src/components/ResourceExplorer/ResourceExplorer.vue +22 -19
- package/src/components/ResourceExplorer/ResourceExplorerSidebar.vue +2 -2
- package/src/components/ResourceExplorer/ResourceExplorerViewer.vue +64 -148
- package/src/components/ResourceExplorer/ResourceSelector.vue +113 -0
- package/src/components/ReuseCard.vue +14 -6
- package/src/components/ReuseDetails.vue +2 -2
- package/src/components/ReuseHorizontalCard.vue +2 -2
- package/src/components/Search/GlobalSearch.vue +219 -117
- package/src/components/Search/SearchInput.vue +5 -4
- package/src/components/TabularExplorer/TabularCell.vue +52 -0
- package/src/components/TabularExplorer/TabularCellPopover.vue +170 -0
- package/src/components/TabularExplorer/TabularExplorer.vue +1225 -0
- package/src/components/TabularExplorer/TabularFilterContent.vue +370 -0
- package/src/components/TabularExplorer/TabularFilterPopover.vue +107 -0
- package/src/components/TabularExplorer/types.ts +86 -0
- package/src/composables/useHasTabularData.ts +15 -1
- package/src/composables/useMetrics.ts +1 -1
- package/src/composables/useResourceCapabilities.ts +28 -15
- package/src/composables/useSearchFilter.ts +120 -0
- package/src/composables/useStableQueryParams.ts +38 -6
- package/src/composables/useTabularProfile.ts +70 -0
- package/src/config.ts +21 -3
- package/src/functions/activities.ts +3 -3
- package/src/functions/api.ts +20 -42
- package/src/functions/api.types.ts +1 -0
- package/src/functions/charts.ts +99 -0
- package/src/functions/datasets.ts +0 -17
- package/src/functions/dates.ts +3 -2
- package/src/functions/metrics.ts +6 -4
- package/src/functions/resources.ts +117 -1
- package/src/functions/tabular.ts +214 -0
- package/src/functions/tabularApi.ts +96 -11
- package/src/main.ts +109 -14
- package/src/types/dataservices.ts +17 -0
- package/src/types/organizations.ts +10 -0
- package/src/types/pages.ts +0 -5
- package/src/types/posts.ts +2 -2
- package/src/types/reports.ts +5 -1
- package/src/types/resources.ts +0 -1
- package/src/types/reuses.ts +12 -1
- package/src/types/search.ts +63 -1
- package/src/types/site.ts +5 -3
- package/src/types/ui.ts +2 -0
- package/src/types/users.ts +2 -1
- package/src/types/visualizations.ts +93 -0
- package/assets/swagger-themes/newspaper.css +0 -1670
- package/dist/JsonPreview.client-CYxmz0yV.js +0 -72
- package/dist/Pmtiles.client-C_hvRDuy.js +0 -25185
- package/dist/Swagger.client-B4y0hXME.js +0 -4
- package/dist/XmlPreview.client-LETEfNBH.js +0 -64
- package/src/components/ResourceAccordion/Swagger.client.vue +0 -48
- package/src/functions/pagination.ts +0 -9
- /package/src/components/{DatasetQualityItem.vue → QualityItem.vue} +0 -0
- /package/src/components/{DatasetQualityItemWarning.vue → QualityItemWarning.vue} +0 -0
- /package/src/components/{DatasetQualityScore.vue → QualityScore.vue} +0 -0
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
import { defineComponent as E, useTemplateRef as G, ref as W, onMounted as B,
|
|
2
|
-
import { a as
|
|
1
|
+
import { defineComponent as E, useTemplateRef as G, ref as W, onMounted as B, openBlock as u, createBlock as N, withCtx as V, createTextVNode as z, toDisplayString as q, unref as A, createElementBlock as D } from "vue";
|
|
2
|
+
import { a as F, _ as O } from "./main-DNoYWfit.js";
|
|
3
3
|
const Z = /* @__PURE__ */ E({
|
|
4
4
|
__name: "MapContainer.client",
|
|
5
5
|
props: {
|
|
6
6
|
resource: {}
|
|
7
7
|
},
|
|
8
|
-
setup(
|
|
9
|
-
const r =
|
|
8
|
+
setup(m) {
|
|
9
|
+
const r = m, { t: f } = F();
|
|
10
10
|
let e = null;
|
|
11
11
|
const a = G("mapRef"), n = W(!1);
|
|
12
|
-
async function
|
|
12
|
+
async function d() {
|
|
13
13
|
const [
|
|
14
14
|
{ default: i },
|
|
15
15
|
{ default: s },
|
|
16
|
+
{ default: w },
|
|
16
17
|
{ default: y },
|
|
17
|
-
{ default: C },
|
|
18
18
|
{ default: h },
|
|
19
|
-
|
|
19
|
+
C
|
|
20
20
|
] = await Promise.all([
|
|
21
|
-
import("./View-
|
|
22
|
-
import("./Map-
|
|
23
|
-
import("./ScaleLine-
|
|
24
|
-
import("./Tile-
|
|
25
|
-
import("./OSM-
|
|
21
|
+
import("./View-BYBpt-AU.js").then((t) => t.N),
|
|
22
|
+
import("./Map-BfqKMw0S.js").then((t) => t.V),
|
|
23
|
+
import("./ScaleLine-VGQ7nkMS.js"),
|
|
24
|
+
import("./Tile-CSpn0Ca8.js").then((t) => t.d),
|
|
25
|
+
import("./OSM-CcrUhItr.js"),
|
|
26
26
|
// @ts-expect-error no types provided
|
|
27
|
-
import("./index-
|
|
28
|
-
]), { CRS:
|
|
29
|
-
await Promise.resolve({ }), await Promise.resolve({ }), await Promise.resolve({ }), await Promise.resolve({ }),
|
|
27
|
+
import("./index-C9obT9DJ.js")
|
|
28
|
+
]), { CRS: _, GeoportalAttribution: S, GeoportalFullScreen: g, GeoportalZoom: b, LayerImport: v, LayerSwitcher: L } = C;
|
|
29
|
+
await Promise.resolve({ }), await Promise.resolve({ }), await Promise.resolve({ }), await Promise.resolve({ }), _.load(), e = new s({
|
|
30
30
|
target: a.value,
|
|
31
31
|
layers: [
|
|
32
|
-
new
|
|
32
|
+
new y({
|
|
33
33
|
source: new h()
|
|
34
34
|
})
|
|
35
35
|
],
|
|
@@ -39,57 +39,56 @@ const Z = /* @__PURE__ */ E({
|
|
|
39
39
|
constrainResolution: !0
|
|
40
40
|
})
|
|
41
41
|
});
|
|
42
|
-
const
|
|
42
|
+
const M = new w({
|
|
43
43
|
units: "metric",
|
|
44
44
|
bar: !1
|
|
45
45
|
});
|
|
46
|
-
e.addControl(
|
|
47
|
-
const
|
|
46
|
+
e.addControl(M);
|
|
47
|
+
const R = new g({
|
|
48
48
|
position: "top-right"
|
|
49
49
|
});
|
|
50
|
-
e.addControl(
|
|
51
|
-
const
|
|
50
|
+
e.addControl(R);
|
|
51
|
+
const T = new b({
|
|
52
52
|
position: "bottom-left"
|
|
53
53
|
});
|
|
54
|
-
e.addControl(
|
|
55
|
-
const
|
|
54
|
+
e.addControl(T);
|
|
55
|
+
const k = new L({
|
|
56
56
|
options: {
|
|
57
57
|
position: "top-right"
|
|
58
58
|
}
|
|
59
59
|
});
|
|
60
|
-
e.addControl(
|
|
61
|
-
const
|
|
62
|
-
position: "bottom-right"
|
|
63
|
-
|
|
64
|
-
// see https://github.com/IGNF/geopf-extensions-openlayers/issues/497
|
|
60
|
+
e.addControl(k);
|
|
61
|
+
const I = new S({
|
|
62
|
+
position: "bottom-right",
|
|
63
|
+
collapsed: !1
|
|
65
64
|
});
|
|
66
|
-
|
|
65
|
+
e.addControl(I);
|
|
67
66
|
const o = new v({
|
|
68
67
|
position: "bottom-left",
|
|
69
68
|
listable: !0,
|
|
70
69
|
layerTypes: ["WMS"]
|
|
71
70
|
});
|
|
72
71
|
o._serviceUrlImportInput.value = r.resource.url, o._formContainer.dispatchEvent(new CustomEvent("submit", { cancelable: !0 })), e.addControl(o);
|
|
73
|
-
const
|
|
74
|
-
let
|
|
75
|
-
function
|
|
72
|
+
const l = 500;
|
|
73
|
+
let p = 20;
|
|
74
|
+
function c() {
|
|
76
75
|
if (!o._getCapResponseWMSLayers)
|
|
77
|
-
|
|
76
|
+
p--, p > 0 ? setTimeout(c, l) : n.value = !0;
|
|
78
77
|
else {
|
|
79
78
|
const t = o._getCapResponseWMSLayers.filter((x) => x.Name == r.resource.title)[0];
|
|
80
79
|
o._addGetCapWMSLayer(t);
|
|
81
80
|
}
|
|
82
81
|
}
|
|
83
|
-
setTimeout(
|
|
82
|
+
setTimeout(c, l);
|
|
84
83
|
}
|
|
85
84
|
return B(() => {
|
|
86
|
-
|
|
87
|
-
}), (i, s) => n.value ? (
|
|
88
|
-
default:
|
|
89
|
-
|
|
85
|
+
d();
|
|
86
|
+
}), (i, s) => n.value ? (u(), N(O, { key: 0 }, {
|
|
87
|
+
default: V(() => [
|
|
88
|
+
z(q(A(f)("L'aperçu cartographique de ce fichier n'a pas pu être chargé.")), 1)
|
|
90
89
|
]),
|
|
91
90
|
_: 1
|
|
92
|
-
})) : (
|
|
91
|
+
})) : (u(), D("div", {
|
|
93
92
|
key: 1,
|
|
94
93
|
id: "map",
|
|
95
94
|
ref_key: "mapRef",
|
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
class g extends d {
|
|
1
|
+
import { T as a, c as l, e as c } from "./TileImage-CpbaEFwd.js";
|
|
2
|
+
class n extends a {
|
|
4
3
|
/**
|
|
5
4
|
* @param {Options} [options] XYZ options.
|
|
6
5
|
*/
|
|
7
6
|
constructor(e) {
|
|
8
7
|
e = e || {};
|
|
9
|
-
const r = e.projection !== void 0 ? e.projection : "EPSG:3857", t = e.tileGrid !== void 0 ? e.tileGrid :
|
|
10
|
-
extent:
|
|
8
|
+
const r = e.projection !== void 0 ? e.projection : "EPSG:3857", t = e.tileGrid !== void 0 ? e.tileGrid : l({
|
|
9
|
+
extent: c(r),
|
|
11
10
|
maxResolution: e.maxResolution,
|
|
12
11
|
maxZoom: e.maxZoom,
|
|
13
12
|
minZoom: e.minZoom,
|
|
@@ -17,6 +16,7 @@ class g extends d {
|
|
|
17
16
|
attributions: e.attributions,
|
|
18
17
|
cacheSize: e.cacheSize,
|
|
19
18
|
crossOrigin: e.crossOrigin,
|
|
19
|
+
referrerPolicy: e.referrerPolicy,
|
|
20
20
|
interpolate: e.interpolate,
|
|
21
21
|
projection: r,
|
|
22
22
|
reprojectionErrorThreshold: e.reprojectionErrorThreshold,
|
|
@@ -40,42 +40,34 @@ class g extends d {
|
|
|
40
40
|
return this.gutter_;
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
|
-
const
|
|
44
|
-
class
|
|
43
|
+
const u = '© <a href="https://www.openstreetmap.org/copyright" target="_blank">OpenStreetMap</a> contributors.';
|
|
44
|
+
class o extends n {
|
|
45
45
|
/**
|
|
46
46
|
* @param {Options} [options] Open Street Map options.
|
|
47
47
|
*/
|
|
48
48
|
constructor(e) {
|
|
49
49
|
e = e || {};
|
|
50
50
|
let r;
|
|
51
|
-
e.attributions !== void 0 ? r = e.attributions : r = [
|
|
52
|
-
const t = e.
|
|
51
|
+
e.attributions !== void 0 ? r = e.attributions : r = [u];
|
|
52
|
+
const t = e.url !== void 0 ? e.url : "https://tile.openstreetmap.org/{z}/{x}/{y}.png";
|
|
53
53
|
super({
|
|
54
54
|
attributions: r,
|
|
55
55
|
attributionsCollapsible: !1,
|
|
56
56
|
cacheSize: e.cacheSize,
|
|
57
|
-
crossOrigin:
|
|
57
|
+
crossOrigin: e.crossOrigin !== void 0 ? e.crossOrigin : "anonymous",
|
|
58
|
+
referrerPolicy: e.referrerPolicy || "origin-when-cross-origin",
|
|
58
59
|
interpolate: e.interpolate,
|
|
59
60
|
maxZoom: e.maxZoom !== void 0 ? e.maxZoom : 19,
|
|
60
61
|
reprojectionErrorThreshold: e.reprojectionErrorThreshold,
|
|
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
|
-
),
|
|
62
|
+
tileLoadFunction: e.tileLoadFunction,
|
|
71
63
|
transition: e.transition,
|
|
72
|
-
url:
|
|
64
|
+
url: t,
|
|
73
65
|
wrapX: e.wrapX,
|
|
74
66
|
zDirection: e.zDirection
|
|
75
67
|
});
|
|
76
68
|
}
|
|
77
69
|
}
|
|
78
70
|
export {
|
|
79
|
-
|
|
80
|
-
|
|
71
|
+
u as ATTRIBUTION,
|
|
72
|
+
o as default
|
|
81
73
|
};
|