@datagouv/components-next 1.0.2-dev.112 → 1.0.2-dev.114
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/dist/{Control-ZFh5ta_U.js → Control-b-43UT2B.js} +10 -10
- package/dist/{Datafair.client-CKB2P_X1.js → Datafair.client-BH351yV9.js} +4 -4
- package/dist/{Event-DSQcW7OF.js → Event-py_AAwJY.js} +18 -18
- package/dist/{Image-BijNEG0p.js → Image-BHQYZWzH.js} +23 -23
- package/dist/{JsonPreview.client-Bx11-jfT.js → JsonPreview.client-CawLfTe_.js} +5 -5
- package/dist/{Map-BUtPf5GN.js → Map-CtP7leHl.js} +1313 -1173
- package/dist/{MapContainer.client-CdZSeT_L.js → MapContainer.client-DN8kHTOA.js} +17 -17
- package/dist/{OSM-D4MTdBtk.js → OSM-gdDSIsDA.js} +15 -23
- package/dist/{PdfPreview.client-Bh9lP-qU.js → PdfPreview.client-BGOycK0h.js} +6 -10
- package/dist/Pmtiles.client-CRaI4U8S.js +26123 -0
- package/dist/{PreviewWrapper.vue_vue_type_script_setup_true_lang-BnC7vWGP.js → PreviewWrapper.vue_vue_type_script_setup_true_lang-DAddoRna.js} +2 -2
- package/dist/{ScaleLine-hJQIqcZm.js → ScaleLine-hG-FhNqy.js} +2 -2
- package/dist/{Tile-Dcl7oIVu.js → Tile-D6rFonpT.js} +163 -166
- package/dist/{TileImage-BJeHipMX.js → TileImage-cfrEgz5y.js} +131 -119
- package/dist/{View-xp_P_OHw.js → View-vp7vDb9q.js} +169 -119
- package/dist/{XmlPreview.client-oFAOv828.js → XmlPreview.client-Dyv0J4kw.js} +5 -5
- package/dist/{common-BjQlan3k.js → common-C8efyyuc.js} +49 -49
- package/dist/components-next.css +1 -52
- package/dist/components-next.js +36 -36
- package/dist/components.css +2 -2
- package/dist/{index-CxCuKQ81.js → index-_qLRU0Z5.js} +6382 -6057
- package/dist/{leaflet-src-7m1mB8LI.js → leaflet-src-D_sX6kLJ.js} +162 -164
- package/dist/{main-CQ9ZQG7n.js → main-CR8bhz_w.js} +19161 -20321
- package/dist/{proj-CsNo9yH1.js → proj-CsjVeojN.js} +322 -306
- package/dist/{text-clamp.esm-B5kW_XMt.js → text-clamp.esm-DVseBqZZ.js} +4 -4
- package/dist/{tilecoord-A0fLnBZr.js → tilecoord-CPcQJnrF.js} +270 -261
- package/dist/{vue3-json-viewer-BXwup7nO.js → vue3-json-viewer-CJLQFzXZ.js} +10 -16
- package/dist/{vue3-xml-viewer.common-B9qp90K_.js → vue3-xml-viewer.common-DRgxPToX.js} +1 -1
- package/package.json +34 -34
- package/src/components/ResourceAccordion/Pmtiles.client.vue +3 -1
- package/dist/Pmtiles.client-Bi46wN14.js +0 -25185
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as T, ref as k, onMounted as J, h as g, watch as F, computed as O, inject as $, provide as q,
|
|
1
|
+
import { defineComponent as T, ref as k, onMounted as J, h as g, watch as F, computed as O, inject as $, provide as q, openBlock as _, createElementBlock as N, toDisplayString as A, normalizeClass as S, resolveComponent as ie, createElementVNode as z, renderSlot as ce, createTextVNode as pe, createCommentVNode as Y, createVNode as fe, nextTick as de } from "vue";
|
|
2
2
|
const ve = /^([hH][tT]{2}[pP]:\/\/|[hH][tT]{2}[pP][sS]:\/\/)(([A-Za-z0-9-~]+)\.)+([A-Za-z0-9-~\/])+$/, X = T({
|
|
3
3
|
name: "JsonString",
|
|
4
4
|
props: {
|
|
@@ -66,7 +66,7 @@ const ve = /^([hH][tT]{2}[pP]:\/\/|[hH][tT]{2}[pP][sS]:\/\/)(([A-Za-z0-9-~]+)\.)
|
|
|
66
66
|
},
|
|
67
67
|
setup(e) {
|
|
68
68
|
const y = e, c = O(() => y.jsonValue === null ? "null" : "undefined");
|
|
69
|
-
return (p, d) => (
|
|
69
|
+
return (p, d) => (_(), N("span", ye, A(c.value), 1));
|
|
70
70
|
}
|
|
71
71
|
}), he = /* @__PURE__ */ T({
|
|
72
72
|
__name: "json-number",
|
|
@@ -79,7 +79,7 @@ const ve = /^([hH][tT]{2}[pP]:\/\/|[hH][tT]{2}[pP][sS]:\/\/)(([A-Za-z0-9-~]+)\.)
|
|
|
79
79
|
},
|
|
80
80
|
setup(e) {
|
|
81
81
|
const y = e, c = O(() => Number.isInteger(y.jsonValue));
|
|
82
|
-
return (p, d) => (
|
|
82
|
+
return (p, d) => (_(), N("span", {
|
|
83
83
|
class: S(["jv-item", "jv-number", c.value ? "jv-number-integer" : "jv-number-float"])
|
|
84
84
|
}, A(e.jsonValue.toString()), 3));
|
|
85
85
|
}
|
|
@@ -95,7 +95,7 @@ const ve = /^([hH][tT]{2}[pP]:\/\/|[hH][tT]{2}[pP][sS]:\/\/)(([A-Za-z0-9-~]+)\.)
|
|
|
95
95
|
}
|
|
96
96
|
},
|
|
97
97
|
setup(e) {
|
|
98
|
-
return (y, c) => (
|
|
98
|
+
return (y, c) => (_(), N("span", ge, A(e.jsonValue.toString()), 1));
|
|
99
99
|
}
|
|
100
100
|
}), je = T({
|
|
101
101
|
name: "JsonObject",
|
|
@@ -277,7 +277,7 @@ const ve = /^([hH][tT]{2}[pP]:\/\/|[hH][tT]{2}[pP][sS]:\/\/)(([A-Za-z0-9-~]+)\.)
|
|
|
277
277
|
}
|
|
278
278
|
},
|
|
279
279
|
setup(e) {
|
|
280
|
-
return (y, c) => (
|
|
280
|
+
return (y, c) => (_(), N("span", {
|
|
281
281
|
class: S(["jv-item", "jv-function"]),
|
|
282
282
|
title: e.jsonValue.toString()
|
|
283
283
|
}, " <function> ", 8, Ee));
|
|
@@ -295,7 +295,7 @@ const ve = /^([hH][tT]{2}[pP]:\/\/|[hH][tT]{2}[pP][sS]:\/\/)(([A-Za-z0-9-~]+)\.)
|
|
|
295
295
|
},
|
|
296
296
|
setup(e) {
|
|
297
297
|
const y = e, c = $("timeformat", (d) => d.toLocaleString()), p = O(() => c(y.jsonValue));
|
|
298
|
-
return (d, i) => (
|
|
298
|
+
return (d, i) => (_(), N("span", ke, ' "' + A(p.value) + '" ', 1));
|
|
299
299
|
}
|
|
300
300
|
}), Te = {
|
|
301
301
|
class: /* @__PURE__ */ S(["jv-item", "jv-regexp"])
|
|
@@ -309,7 +309,7 @@ const ve = /^([hH][tT]{2}[pP]:\/\/|[hH][tT]{2}[pP][sS]:\/\/)(([A-Za-z0-9-~]+)\.)
|
|
|
309
309
|
}
|
|
310
310
|
},
|
|
311
311
|
setup(e) {
|
|
312
|
-
return (y, c) => (
|
|
312
|
+
return (y, c) => (_(), N("span", Te, A(e.jsonValue.toString()), 1));
|
|
313
313
|
}
|
|
314
314
|
}), I = T({
|
|
315
315
|
name: "JsonBox",
|
|
@@ -421,12 +421,6 @@ function _e(e) {
|
|
|
421
421
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
422
422
|
}
|
|
423
423
|
var H = { exports: {} };
|
|
424
|
-
/*!
|
|
425
|
-
* clipboard.js v2.0.11
|
|
426
|
-
* https://clipboardjs.com/
|
|
427
|
-
*
|
|
428
|
-
* Licensed MIT © Zeno Rocha
|
|
429
|
-
*/
|
|
430
424
|
var Ne = H.exports, Z;
|
|
431
425
|
function Oe() {
|
|
432
426
|
return Z || (Z = 1, (function(e, y) {
|
|
@@ -1041,10 +1035,10 @@ const Me = /* @__PURE__ */ _e(Ae), Ve = function(e, y) {
|
|
|
1041
1035
|
};
|
|
1042
1036
|
function Re(e, y, c, p, d, i) {
|
|
1043
1037
|
const n = ie("json-box");
|
|
1044
|
-
return
|
|
1038
|
+
return _(), N("div", {
|
|
1045
1039
|
class: S(e.jvClass)
|
|
1046
1040
|
}, [
|
|
1047
|
-
e.copyable ? (
|
|
1041
|
+
e.copyable ? (_(), N("div", {
|
|
1048
1042
|
key: 0,
|
|
1049
1043
|
class: S(`jv-tooltip ${e.copyText.align || "right"}`)
|
|
1050
1044
|
}, [
|
|
@@ -1067,7 +1061,7 @@ function Re(e, y, c, p, d, i) {
|
|
|
1067
1061
|
"preview-mode": e.previewMode
|
|
1068
1062
|
}, null, 8, ["value", "sort", "preview-mode"])
|
|
1069
1063
|
], 2),
|
|
1070
|
-
e.expandableCode && e.boxed ? (
|
|
1064
|
+
e.expandableCode && e.boxed ? (_(), N("div", {
|
|
1071
1065
|
key: 1,
|
|
1072
1066
|
class: "jv-more",
|
|
1073
1067
|
onClick: y[0] || (y[0] = (...t) => e.toggleExpandCode && e.toggleExpandCode(...t))
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@datagouv/components-next",
|
|
3
|
-
"version": "1.0.2-dev.
|
|
3
|
+
"version": "1.0.2-dev.114",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"engines": {
|
|
@@ -25,21 +25,22 @@
|
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@floating-ui/vue": "^1.1.11",
|
|
27
27
|
"@headlessui/vue": "^1.7.23",
|
|
28
|
-
"@remixicon/vue": "^4.
|
|
28
|
+
"@remixicon/vue": "^4.9.0",
|
|
29
29
|
"@types/hast": "^3.0.4",
|
|
30
|
-
"@types/leaflet": "^1.9.
|
|
31
|
-
"@vueuse/core": "^14.
|
|
32
|
-
"@vueuse/router": "^14.
|
|
33
|
-
"chart.js": "^4.
|
|
34
|
-
"dompurify": "^3.
|
|
35
|
-
"
|
|
30
|
+
"@types/leaflet": "^1.9.21",
|
|
31
|
+
"@vueuse/core": "^14.3.0",
|
|
32
|
+
"@vueuse/router": "^14.3.0",
|
|
33
|
+
"chart.js": "^4.5.1",
|
|
34
|
+
"dompurify": "^3.4.7",
|
|
35
|
+
"echarts": "^6.1.0",
|
|
36
|
+
"geopf-extensions-openlayers": "1.0.0-beta.11",
|
|
36
37
|
"leaflet": "^1.9.4",
|
|
37
|
-
"maplibre-gl": "^5.
|
|
38
|
-
"ofetch": "^1.
|
|
39
|
-
"ol": "^10.
|
|
38
|
+
"maplibre-gl": "^5.24.0",
|
|
39
|
+
"ofetch": "^1.5.1",
|
|
40
|
+
"ol": "^10.9.0",
|
|
40
41
|
"pdfjs-dist": "^4.10.38",
|
|
41
|
-
"pmtiles": "^4.
|
|
42
|
-
"popmotion": "^11.0",
|
|
42
|
+
"pmtiles": "^4.4.1",
|
|
43
|
+
"popmotion": "^11.0.5",
|
|
43
44
|
"rehype-highlight": "^7.0.2",
|
|
44
45
|
"rehype-raw": "^7.0.0",
|
|
45
46
|
"rehype-sanitize": "^6.0.0",
|
|
@@ -53,39 +54,38 @@
|
|
|
53
54
|
"strip-markdown": "^6.0.0",
|
|
54
55
|
"stylefire": "^7.0.3",
|
|
55
56
|
"unified": "^11.0.5",
|
|
56
|
-
"unist-util-visit": "^5.
|
|
57
|
+
"unist-util-visit": "^5.1.0",
|
|
57
58
|
"vue-content-loader": "^2.0.1",
|
|
58
59
|
"vue-sonner": "^2.0.9",
|
|
59
60
|
"vue3-json-viewer": "^2.4.1",
|
|
60
61
|
"vue3-text-clamp": "^0.1.2",
|
|
61
62
|
"vue3-xml-viewer": "^0.0.14",
|
|
62
|
-
"yaml": "^2.
|
|
63
|
+
"yaml": "^2.9.0"
|
|
63
64
|
},
|
|
64
65
|
"devDependencies": {
|
|
65
66
|
"@intlify/cli": "^0.13.1",
|
|
66
|
-
"@tailwindcss/cli": "^4.0
|
|
67
|
-
"@tailwindcss/typography": "^0.5.
|
|
68
|
-
"@tsconfig/node22": "^22.0.
|
|
67
|
+
"@tailwindcss/cli": "^4.3.0",
|
|
68
|
+
"@tailwindcss/typography": "^0.5.19",
|
|
69
|
+
"@tsconfig/node22": "^22.0.5",
|
|
69
70
|
"@types/geojson": "^7946.0.16",
|
|
70
|
-
"@types/node": "^22.
|
|
71
|
-
"@vitejs/plugin-vue": "^6.0",
|
|
71
|
+
"@types/node": "^22.19.19",
|
|
72
|
+
"@vitejs/plugin-vue": "^6.0.7",
|
|
72
73
|
"@vue/eslint-config-prettier": "^10.2.0",
|
|
73
|
-
"@vue/eslint-config-typescript": "^14.
|
|
74
|
-
"@vue/tsconfig": "^0.8.
|
|
75
|
-
"
|
|
76
|
-
"eslint": "^9.
|
|
77
|
-
"
|
|
78
|
-
"
|
|
79
|
-
"npm-run-all2": "^8.0",
|
|
74
|
+
"@vue/eslint-config-typescript": "^14.7.0",
|
|
75
|
+
"@vue/tsconfig": "^0.8.1",
|
|
76
|
+
"eslint": "^9.39.4",
|
|
77
|
+
"eslint-plugin-vue": "^10.9.1",
|
|
78
|
+
"jiti": "^2.7.0",
|
|
79
|
+
"npm-run-all2": "^8.0.4",
|
|
80
80
|
"openapi-types": "^12.1.3",
|
|
81
|
-
"prettier": "^3.
|
|
82
|
-
"tailwindcss": "^4.0
|
|
81
|
+
"prettier": "^3.8.3",
|
|
82
|
+
"tailwindcss": "^4.3.0",
|
|
83
83
|
"typescript": "^5.9.3",
|
|
84
|
-
"vite": "^7.
|
|
85
|
-
"vite-plugin-vue-devtools": "^8.
|
|
86
|
-
"vue": "^3.5.
|
|
87
|
-
"vue-router": "^5.0.
|
|
88
|
-
"vue-tsc": "^3.
|
|
84
|
+
"vite": "^7.3.3",
|
|
85
|
+
"vite-plugin-vue-devtools": "^8.1.2",
|
|
86
|
+
"vue": "^3.5.35",
|
|
87
|
+
"vue-router": "^5.0.7",
|
|
88
|
+
"vue-tsc": "^3.3.2"
|
|
89
89
|
},
|
|
90
90
|
"peerDependencies": {
|
|
91
91
|
"vue": "^3.5.13",
|
|
@@ -107,7 +107,9 @@ async function displayMap() {
|
|
|
107
107
|
p.getHeader().then((h: { maxZoom: number, centerLon: number, centerLat: number }) => {
|
|
108
108
|
const map = new maplibregl.Map({
|
|
109
109
|
container: container.value!,
|
|
110
|
-
|
|
110
|
+
// JSON import is inferred too loosely (e.g. center as number[]) to match
|
|
111
|
+
// maplibre's strict StyleSpecification, so cast through unknown.
|
|
112
|
+
style: styleVector as unknown as maplibregl.StyleSpecification,
|
|
111
113
|
zoom: h.maxZoom - 2,
|
|
112
114
|
center: [h.centerLon, h.centerLat],
|
|
113
115
|
})
|