@datagouv/components-next 1.0.2-dev.28 → 1.0.2-dev.29
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/{Datafair.client-BfqHGYbx.js → Datafair.client-CSUWxY1U.js} +4 -4
- package/dist/{Event--kp8kMdJ.js → Event-B0pbfyAo.js} +1 -1
- package/dist/{JsonPreview.client-B7zKRw0f.js → JsonPreview.client-DWP5adeD.js} +9 -9
- package/dist/{Map-BjUnLyj8.js → Map-ByzoJvTf.js} +2 -2
- package/dist/{MapContainer.client-CnLuK9z1.js → MapContainer.client-B0oJPrx5.js} +10 -10
- package/dist/{OSM-s40W6sQ2.js → OSM-FSBCBM2l.js} +1 -1
- package/dist/{PdfPreview.client-DaSCVdIm.js → PdfPreview.client-B2E_IWUj.js} +4 -4
- package/dist/{Pmtiles.client-C8yT-BXf.js → Pmtiles.client-STSFvULL.js} +4 -4
- package/dist/Swagger.client-mrRTl6ll.js +4 -0
- package/dist/{Tile-DbNFNPfU.js → Tile-nykTnQlb.js} +4 -4
- package/dist/{TileImage-BsXBxMtq.js → TileImage-RLU-wMoy.js} +1 -1
- package/dist/{View-BR92hTWP.js → View-SHblmfOT.js} +1 -1
- package/dist/{XmlPreview.client-Drinunxx.js → XmlPreview.client-C0zaJXWA.js} +7 -7
- package/dist/components-next.css +3 -3
- package/dist/components-next.js +13 -13
- package/dist/{index-CL1fTC98.js → index-kxzw3Ssm.js} +1164 -1164
- package/dist/{leaflet-src-7m1mB8LI.js → leaflet-src-DfyFSZpM.js} +185 -183
- package/dist/{main-8TIl7HtL.js → main-BMXOPzsN.js} +5699 -5700
- package/dist/{text-clamp.esm-B5kW_XMt.js → text-clamp.esm-DVseBqZZ.js} +4 -4
- package/dist/{tilecoord-Db24Px13.js → tilecoord-BgTy1qJO.js} +5 -5
- package/dist/{vue3-json-viewer-BXwup7nO.js → vue3-json-viewer-BgCuOAH6.js} +10 -10
- package/dist/{vue3-xml-viewer.common-C1iMT812.js → vue3-xml-viewer.common-CwN-5lms.js} +16 -16
- package/package.json +1 -1
- package/dist/Swagger.client-CKfu0fhi.js +0 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as K, ref as C, reactive as P, computed as z, watch as g,
|
|
1
|
+
import { defineComponent as K, ref as C, reactive as P, computed as z, watch as g, nextTick as W, onUnmounted as Q, onMounted as X, openBlock as Y, createElementBlock as Z, normalizeStyle as ee, unref as H, createElementVNode as $, renderSlot as j } from "vue";
|
|
2
2
|
var L = null;
|
|
3
3
|
function te(e) {
|
|
4
4
|
return L || (L = (window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || function(r) {
|
|
@@ -197,11 +197,11 @@ var D = K({ __name: "text-clamp", props: { text: { type: String, required: !0 },
|
|
|
197
197
|
W((() => {
|
|
198
198
|
h();
|
|
199
199
|
}));
|
|
200
|
-
})),
|
|
200
|
+
})), Q((() => {
|
|
201
201
|
A();
|
|
202
|
-
})),
|
|
202
|
+
})), X((() => {
|
|
203
203
|
h();
|
|
204
|
-
})), (a, c) => (
|
|
204
|
+
})), (a, c) => (Y(), Z("div", { ref_key: "textClampRef", ref: n, class: "text-clamp", style: ee({ overflow: "hidden", maxHeight: H(u) }) }, [$("span", { ref_key: "contentRef", ref: s }, [j(a.$slots, "before", { expand: O, collapse: T, toggle: F, clamped: H(l), expanded: i.localExpanded }), $("span", { ref_key: "textRef", ref: o, "aria-label": e.text }, null, 8, le), j(a.$slots, "after", { expand: O, collapse: T, toggle: F, clamped: H(l), expanded: i.localExpanded })], 512)], 4));
|
|
205
205
|
} });
|
|
206
206
|
D.__file = "package/text-clamp.vue";
|
|
207
207
|
const ce = (e) => (e.install = function(r) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { T as _, W as nt, n as xt, c as H, b as et } from "./Image-34hvypZI.js";
|
|
2
2
|
import { z as Tt, g as pt } from "./common-PJfpC179.js";
|
|
3
|
-
import { aC as It, E as ft, al as Xt, U as dt, g as at, X as Wt, w as Mt, F as b,
|
|
3
|
+
import { aC as It, E as ft, al as Xt, U as dt, g as at, X as Wt, w as Mt, F as b, L, an as _t, aS as vt, n as gt, x as Yt, r as Lt, aT as Ft, ak as wt, aI as yt, az as Dt, aJ as Ot, aU as st, ae as ot, i as Ct, W as z, a1 as $, d as V, l as Pt, u as rt, a7 as ht, I as At, a as Rt } from "./proj-DsetBcW7.js";
|
|
4
4
|
class mt extends It {
|
|
5
5
|
/**
|
|
6
6
|
* @param {import("./tilecoord.js").TileCoord} tileCoord Tile coordinate.
|
|
@@ -369,7 +369,7 @@ function St(a, t, e, s, n, i, c, m, g, T, X, x, F, w) {
|
|
|
369
369
|
return Math.round(o * e) / e;
|
|
370
370
|
}
|
|
371
371
|
r.globalCompositeOperation = "lighter";
|
|
372
|
-
const E =
|
|
372
|
+
const E = gt();
|
|
373
373
|
g.forEach(function(o, y, C) {
|
|
374
374
|
Mt(E, o.extent);
|
|
375
375
|
});
|
|
@@ -405,7 +405,7 @@ function St(a, t, e, s, n, i, c, m, g, T, X, x, F, w) {
|
|
|
405
405
|
), o.clipExtent && l.restore();
|
|
406
406
|
}
|
|
407
407
|
}));
|
|
408
|
-
const u =
|
|
408
|
+
const u = _t(c);
|
|
409
409
|
return m.getTriangles().forEach(function(o, y, C) {
|
|
410
410
|
const p = o.source, I = o.target;
|
|
411
411
|
let v = p[0][0], Y = p[0][1], W = p[1][0], M = p[1][1], D = p[2][0], A = p[2][1];
|
|
@@ -490,7 +490,7 @@ class Kt {
|
|
|
490
490
|
const u = d[0] + "/" + d[1];
|
|
491
491
|
return g[u] || (g[u] = T(d)), g[u];
|
|
492
492
|
}, this.maxSourceExtent_ = n, this.errorThresholdSquared_ = i * i, this.triangles_ = [], this.wrapsXInSource_ = !1, this.canWrapXInSource_ = this.sourceProj_.canWrapX() && !!n && !!this.sourceProj_.getExtent() && L(n) >= L(this.sourceProj_.getExtent()), this.sourceWorldWidth_ = this.sourceProj_.getExtent() ? L(this.sourceProj_.getExtent()) : null, this.targetWorldWidth_ = this.targetProj_.getExtent() ? L(this.targetProj_.getExtent()) : null;
|
|
493
|
-
const X =
|
|
493
|
+
const X = _t(s), x = yt(s), F = Dt(s), w = Ot(s), r = this.transformInv_(X), h = this.transformInv_(x), E = this.transformInv_(F), l = this.transformInv_(w), f = Zt + (c ? Math.max(
|
|
494
494
|
0,
|
|
495
495
|
Math.ceil(
|
|
496
496
|
Math.log2(
|
|
@@ -670,7 +670,7 @@ class Kt {
|
|
|
670
670
|
* @return {import("../extent.js").Extent} Calculated extent.
|
|
671
671
|
*/
|
|
672
672
|
calculateSourceExtent() {
|
|
673
|
-
const t =
|
|
673
|
+
const t = gt();
|
|
674
674
|
return this.triangles_.forEach(function(e, s, n) {
|
|
675
675
|
const i = e.source;
|
|
676
676
|
$(t, i[0]), $(t, i[1]), $(t, i[2]);
|
|
@@ -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",
|
|
@@ -1041,10 +1041,10 @@ const Me = /* @__PURE__ */ _e(Ae), Ve = function(e, y) {
|
|
|
1041
1041
|
};
|
|
1042
1042
|
function Re(e, y, c, p, d, i) {
|
|
1043
1043
|
const n = ie("json-box");
|
|
1044
|
-
return
|
|
1044
|
+
return _(), N("div", {
|
|
1045
1045
|
class: S(e.jvClass)
|
|
1046
1046
|
}, [
|
|
1047
|
-
e.copyable ? (
|
|
1047
|
+
e.copyable ? (_(), N("div", {
|
|
1048
1048
|
key: 0,
|
|
1049
1049
|
class: S(`jv-tooltip ${e.copyText.align || "right"}`)
|
|
1050
1050
|
}, [
|
|
@@ -1067,7 +1067,7 @@ function Re(e, y, c, p, d, i) {
|
|
|
1067
1067
|
"preview-mode": e.previewMode
|
|
1068
1068
|
}, null, 8, ["value", "sort", "preview-mode"])
|
|
1069
1069
|
], 2),
|
|
1070
|
-
e.expandableCode && e.boxed ? (
|
|
1070
|
+
e.expandableCode && e.boxed ? (_(), N("div", {
|
|
1071
1071
|
key: 1,
|
|
1072
1072
|
class: "jv-more",
|
|
1073
1073
|
onClick: y[0] || (y[0] = (...t) => e.toggleExpandCode && e.toggleExpandCode(...t))
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { g as Ke } from "./main-BMXOPzsN.js";
|
|
2
2
|
import We from "vue";
|
|
3
|
-
function Fe(
|
|
3
|
+
function Fe($, K) {
|
|
4
4
|
for (var V = 0; V < K.length; V++) {
|
|
5
5
|
const p = K[V];
|
|
6
6
|
if (typeof p != "string" && !Array.isArray(p)) {
|
|
7
7
|
for (const X in p)
|
|
8
|
-
if (X !== "default" && !(X in
|
|
8
|
+
if (X !== "default" && !(X in $)) {
|
|
9
9
|
const _ = Object.getOwnPropertyDescriptor(p, X);
|
|
10
|
-
_ && Object.defineProperty(
|
|
10
|
+
_ && Object.defineProperty($, X, _.get ? _ : {
|
|
11
11
|
enumerable: !0,
|
|
12
12
|
get: () => p[X]
|
|
13
13
|
});
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
|
-
return Object.freeze(Object.defineProperty(
|
|
17
|
+
return Object.freeze(Object.defineProperty($, Symbol.toStringTag, { value: "Module" }));
|
|
18
18
|
}
|
|
19
19
|
var Y = { exports: {} }, ee;
|
|
20
20
|
function ze() {
|
|
21
|
-
return ee || (ee = 1, (function(
|
|
21
|
+
return ee || (ee = 1, (function($) {
|
|
22
22
|
(function() {
|
|
23
23
|
var K = {
|
|
24
24
|
/***/
|
|
@@ -426,7 +426,7 @@ function ze() {
|
|
|
426
426
|
default: function() {
|
|
427
427
|
return (
|
|
428
428
|
/* binding */
|
|
429
|
-
|
|
429
|
+
$e
|
|
430
430
|
);
|
|
431
431
|
}
|
|
432
432
|
}), typeof window < "u") {
|
|
@@ -466,7 +466,7 @@ function ze() {
|
|
|
466
466
|
class: "bracket"
|
|
467
467
|
}, ">", -1));
|
|
468
468
|
function G(o, v, g, E, h, b) {
|
|
469
|
-
const y = (0, e.resolveComponent)("CaretDown"), S = (0, e.resolveComponent)("CaretRight"),
|
|
469
|
+
const y = (0, e.resolveComponent)("CaretDown"), S = (0, e.resolveComponent)("CaretRight"), I = (0, e.resolveComponent)("XmlElementName"), Q = (0, e.resolveComponent)("XmlAttributeLine"), q = (0, e.resolveComponent)("XmlElement", !0), B = (0, e.resolveComponent)("XmlElementContent"), je = (0, e.resolveComponent)("XmlCDataSection"), Ue = (0, e.resolveComponent)("XmlRemark");
|
|
470
470
|
return (0, e.openBlock)(), (0, e.createElementBlock)("div", r, [(0, e.createElementVNode)("div", null, [o.selfClosing ? (0, e.createCommentVNode)("", !0) : ((0, e.openBlock)(), (0, e.createElementBlock)(e.Fragment, {
|
|
471
471
|
key: 0
|
|
472
472
|
}, [o.collapsed ? ((0, e.openBlock)(), (0, e.createBlock)(S, {
|
|
@@ -477,7 +477,7 @@ function ze() {
|
|
|
477
477
|
key: 0,
|
|
478
478
|
class: "caret",
|
|
479
479
|
onClick: o.toggleCollapsed
|
|
480
|
-
}, null, 8, ["onClick"]))], 64)), u, (0, e.createVNode)(
|
|
480
|
+
}, null, 8, ["onClick"]))], 64)), u, (0, e.createVNode)(I, {
|
|
481
481
|
class: "clickable",
|
|
482
482
|
name: o.name,
|
|
483
483
|
onClick: o.toggleCollapsed
|
|
@@ -496,7 +496,7 @@ function ze() {
|
|
|
496
496
|
}, null, 8, ["cdataSection"]))), 128)), ((0, e.openBlock)(!0), (0, e.createElementBlock)(e.Fragment, null, (0, e.renderList)(o.remarks, (L, N) => ((0, e.openBlock)(), (0, e.createBlock)(Ue, {
|
|
497
497
|
key: `r${N}`,
|
|
498
498
|
remark: L
|
|
499
|
-
}, null, 8, ["remark"]))), 128))])])), !o.selfClosing && !o.collapsed ? ((0, e.openBlock)(), (0, e.createElementBlock)("div", w, [O, (0, e.createVNode)(
|
|
499
|
+
}, null, 8, ["remark"]))), 128))])])), !o.selfClosing && !o.collapsed ? ((0, e.openBlock)(), (0, e.createElementBlock)("div", w, [O, (0, e.createVNode)(I, {
|
|
500
500
|
name: o.name,
|
|
501
501
|
closing: !0
|
|
502
502
|
}, null, 8, ["name"]), f])) : (0, e.createCommentVNode)("", !0)]);
|
|
@@ -549,8 +549,8 @@ function ze() {
|
|
|
549
549
|
var c = /* @__PURE__ */ (0, M.A)(d, [["render", m], ["__scopeId", "data-v-75f773a5"]]);
|
|
550
550
|
function D(o, v, g, E, h, b) {
|
|
551
551
|
const y = (0, e.resolveComponent)("XmlAttribute");
|
|
552
|
-
return (0, e.openBlock)(), (0, e.createElementBlock)("span", null, [((0, e.openBlock)(!0), (0, e.createElementBlock)(e.Fragment, null, (0, e.renderList)(o.attributes, (S,
|
|
553
|
-
key:
|
|
552
|
+
return (0, e.openBlock)(), (0, e.createElementBlock)("span", null, [((0, e.openBlock)(!0), (0, e.createElementBlock)(e.Fragment, null, (0, e.renderList)(o.attributes, (S, I) => ((0, e.openBlock)(), (0, e.createBlock)(y, {
|
|
553
|
+
key: I,
|
|
554
554
|
attribute: S
|
|
555
555
|
}, null, 8, ["attribute"]))), 128))]);
|
|
556
556
|
}
|
|
@@ -705,12 +705,12 @@ function ze() {
|
|
|
705
705
|
node: Element
|
|
706
706
|
},
|
|
707
707
|
setup(o) {
|
|
708
|
-
const v = (0, e.ref)(!1), g = (0, e.computed)(() => o.node.nodeName), E = (0, e.computed)(() => Array.from(o.node.childNodes)), h = (0, e.computed)(() => E.value && E.value.filter((B) => B.nodeType === 1)), b = (0, e.computed)(() => E.value && E.value.filter((B) => B.nodeType === 3)), y = (0, e.computed)(() => E.value && E.value.filter((B) => B.nodeType === 4)), S = (0, e.computed)(() => E.value && E.value.filter((B) => B.nodeType === 8)),
|
|
708
|
+
const v = (0, e.ref)(!1), g = (0, e.computed)(() => o.node.nodeName), E = (0, e.computed)(() => Array.from(o.node.childNodes)), h = (0, e.computed)(() => E.value && E.value.filter((B) => B.nodeType === 1)), b = (0, e.computed)(() => E.value && E.value.filter((B) => B.nodeType === 3)), y = (0, e.computed)(() => E.value && E.value.filter((B) => B.nodeType === 4)), S = (0, e.computed)(() => E.value && E.value.filter((B) => B.nodeType === 8)), I = (0, e.computed)(() => o.node.attributes && Array.from(o.node.attributes) || []), Q = !h.value.length && !b.value.length && !y.value.length && !S.value.length;
|
|
709
709
|
return {
|
|
710
710
|
name: g,
|
|
711
711
|
childElements: h,
|
|
712
712
|
childContents: b,
|
|
713
|
-
attributes:
|
|
713
|
+
attributes: I,
|
|
714
714
|
cdataSections: y,
|
|
715
715
|
remarks: S,
|
|
716
716
|
selfClosing: Q,
|
|
@@ -744,8 +744,8 @@ function ze() {
|
|
|
744
744
|
rootNode: g
|
|
745
745
|
};
|
|
746
746
|
}
|
|
747
|
-
}), Ve = /* @__PURE__ */ (0, M.A)(Ne, [["render", t]]),
|
|
748
|
-
})(),
|
|
747
|
+
}), Ve = /* @__PURE__ */ (0, M.A)(Ne, [["render", t]]), Ie = Ve, $e = Ie;
|
|
748
|
+
})(), $.exports = X;
|
|
749
749
|
})();
|
|
750
750
|
})(Y)), Y.exports;
|
|
751
751
|
}
|
package/package.json
CHANGED