@datagouv/components-next 1.2.0 → 1.4.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/README.md +7 -6
- package/dist/{Control-ZFh5ta_U.js → Control-B9WQxlpJ.js} +1 -1
- package/dist/{Datafair.client-rf4T1IkA.js → Datafair.client-D_6yzJUG.js} +9 -9
- package/dist/{Event-DSQcW7OF.js → Event-iXDrp-fy.js} +11 -11
- package/dist/{Image-BijNEG0p.js → Image-mNMBOofs.js} +5 -5
- package/dist/ImagePreview.client-B0iPhFm3.js +36 -0
- package/dist/{JsonPreview.client-dzar6iuh.js → JsonPreview.client-DSl1kiwC.js} +5 -5
- package/dist/{Map-BUtPf5GN.js → Map-BfqKMw0S.js} +1306 -1166
- package/dist/{MapContainer.client-D-MoRNhG.js → MapContainer.client-BSfpk_rT.js} +15 -15
- package/dist/{OSM-D4MTdBtk.js → OSM-CcrUhItr.js} +15 -23
- package/dist/{PdfPreview.client-DoDYLmJD.js → PdfPreview.client-BANFeM6K.js} +441 -434
- package/dist/Pmtiles.client-DH9ZrsZR.js +26333 -0
- package/dist/PreviewWrapper.vue_vue_type_script_setup_true_lang-I8EZCgzp.js +60 -0
- package/dist/{ScaleLine-hJQIqcZm.js → ScaleLine-VGQ7nkMS.js} +2 -2
- package/dist/{Tile-Dcl7oIVu.js → Tile-CSpn0Ca8.js} +153 -156
- package/dist/{TileImage-BJeHipMX.js → TileImage-CpbaEFwd.js} +143 -131
- package/dist/{View-xp_P_OHw.js → View-BYBpt-AU.js} +167 -117
- package/dist/{XmlPreview.client-cOhwff6P.js → XmlPreview.client-KCB5mwVf.js} +5 -5
- package/dist/{common-BjQlan3k.js → common-BoeTUnDZ.js} +26 -26
- package/dist/components-next.css +1 -52
- package/dist/components-next.js +201 -170
- package/dist/components.css +2 -2
- package/dist/{index-NofRBuyf.js → index-DHWzX5vK.js} +5999 -5472
- package/dist/{leaflet-src-7m1mB8LI.js → leaflet-src-pVQfonBI.js} +162 -164
- package/dist/{main-Iz1ZCL6k.js → main-BDcYkhOc.js} +36671 -29402
- package/dist/{proj-CsNo9yH1.js → proj-DxGbobp7.js} +312 -296
- package/dist/{text-clamp.esm-B5kW_XMt.js → text-clamp.esm-DVseBqZZ.js} +4 -4
- package/dist/{tilecoord-A0fLnBZr.js → tilecoord-DvX7WWiA.js} +264 -255
- package/dist/{vue3-json-viewer-BXwup7nO.js → vue3-json-viewer-CJLQFzXZ.js} +10 -16
- package/dist/{vue3-xml-viewer.common-tVI9uXUz.js → vue3-xml-viewer.common-Bdcn54ST.js} +1 -1
- package/package.json +40 -39
- package/src/components/ActivityList/ActivityList.vue +21 -12
- package/src/components/AppLink.vue +3 -0
- package/src/components/BannerAction.vue +6 -2
- package/src/components/Chart/ChartViewer.vue +111 -17
- package/src/components/Chart/ChartViewerWrapper.vue +28 -16
- package/src/components/ChartCard.vue +112 -0
- package/src/components/CopyButton.vue +6 -2
- package/src/components/DataserviceCard.vue +23 -6
- 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 +17 -6
- package/src/components/DatasetInformation/DatasetTemporalitySection.vue +7 -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/DiscussionMessageCard.vue +14 -15
- package/src/components/Form/SchemaSelect.vue +2 -0
- package/src/components/FormattedDate.vue +69 -0
- package/src/components/LoadingBlock.vue +4 -1
- package/src/components/ObjectCard.vue +4 -1
- package/src/components/ObjectCardOwner.vue +13 -1
- package/src/components/Pagination.vue +18 -58
- package/src/components/Placeholder.vue +3 -2
- package/src/components/PostCard.vue +13 -15
- package/src/components/ResourceAccordion/Datafair.client.vue +1 -1
- package/src/components/ResourceAccordion/Downloads.vue +19 -7
- package/src/components/ResourceAccordion/ImagePreview.client.vue +48 -0
- package/src/components/ResourceAccordion/MapContainer.client.vue +1 -8
- package/src/components/ResourceAccordion/Metadata.vue +21 -5
- package/src/components/ResourceAccordion/PdfPreview.client.vue +36 -12
- package/src/components/ResourceAccordion/PdfSkeleton.vue +44 -0
- package/src/components/ResourceAccordion/Pmtiles.client.vue +30 -19
- package/src/components/ResourceAccordion/Preview.vue +8 -4
- package/src/components/ResourceAccordion/PreviewWrapper.vue +17 -10
- package/src/components/ResourceAccordion/ResourceAccordion.vue +31 -11
- package/src/components/ResourceExplorer/ResourceExplorer.vue +105 -210
- package/src/components/ResourceExplorer/ResourceExplorerHeader.vue +79 -0
- package/src/components/ResourceExplorer/ResourceExplorerSidebar.vue +104 -71
- package/src/components/ResourceExplorer/ResourceExplorerViewer.vue +140 -184
- package/src/components/ResourceExplorer/ResourceMainAction.vue +240 -0
- package/src/components/ResourceExplorer/ResourceSelector.vue +24 -86
- package/src/components/ResourceExplorer/ResourceViewerHeader.vue +124 -0
- package/src/components/ResourceExplorer/ResourceViewerSkeleton.vue +96 -0
- package/src/components/ResourceListItem.vue +168 -0
- package/src/components/ReuseCard.vue +18 -6
- package/src/components/ReuseDetails.vue +2 -2
- package/src/components/ReuseHorizontalCard.vue +4 -3
- package/src/components/SchemaCard.vue +10 -1
- package/src/components/Search/Filter/AccessTypeFilter.vue +2 -2
- package/src/components/Search/GlobalSearch.vue +28 -10
- package/src/components/Search/SearchInput.vue +1 -1
- package/src/components/Search/Sidemenu.vue +4 -3
- package/src/components/SmallChart.vue +11 -10
- package/src/components/StatBox.vue +13 -5
- package/src/components/TabularExplorer/TabularActiveFilters.vue +79 -0
- package/src/components/TabularExplorer/TabularCell.vue +7 -8
- package/src/components/TabularExplorer/TabularCellPopover.vue +21 -5
- package/src/components/TabularExplorer/TabularColumnsMenu.vue +112 -0
- package/src/components/TabularExplorer/TabularDateField.vue +41 -0
- package/src/components/TabularExplorer/TabularDateFilter.vue +403 -0
- package/src/components/TabularExplorer/TabularExplorer.vue +127 -780
- package/src/components/TabularExplorer/TabularFilterContent.vue +48 -38
- package/src/components/TabularExplorer/TabularFilterPopover.vue +27 -32
- package/src/components/TabularExplorer/TabularMobileFilterButton.vue +21 -0
- package/src/components/TabularExplorer/TabularMobileFilters.vue +150 -0
- package/src/components/TabularExplorer/TabularRowsInfo.vue +31 -0
- package/src/components/TabularExplorer/TabularSkeleton.vue +92 -0
- package/src/components/TabularExplorer/TabularTable.vue +484 -0
- package/src/components/TabularExplorer/TabularToolbar.vue +25 -0
- package/src/components/TabularExplorer/types.ts +40 -28
- package/src/components/TabularExplorer/useColumnMetadata.ts +98 -0
- package/src/components/TabularExplorer/useTabularContext.ts +82 -0
- package/src/components/TopicCard.vue +15 -14
- package/src/composables/useActiveDescendant.ts +5 -0
- package/src/composables/useDatasetResources.ts +164 -0
- package/src/composables/useHasTabularData.ts +2 -1
- package/src/composables/useResizable.ts +46 -0
- package/src/composables/useResourceCapabilities.ts +48 -40
- package/src/composables/useSearchFilter.ts +7 -5
- package/src/composables/useTranslation.ts +24 -9
- package/src/config.ts +1 -0
- package/src/functions/api.ts +13 -7
- package/src/functions/charts.ts +32 -1
- package/src/functions/dates.ts +26 -7
- package/src/functions/helpers.ts +15 -0
- package/src/functions/metrics.ts +57 -56
- package/src/functions/owned.ts +21 -0
- package/src/functions/paginate.ts +46 -0
- package/src/functions/resourceCapabilities.ts +34 -0
- package/src/functions/resources.ts +88 -0
- package/src/functions/schemas.ts +27 -0
- package/src/functions/scroll.ts +20 -0
- package/src/functions/tabular.ts +222 -5
- package/src/functions/tabularApi.ts +1 -43
- package/src/main.ts +32 -6
- package/src/types/dataservices.ts +15 -0
- package/src/types/organizations.ts +10 -0
- package/src/types/resources.ts +0 -1
- package/src/types/reuses.ts +12 -1
- package/src/types/search.ts +2 -2
- package/src/types/visualizations.ts +5 -0
- package/dist/Pmtiles.client-Dzm01Zfm.js +0 -25185
- package/dist/PreviewWrapper.vue_vue_type_script_setup_true_lang-BRNYswg3.js +0 -61
- /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,12 +1,12 @@
|
|
|
1
|
-
import { defineComponent as E, useTemplateRef as G, ref as W, onMounted as
|
|
2
|
-
import { a as
|
|
1
|
+
import { defineComponent as E, useTemplateRef as G, ref as W, onMounted as z, openBlock as u, createBlock as B, withCtx as N, createTextVNode as V, toDisplayString as q, unref as A, createElementBlock as D } from "vue";
|
|
2
|
+
import { a as F, d as O } from "./main-BDcYkhOc.js";
|
|
3
3
|
const Z = /* @__PURE__ */ E({
|
|
4
4
|
__name: "MapContainer.client",
|
|
5
5
|
props: {
|
|
6
6
|
resource: {}
|
|
7
7
|
},
|
|
8
8
|
setup(m) {
|
|
9
|
-
const r = m, { t: f } =
|
|
9
|
+
const r = m, { t: f } = F();
|
|
10
10
|
let e = null;
|
|
11
11
|
const a = G("mapRef"), n = W(!1);
|
|
12
12
|
async function d() {
|
|
@@ -18,13 +18,13 @@ const Z = /* @__PURE__ */ E({
|
|
|
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-
|
|
27
|
+
import("./index-DHWzX5vK.js")
|
|
28
28
|
]), { CRS: _, GeoportalAttribution: S, GeoportalFullScreen: g, GeoportalZoom: b, LayerImport: v, LayerSwitcher: L } = C;
|
|
29
29
|
await Promise.resolve({ }), await Promise.resolve({ }), await Promise.resolve({ }), await Promise.resolve({ }), _.load(), e = new s({
|
|
30
30
|
target: a.value,
|
|
@@ -81,18 +81,18 @@ const Z = /* @__PURE__ */ E({
|
|
|
81
81
|
}
|
|
82
82
|
setTimeout(c, l);
|
|
83
83
|
}
|
|
84
|
-
return
|
|
84
|
+
return z(() => {
|
|
85
85
|
d();
|
|
86
|
-
}), (i, s) => n.value ? (u(),
|
|
87
|
-
default:
|
|
86
|
+
}), (i, s) => n.value ? (u(), B(O, { key: 0 }, {
|
|
87
|
+
default: N(() => [
|
|
88
88
|
V(q(A(f)("L'aperçu cartographique de ce fichier n'a pas pu être chargé.")), 1)
|
|
89
89
|
]),
|
|
90
90
|
_: 1
|
|
91
|
-
})) : (u(),
|
|
91
|
+
})) : (u(), D("div", {
|
|
92
92
|
key: 1,
|
|
93
|
-
id: "map",
|
|
94
93
|
ref_key: "mapRef",
|
|
95
|
-
ref: a
|
|
94
|
+
ref: a,
|
|
95
|
+
class: "size-full"
|
|
96
96
|
}, null, 512));
|
|
97
97
|
}
|
|
98
98
|
});
|
|
@@ -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
|
};
|