@datagouv/components-next 1.0.2-dev.9 → 1.0.2-dev.91
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 +4 -0
- package/dist/{Control-DuZJdKV_.js → Control-ZFh5ta_U.js} +1 -1
- package/dist/Datafair.client-CyZRNADr.js +30 -0
- package/dist/{Event--kp8kMdJ.js → Event-DSQcW7OF.js} +24 -24
- package/dist/{Image-34hvypZI.js → Image-BijNEG0p.js} +6 -6
- package/dist/JsonPreview.client-C9iaPSmQ.js +40 -0
- package/dist/{Map-BjUnLyj8.js → Map-BUtPf5GN.js} +756 -756
- package/dist/MapContainer.client-BuoZ69XO.js +101 -0
- package/dist/{OSM-s40W6sQ2.js → OSM-D4MTdBtk.js} +2 -2
- package/dist/{PdfPreview.client-BVjPxlPu.js → PdfPreview.client-MI0bDghc.js} +822 -865
- package/dist/{Pmtiles.client-CRJ56yX2.js → Pmtiles.client-CaKEYQBc.js} +574 -579
- package/dist/PreviewWrapper.vue_vue_type_script_setup_true_lang-BKqb6TMw.js +61 -0
- package/dist/{ScaleLine-KW-nXqp3.js → ScaleLine-hJQIqcZm.js} +2 -2
- package/dist/{Tile-DbNFNPfU.js → Tile-Dcl7oIVu.js} +35 -35
- package/dist/{TileImage-BsXBxMtq.js → TileImage-BJeHipMX.js} +4 -4
- package/dist/{View-BR92hTWP.js → View-xp_P_OHw.js} +412 -401
- package/dist/XmlPreview.client-BVAeNK4n.js +34 -0
- package/dist/{common-PJfpC179.js → common-BjQlan3k.js} +36 -36
- package/dist/components-next.css +6 -6
- package/dist/components-next.js +166 -148
- package/dist/components.css +1 -1
- package/dist/{index-BZsAZ7iw.js → index-BBdS8QKx.js} +32886 -27183
- package/dist/{main-qc4CO9Kn.js → main-Dk_66g-3.js} +91331 -75844
- package/dist/{proj-DsetBcW7.js → proj-CsNo9yH1.js} +532 -512
- package/dist/{tilecoord-Db24Px13.js → tilecoord-A0fLnBZr.js} +28 -28
- package/dist/{vue3-xml-viewer.common-CCOV_ohP.js → vue3-xml-viewer.common-B8dNNkOU.js} +1 -1
- package/package.json +18 -11
- package/src/components/ActivityList/ActivityList.vue +0 -2
- package/src/components/Chart/ChartViewer.vue +226 -0
- package/src/components/Chart/ChartViewerWrapper.vue +170 -0
- package/src/components/Form/Listbox.vue +101 -0
- package/src/components/Form/SearchableSelect.vue +2 -1
- package/src/components/InfiniteLoader.vue +53 -0
- 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/ReadMore.vue +1 -1
- package/src/components/ResourceAccordion/Datafair.client.vue +4 -10
- package/src/components/ResourceAccordion/JsonPreview.client.vue +23 -121
- package/src/components/ResourceAccordion/MapContainer.client.vue +5 -14
- package/src/components/ResourceAccordion/Metadata.vue +1 -2
- package/src/components/ResourceAccordion/PdfPreview.client.vue +24 -103
- package/src/components/ResourceAccordion/Pmtiles.client.vue +5 -10
- package/src/components/ResourceAccordion/Preview.vue +16 -21
- package/src/components/ResourceAccordion/PreviewLoader.vue +1 -2
- package/src/components/ResourceAccordion/PreviewUnavailable.vue +22 -0
- package/src/components/ResourceAccordion/PreviewWrapper.vue +82 -0
- package/src/components/ResourceAccordion/ResourceAccordion.vue +5 -7
- package/src/components/ResourceAccordion/XmlPreview.client.vue +16 -115
- package/src/components/ResourceExplorer/ResourceExplorer.vue +81 -13
- package/src/components/ResourceExplorer/ResourceExplorerSidebar.vue +2 -2
- package/src/components/ResourceExplorer/ResourceExplorerViewer.vue +30 -11
- package/src/components/Search/GlobalSearch.vue +191 -110
- package/src/components/Search/SearchInput.vue +5 -4
- package/src/components/TabularExplorer/TabularCell.vue +51 -0
- package/src/components/TabularExplorer/TabularCellPopover.vue +170 -0
- package/src/components/TabularExplorer/TabularExplorer.vue +870 -0
- package/src/components/TabularExplorer/TabularFilterContent.vue +351 -0
- package/src/components/TabularExplorer/TabularFilterPopover.vue +111 -0
- package/src/components/TabularExplorer/types.ts +83 -0
- package/src/composables/useHasTabularData.ts +6 -0
- package/src/composables/useResourceCapabilities.ts +1 -1
- package/src/composables/useSearchFilter.ts +118 -0
- package/src/composables/useStableQueryParams.ts +31 -3
- package/src/config.ts +3 -0
- package/src/functions/api.ts +34 -33
- package/src/functions/api.types.ts +1 -0
- package/src/functions/charts.ts +68 -0
- package/src/functions/datasets.ts +0 -17
- package/src/functions/resources.ts +56 -1
- package/src/functions/tabular.ts +60 -0
- package/src/functions/tabularApi.ts +138 -11
- package/src/main.ts +55 -7
- package/src/types/dataservices.ts +2 -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/search.ts +52 -1
- package/src/types/site.ts +5 -3
- package/src/types/users.ts +2 -1
- package/src/types/visualizations.ts +89 -0
- package/assets/swagger-themes/newspaper.css +0 -1670
- package/dist/Datafair.client-0UYUu5yf.js +0 -35
- package/dist/JsonPreview.client-BrTMBWHZ.js +0 -87
- package/dist/MapContainer.client-CUmKyByc.js +0 -107
- package/dist/Swagger.client-2Yn7iF0A.js +0 -4
- package/dist/XmlPreview.client-DxqlVnKu.js +0 -79
- package/src/components/ResourceAccordion/Swagger.client.vue +0 -48
- package/src/functions/pagination.ts +0 -9
- /package/assets/illustrations/{_microscope.svg → microscope.svg} +0 -0
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import { defineComponent as E, useTemplateRef as G, ref as W, onMounted as B, createBlock as N, createElementBlock as z, openBlock as u, withCtx as U, createTextVNode as V, toDisplayString as q, unref as A } from "vue";
|
|
2
|
+
import { a as D, _ as F } from "./main-Dk_66g-3.js";
|
|
3
|
+
const Z = /* @__PURE__ */ E({
|
|
4
|
+
__name: "MapContainer.client",
|
|
5
|
+
props: {
|
|
6
|
+
resource: {}
|
|
7
|
+
},
|
|
8
|
+
setup(m) {
|
|
9
|
+
const r = m, { t: f } = D();
|
|
10
|
+
let e = null;
|
|
11
|
+
const a = G("mapRef"), n = W(!1);
|
|
12
|
+
async function d() {
|
|
13
|
+
const [
|
|
14
|
+
{ default: i },
|
|
15
|
+
{ default: s },
|
|
16
|
+
{ default: w },
|
|
17
|
+
{ default: y },
|
|
18
|
+
{ default: h },
|
|
19
|
+
C
|
|
20
|
+
] = await Promise.all([
|
|
21
|
+
import("./View-xp_P_OHw.js").then((t) => t.N),
|
|
22
|
+
import("./Map-BUtPf5GN.js").then((t) => t.U),
|
|
23
|
+
import("./ScaleLine-hJQIqcZm.js"),
|
|
24
|
+
import("./Tile-Dcl7oIVu.js").then((t) => t.d),
|
|
25
|
+
import("./OSM-D4MTdBtk.js"),
|
|
26
|
+
// @ts-expect-error no types provided
|
|
27
|
+
import("./index-BBdS8QKx.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
|
+
target: a.value,
|
|
31
|
+
layers: [
|
|
32
|
+
new y({
|
|
33
|
+
source: new h()
|
|
34
|
+
})
|
|
35
|
+
],
|
|
36
|
+
view: new i({
|
|
37
|
+
center: [288074.8449901076, 6247982515792289e-9],
|
|
38
|
+
zoom: 8,
|
|
39
|
+
constrainResolution: !0
|
|
40
|
+
})
|
|
41
|
+
});
|
|
42
|
+
const M = new w({
|
|
43
|
+
units: "metric",
|
|
44
|
+
bar: !1
|
|
45
|
+
});
|
|
46
|
+
e.addControl(M);
|
|
47
|
+
const R = new g({
|
|
48
|
+
position: "top-right"
|
|
49
|
+
});
|
|
50
|
+
e.addControl(R);
|
|
51
|
+
const T = new b({
|
|
52
|
+
position: "bottom-left"
|
|
53
|
+
});
|
|
54
|
+
e.addControl(T);
|
|
55
|
+
const k = new L({
|
|
56
|
+
options: {
|
|
57
|
+
position: "top-right"
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
e.addControl(k);
|
|
61
|
+
const I = new S({
|
|
62
|
+
position: "bottom-right",
|
|
63
|
+
collapsed: !1
|
|
64
|
+
});
|
|
65
|
+
e.addControl(I);
|
|
66
|
+
const o = new v({
|
|
67
|
+
position: "bottom-left",
|
|
68
|
+
listable: !0,
|
|
69
|
+
layerTypes: ["WMS"]
|
|
70
|
+
});
|
|
71
|
+
o._serviceUrlImportInput.value = r.resource.url, o._formContainer.dispatchEvent(new CustomEvent("submit", { cancelable: !0 })), e.addControl(o);
|
|
72
|
+
const l = 500;
|
|
73
|
+
let p = 20;
|
|
74
|
+
function c() {
|
|
75
|
+
if (!o._getCapResponseWMSLayers)
|
|
76
|
+
p--, p > 0 ? setTimeout(c, l) : n.value = !0;
|
|
77
|
+
else {
|
|
78
|
+
const t = o._getCapResponseWMSLayers.filter((x) => x.Name == r.resource.title)[0];
|
|
79
|
+
o._addGetCapWMSLayer(t);
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
setTimeout(c, l);
|
|
83
|
+
}
|
|
84
|
+
return B(() => {
|
|
85
|
+
d();
|
|
86
|
+
}), (i, s) => n.value ? (u(), N(F, { key: 0 }, {
|
|
87
|
+
default: U(() => [
|
|
88
|
+
V(q(A(f)("L'aperçu cartographique de ce fichier n'a pas pu être chargé.")), 1)
|
|
89
|
+
]),
|
|
90
|
+
_: 1
|
|
91
|
+
})) : (u(), z("div", {
|
|
92
|
+
key: 1,
|
|
93
|
+
id: "map",
|
|
94
|
+
ref_key: "mapRef",
|
|
95
|
+
ref: a
|
|
96
|
+
}, null, 512));
|
|
97
|
+
}
|
|
98
|
+
});
|
|
99
|
+
export {
|
|
100
|
+
Z as default
|
|
101
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { W as u } from "./Image-
|
|
2
|
-
import { T as d, c as o, e as m, d as s } from "./TileImage-
|
|
1
|
+
import { W as u } from "./Image-BijNEG0p.js";
|
|
2
|
+
import { T as d, c as o, e as m, d as s } from "./TileImage-BJeHipMX.js";
|
|
3
3
|
class g extends d {
|
|
4
4
|
/**
|
|
5
5
|
* @param {Options} [options] XYZ options.
|