@datagouv/components-next 1.0.2-dev.172 → 1.0.2-dev.173
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-CES67S3v.js → Datafair.client-DrxHU3d_.js} +1 -1
- package/dist/{ImagePreview.client-c_SJXLpr.js → ImagePreview.client-DHrr-JCM.js} +1 -1
- package/dist/{JsonPreview.client-DtCw5aCA.js → JsonPreview.client-CvmhvpbB.js} +2 -2
- package/dist/{MapContainer.client-Q3TmXpPR.js → MapContainer.client-9VrKlUPt.js} +2 -2
- package/dist/{PdfPreview.client-BXJzS-Hm.js → PdfPreview.client-CiPvfzzR.js} +2 -2
- package/dist/{Pmtiles.client-DNiYcHH3.js → Pmtiles.client-0R3Z5sYM.js} +1 -1
- package/dist/{PreviewWrapper.vue_vue_type_script_setup_true_lang-B3ByRwHK.js → PreviewWrapper.vue_vue_type_script_setup_true_lang-B0PyOeL6.js} +1 -1
- package/dist/{XmlPreview.client-CPfIZl9q.js → XmlPreview.client-N2n5j4WI.js} +3 -3
- package/dist/components-next.js +1 -1
- package/dist/{index-CXeG6J6C.js → index-D0JOBDBD.js} +1 -1
- package/dist/{leaflet-src-BwEce6uO.js → leaflet-src-DxB74Wpp.js} +1 -1
- package/dist/{main-D7EaQcIR.js → main-QOs57DKh.js} +11 -10
- package/dist/{vue3-xml-viewer.common-DznVepCg.js → vue3-xml-viewer.common-BnexQtzg.js} +1 -1
- package/package.json +1 -1
- package/src/components/TabularExplorer/TabularExplorer.vue +5 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as l, computed as a, openBlock as t, createElementBlock as o, createElementVNode as u, createBlock as f, withCtx as p, createTextVNode as m, toDisplayString as _, unref as h } from "vue";
|
|
2
|
-
import { a as x, _ as g } from "./main-
|
|
2
|
+
import { a as x, _ as g } from "./main-QOs57DKh.js";
|
|
3
3
|
const v = { class: "fr-text--xs" }, b = { key: 0 }, k = ["src"], $ = /* @__PURE__ */ l({
|
|
4
4
|
__name: "Datafair.client",
|
|
5
5
|
props: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as T, ref as _, computed as l, openBlock as r, createElementBlock as u, createBlock as p, withCtx as f, createTextVNode as m, toDisplayString as g, unref as o } from "vue";
|
|
2
|
-
import { a as y, u as z, b as k, _ as d } from "./main-
|
|
2
|
+
import { a as y, u as z, b as k, _ as d } from "./main-QOs57DKh.js";
|
|
3
3
|
const w = { class: "text-xs" }, B = ["src"], E = /* @__PURE__ */ T({
|
|
4
4
|
__name: "ImagePreview.client",
|
|
5
5
|
props: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as c, defineAsyncComponent as u, openBlock as m, createBlock as p, unref as r, withCtx as f, createVNode as l } from "vue";
|
|
2
|
-
import { u as d } from "./main-
|
|
3
|
-
import { _ as h } from "./PreviewWrapper.vue_vue_type_script_setup_true_lang-
|
|
2
|
+
import { u as d } from "./main-QOs57DKh.js";
|
|
3
|
+
import { _ as h } from "./PreviewWrapper.vue_vue_type_script_setup_true_lang-B0PyOeL6.js";
|
|
4
4
|
const J = /* @__PURE__ */ c({
|
|
5
5
|
__name: "JsonPreview.client",
|
|
6
6
|
props: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
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-
|
|
2
|
+
import { a as F, _ as O } from "./main-QOs57DKh.js";
|
|
3
3
|
const Z = /* @__PURE__ */ E({
|
|
4
4
|
__name: "MapContainer.client",
|
|
5
5
|
props: {
|
|
@@ -24,7 +24,7 @@ const Z = /* @__PURE__ */ E({
|
|
|
24
24
|
import("./Tile-CSpn0Ca8.js").then((t) => t.d),
|
|
25
25
|
import("./OSM-CcrUhItr.js"),
|
|
26
26
|
// @ts-expect-error no types provided
|
|
27
|
-
import("./index-
|
|
27
|
+
import("./index-D0JOBDBD.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,
|
|
@@ -12,8 +12,8 @@ var sZ = (R, l, U, Z) => ({
|
|
|
12
12
|
}
|
|
13
13
|
});
|
|
14
14
|
import { defineComponent as cd, ref as td, onBeforeUnmount as Rd, openBlock as LU, createBlock as Nd, unref as sd, withCtx as bd, createElementVNode as nd, createElementBlock as bZ, Fragment as ad, renderList as hd } from "vue";
|
|
15
|
-
import { _ as md } from "./PreviewWrapper.vue_vue_type_script_setup_true_lang-
|
|
16
|
-
import { u as id } from "./main-
|
|
15
|
+
import { _ as md } from "./PreviewWrapper.vue_vue_type_script_setup_true_lang-B0PyOeL6.js";
|
|
16
|
+
import { u as id } from "./main-QOs57DKh.js";
|
|
17
17
|
var ZU = {};
|
|
18
18
|
ZU.d = (R, l) => {
|
|
19
19
|
for (var U in l)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as S0, ref as P0, computed as Zc, useTemplateRef as I0, onMounted as E0, openBlock as yh, createElementBlock as ip, createBlock as M0, withCtx as Gm, createTextVNode as $m, toDisplayString as qc, unref as ms, createElementVNode as Po, createVNode as A0, createCommentVNode as C0 } from "vue";
|
|
2
|
-
import { g as D0, a as z0, d as R0, u as k0, e as L0, f as F0, _ as O0, h as B0, i as N0, Q as j0, t as V0 } from "./main-
|
|
2
|
+
import { g as D0, a as z0, d as R0, u as k0, e as L0, f as F0, _ as O0, h as B0, i as N0, Q as j0, t as V0 } from "./main-QOs57DKh.js";
|
|
3
3
|
var dn = Uint8Array, kl = Uint16Array, U0 = Int32Array, lg = new dn([
|
|
4
4
|
0,
|
|
5
5
|
0,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as _, ref as g, computed as v, onMounted as S, nextTick as w, openBlock as l, createElementBlock as k, renderSlot as C, toDisplayString as r, unref as a, createBlock as n, withCtx as o, createTextVNode as u, createCommentVNode as b } from "vue";
|
|
2
|
-
import { a as B, b as E, c as L, _ as c } from "./main-
|
|
2
|
+
import { a as B, b as E, c as L, _ as c } from "./main-QOs57DKh.js";
|
|
3
3
|
const R = { class: "text-xs" }, q = {
|
|
4
4
|
key: 1,
|
|
5
5
|
class: "text-gray-medium"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as i, defineAsyncComponent as m, openBlock as u, createBlock as f, unref as t, withCtx as l, createVNode as p } from "vue";
|
|
2
|
-
import { u as x } from "./main-
|
|
3
|
-
import { _ as w } from "./PreviewWrapper.vue_vue_type_script_setup_true_lang-
|
|
2
|
+
import { u as x } from "./main-QOs57DKh.js";
|
|
3
|
+
import { _ as w } from "./PreviewWrapper.vue_vue_type_script_setup_true_lang-B0PyOeL6.js";
|
|
4
4
|
const X = /* @__PURE__ */ i({
|
|
5
5
|
__name: "XmlPreview.client",
|
|
6
6
|
props: {
|
|
@@ -8,7 +8,7 @@ const X = /* @__PURE__ */ i({
|
|
|
8
8
|
},
|
|
9
9
|
setup(r) {
|
|
10
10
|
const o = m(
|
|
11
|
-
() => import("./vue3-xml-viewer.common-
|
|
11
|
+
() => import("./vue3-xml-viewer.common-BnexQtzg.js").then((e) => e.v).then((e) => e.default || e.XmlViewer)
|
|
12
12
|
), n = r, s = x(), c = async () => {
|
|
13
13
|
const e = await fetch(n.resource.url);
|
|
14
14
|
if (!e.ok) throw new Error(`HTTP error! status: ${e.status}`);
|
package/dist/components-next.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as e, k as t, l as r, m as o, n as i, o as n, p as c, q as l, i as b, C as u, r as g, s as d, D as T, v as C, w as p, x as S, y as m, z as D, B as O, E as R, F as E, G as f, H as y, I, J as h, K as A, L as P, M as v, N as M, O as L, P as z, R as F, S as w, T as G, U as _, V as N, W as U, X as k, Y as x, Z as B, $ as H, a0 as Q, a1 as V, a2 as W, a3 as Y, a4 as X, a5 as j, a6 as Z, a7 as q, a8 as J, a9 as K, aa as $, ab as aa, ac as sa, ad as ea, ae as ta, af as ra, ag as oa, ah as ia, ai as na, aj as ca, ak as la, al as ba, am as ua, an as ga, ao as da, ap as Ta, aq as Ca, ar as pa, as as Sa, at as ma, au as Da, av as Oa, aw as Ra, ax as Ea, ay as fa, az as ya, aA as Ia, aB as ha, aC as Aa, aD as Pa, aE as va, aF as Ma, aG as La, aH as za, aI as Fa, aJ as wa, aK as Ga, aL as _a, aM as Na, aN as Ua, aO as ka, aP as xa, aQ as Ba, aR as Ha, aS as Qa, aT as Va, aU as Wa, aV as Ya, aW as Xa, aX as ja, aY as Za, aZ as qa, a_ as Ja, a$ as Ka, b0 as $a, b1 as as, b2 as ss, b3 as es, b4 as ts, b5 as rs, b6 as os, b7 as is, b8 as ns, b9 as cs, ba as ls, bb as bs, bc as us, bd as gs, be as ds, bf as Ts, bg as Cs, bh as ps, bi as Ss, bj as ms, bk as Ds, bl as Os, bm as Rs, bn as Es, bo as fs, bp as ys, bq as Is, br as hs, bs as As, bt as Ps, bu as vs, f as Ms, e as Ls, bv as zs, bw as Fs, c as ws, bx as Gs, b as _s, by as Ns, bz as Us, bA as ks, bB as xs, bC as Bs, bD as Hs, bE as Qs, bF as Vs, bG as Ws, bH as Ys, bI as Xs, bJ as js, bK as Zs, bL as qs, bM as Js, bN as Ks, bO as $s, bP as ae, bQ as se, bR as ee, bS as te, bT as re, bU as oe, bV as ie, bW as ne, bW as ce, bX as le, bY as be, bZ as ue, b_ as ge, b$ as de, t as Te, c0 as Ce, c1 as pe, c2 as Se, c3 as me, c4 as De, u as Oe, c5 as Re, c6 as Ee, d as fe, c7 as ye, c8 as Ie, c9 as he, ca as Ae, cb as Pe, cc as ve, cd as Me, ce as Le, cf as ze, cg as Fe, ch as we, a as Ge } from "./main-
|
|
1
|
+
import { A as e, k as t, l as r, m as o, n as i, o as n, p as c, q as l, i as b, C as u, r as g, s as d, D as T, v as C, w as p, x as S, y as m, z as D, B as O, E as R, F as E, G as f, H as y, I, J as h, K as A, L as P, M as v, N as M, O as L, P as z, R as F, S as w, T as G, U as _, V as N, W as U, X as k, Y as x, Z as B, $ as H, a0 as Q, a1 as V, a2 as W, a3 as Y, a4 as X, a5 as j, a6 as Z, a7 as q, a8 as J, a9 as K, aa as $, ab as aa, ac as sa, ad as ea, ae as ta, af as ra, ag as oa, ah as ia, ai as na, aj as ca, ak as la, al as ba, am as ua, an as ga, ao as da, ap as Ta, aq as Ca, ar as pa, as as Sa, at as ma, au as Da, av as Oa, aw as Ra, ax as Ea, ay as fa, az as ya, aA as Ia, aB as ha, aC as Aa, aD as Pa, aE as va, aF as Ma, aG as La, aH as za, aI as Fa, aJ as wa, aK as Ga, aL as _a, aM as Na, aN as Ua, aO as ka, aP as xa, aQ as Ba, aR as Ha, aS as Qa, aT as Va, aU as Wa, aV as Ya, aW as Xa, aX as ja, aY as Za, aZ as qa, a_ as Ja, a$ as Ka, b0 as $a, b1 as as, b2 as ss, b3 as es, b4 as ts, b5 as rs, b6 as os, b7 as is, b8 as ns, b9 as cs, ba as ls, bb as bs, bc as us, bd as gs, be as ds, bf as Ts, bg as Cs, bh as ps, bi as Ss, bj as ms, bk as Ds, bl as Os, bm as Rs, bn as Es, bo as fs, bp as ys, bq as Is, br as hs, bs as As, bt as Ps, bu as vs, f as Ms, e as Ls, bv as zs, bw as Fs, c as ws, bx as Gs, b as _s, by as Ns, bz as Us, bA as ks, bB as xs, bC as Bs, bD as Hs, bE as Qs, bF as Vs, bG as Ws, bH as Ys, bI as Xs, bJ as js, bK as Zs, bL as qs, bM as Js, bN as Ks, bO as $s, bP as ae, bQ as se, bR as ee, bS as te, bT as re, bU as oe, bV as ie, bW as ne, bW as ce, bX as le, bY as be, bZ as ue, b_ as ge, b$ as de, t as Te, c0 as Ce, c1 as pe, c2 as Se, c3 as me, c4 as De, u as Oe, c5 as Re, c6 as Ee, d as fe, c7 as ye, c8 as Ie, c9 as he, ca as Ae, cb as Pe, cc as ve, cd as Me, ce as Le, cf as ze, cg as Fe, ch as we, a as Ge } from "./main-QOs57DKh.js";
|
|
2
2
|
export {
|
|
3
3
|
e as AI_SUGGESTION_MIN_DESCRIPTION_LENGTH,
|
|
4
4
|
t as ASSOCIATION,
|
|
@@ -6,7 +6,7 @@ import { a as TileGrid, U as UrlTile, e as extentFromProjection, c as createXYZ,
|
|
|
6
6
|
import { D as DEFAULT_MAX_ZOOM, a as assert, f as forEach, i as intersectsLineString, b as intersectsLineStringArray, l as linearRingssContainsXY, c as intersectsLinearRingMultiArray, d as compose, e as create, g as apply, s as setFromArray, m as multiply, h as scale, r as reset, t as translate } from "./common-BoeTUnDZ.js";
|
|
7
7
|
import { R as RBush$1, C as Collection, a as CollectionEventType, b as asColorLike, d as defaultFillStyle, c as defaultStrokeStyle, e as defaultLineCap, f as defaultLineDash, g as defaultLineDashOffset, h as defaultLineJoin, i as defaultLineWidth, j as defaultMiterLimit, k as defaultStrokeOffset, l as defaultPadding, m as defaultTextBaseline, n as defaultTextAlign, o as defaultFont, r as registerFont, p as getTextDimensions, q as drawImageOrLabel, s as measureAndCacheTextWidth, I as Icon, B as BaseVectorLayer, P as PointerInteraction, t as noModifierKeys, u as always, v as shiftKeyOnly, w as InteractionProperty, M as MapBrowserEventType, x as MapBrowserEvent, y as never, z as createEditingStyle, A as primaryAction, D as altKeyOnly, E as singleClick, F as Interaction, G as Fill, S as Stroke, T as Text, H as Style$1, J as CircleStyle, K as checkedFonts, L as Map$1, N as pointerMove, O as ImageStyle, Q as Attribution, Z as Zoom, U as MapProperty } from "./Map-BfqKMw0S.js";
|
|
8
8
|
import { S as SimpleGeometry, m as maxSquaredDelta, a as assignClosestPoint, i as inflateCoordinates, d as douglasPeucker, b as deflateCoordinates, c as arrayMaxSquaredDelta, e as assignClosestArrayPoint, f as inflateCoordinatesArray, g as douglasPeuckerArray, h as deflateCoordinatesArray, P as Point$1, j as multiArrayMaxSquaredDelta, k as assignClosestMultiArrayPoint, l as linearRingss$1, o as orientLinearRingsArray, n as inflateMultiCoordinatesArray, p as getInteriorPointsOfMultiArray, q as linearRingssAreOriented, r as quantizeMultiArray, s as Polygon, t as deflateMultiCoordinatesArray, u as getInteriorPointOfArray, v as inflateEnds, w as transform2D, x as quantizeArray, y as deflateCoordinate, z as rotate, A as snap, B as transformGeom2D, V as ViewHint, G as Geometry, C as getStrideForLayout, D as linearRingsAreOriented, E as orientLinearRings, F as getLayoutForStride, H as circular, L as LinearRing, I as View, J as ViewProperty, K as fromExtent } from "./View-BYBpt-AU.js";
|
|
9
|
-
import { j as commonjsGlobal, g as getDefaultExportFromCjs$1 } from "./main-
|
|
9
|
+
import { j as commonjsGlobal, g as getDefaultExportFromCjs$1 } from "./main-QOs57DKh.js";
|
|
10
10
|
import { R as RenderEventType, a as asArray, B as BaseLayer } from "./Event-iXDrp-fy.js";
|
|
11
11
|
import { Z as ZIndexContext, C as CanvasLayerRenderer, c as canvasPool$1, T as TileLayer, a as CanvasTileLayerRenderer, b as TileProperty } from "./Tile-CSpn0Ca8.js";
|
|
12
12
|
function padNumber(i, e, t) {
|
|
@@ -52230,7 +52230,7 @@ const Q$ = { class: "space-y-1 py-6" }, J$ = { class: "flex items-center space-x
|
|
|
52230
52230
|
const t = e, i = J(null);
|
|
52231
52231
|
return s2(async () => {
|
|
52232
52232
|
await Promise.resolve({ });
|
|
52233
|
-
const r = await import("./leaflet-src-
|
|
52233
|
+
const r = await import("./leaflet-src-DxB74Wpp.js").then((a) => a.l);
|
|
52234
52234
|
if (!i.value) return;
|
|
52235
52235
|
const n = r.map(i.value);
|
|
52236
52236
|
r.tileLayer("https://tile.openstreetmap.org/{z}/{x}/{y}.png", {
|
|
@@ -59604,7 +59604,7 @@ const zK = {
|
|
|
59604
59604
|
canEdit: { type: Boolean, default: !1 }
|
|
59605
59605
|
},
|
|
59606
59606
|
setup(e) {
|
|
59607
|
-
const t = ["url", "doi", "www:link", " www:link-1.0-http--link", "www:link-1.0-http--partners", "www:link-1.0-http--related", "www:link-1.0-http--samples"], i = e, r = b2(), n = ft(() => import("./MapContainer.client-
|
|
59607
|
+
const t = ["url", "doi", "www:link", " www:link-1.0-http--link", "www:link-1.0-http--partners", "www:link-1.0-http--related", "www:link-1.0-http--samples"], i = e, r = b2(), n = ft(() => import("./MapContainer.client-9VrKlUPt.js")), l = ft(() => import("./Pmtiles.client-0R3Z5sYM.js")), a = ft(() => import("./JsonPreview.client-CvmhvpbB.js")), c = ft(() => import("./PdfPreview.client-CiPvfzzR.js")), u = ft(() => import("./XmlPreview.client-N2n5j4WI.js")), h = ft(() => import("./ImagePreview.client-DHrr-JCM.js")), d = ft(() => import("./Datafair.client-DrxHU3d_.js")), { t: p } = N1(), { formatRelativeIfRecentDate: C } = xt(), g = am(), m = A(() => {
|
|
59608
59608
|
const H1 = i.resource.format?.toLowerCase();
|
|
59609
59609
|
return H1 === "json" || H1 === "pdf" || H1 === "xml" || b7(H1);
|
|
59610
59610
|
}), f = A(() => g(i.resource)), x = A(() => i.resource.extras["analysis:parsing:pmtiles_url"] || i.resource.format === "pmtiles"), y = A(() => U9(i.dataset.organization) && i.resource.extras.datafairEmbed), H = A(() => U9(i.dataset.organization) && i.resource.extras.apidocUrl), V = A(() => na(i.resource.format) ? i.resource.format : p("Fichier")), z = A(() => rm(i.resource)), M = A(() => z.value === "wms"), b = J(i.expandedOnMount), B = () => {
|
|
@@ -60850,6 +60850,7 @@ const lX = /* @__PURE__ */ o({
|
|
|
60850
60850
|
fullBleed: { type: Boolean },
|
|
60851
60851
|
globalSearch: {},
|
|
60852
60852
|
initialFilters: {},
|
|
60853
|
+
initialSort: {},
|
|
60853
60854
|
rowHref: {},
|
|
60854
60855
|
noFormatColumns: {}
|
|
60855
60856
|
},
|
|
@@ -60893,7 +60894,7 @@ const lX = /* @__PURE__ */ o({
|
|
|
60893
60894
|
function M(X) {
|
|
60894
60895
|
return z.value[X] ?? "text";
|
|
60895
60896
|
}
|
|
60896
|
-
const b = J(null), B = J({ ...r.initialFilters }), R = A(() => {
|
|
60897
|
+
const b = J(r.initialSort ? { ...r.initialSort } : null), B = J({ ...r.initialFilters }), R = A(() => {
|
|
60897
60898
|
const X = { page: 1, page_size: CJ };
|
|
60898
60899
|
b.value && (X[`${b.value.column}__sort`] = b.value.direction);
|
|
60899
60900
|
for (const [r1, t1] of Object.entries(B.value))
|
|
@@ -61691,19 +61692,19 @@ const lX = /* @__PURE__ */ o({
|
|
|
61691
61692
|
async setup(e, { emit: t }) {
|
|
61692
61693
|
let i, r;
|
|
61693
61694
|
const n = ft(
|
|
61694
|
-
() => import("./JsonPreview.client-
|
|
61695
|
+
() => import("./JsonPreview.client-CvmhvpbB.js")
|
|
61695
61696
|
), l = ft(
|
|
61696
|
-
() => import("./PdfPreview.client-
|
|
61697
|
+
() => import("./PdfPreview.client-CiPvfzzR.js")
|
|
61697
61698
|
), a = ft(
|
|
61698
|
-
() => import("./XmlPreview.client-
|
|
61699
|
+
() => import("./XmlPreview.client-N2n5j4WI.js")
|
|
61699
61700
|
), c = ft(
|
|
61700
|
-
() => import("./ImagePreview.client-
|
|
61701
|
+
() => import("./ImagePreview.client-DHrr-JCM.js")
|
|
61701
61702
|
), u = ft(
|
|
61702
|
-
() => import("./Datafair.client-
|
|
61703
|
+
() => import("./Datafair.client-DrxHU3d_.js")
|
|
61703
61704
|
), h = ft(
|
|
61704
|
-
() => import("./MapContainer.client-
|
|
61705
|
+
() => import("./MapContainer.client-9VrKlUPt.js")
|
|
61705
61706
|
), d = ft(
|
|
61706
|
-
() => import("./Pmtiles.client-
|
|
61707
|
+
() => import("./Pmtiles.client-0R3Z5sYM.js")
|
|
61707
61708
|
), p = e, C = t, { t: g } = N1(), m = b2(), { formatRelativeIfRecentDate: f } = xt(), {
|
|
61708
61709
|
hasTabularData: x,
|
|
61709
61710
|
hasPmtiles: y,
|
package/package.json
CHANGED
|
@@ -686,6 +686,10 @@ const props = defineProps<{
|
|
|
686
686
|
// The explorer owns them afterwards: later changes to this prop are ignored,
|
|
687
687
|
// so pass a fresh instance (or remount) to reset them.
|
|
688
688
|
initialFilters?: Record<string, ColumnFilters>
|
|
689
|
+
// Sort seeded on mount, e.g. { column: 'Séance', direction: 'desc' }.
|
|
690
|
+
// Same ownership rule as `initialFilters`: the explorer owns it afterwards,
|
|
691
|
+
// and the user can drop it from the active-sort chip.
|
|
692
|
+
initialSort?: SortConfig
|
|
689
693
|
// When set, renders <a> tags inside the specified column cells for native
|
|
690
694
|
// browser UX (hover URL, ctrl+click, middle-click).
|
|
691
695
|
rowHref?: { columns: string[], href: (row: TabularRow) => string }
|
|
@@ -762,7 +766,7 @@ function getColumnType(col: string): ColumnType {
|
|
|
762
766
|
}
|
|
763
767
|
|
|
764
768
|
// Sort & filter state
|
|
765
|
-
const sort = ref<SortConfig | null>(null)
|
|
769
|
+
const sort = ref<SortConfig | null>(props.initialSort ? { ...props.initialSort } : null)
|
|
766
770
|
const filters = ref<Record<string, ColumnFilters>>({ ...props.initialFilters })
|
|
767
771
|
|
|
768
772
|
const PAGE_SIZE = 50
|