@datagouv/components-next 1.0.2-dev.123 → 1.0.2-dev.125
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-DMmJ6GZp.js → Datafair.client-B1CFLBVW.js} +1 -1
- package/dist/{JsonPreview.client-BJl0ckqf.js → JsonPreview.client-DMal7Zvi.js} +2 -2
- package/dist/{MapContainer.client-BOILtnvJ.js → MapContainer.client-D4TU557F.js} +2 -2
- package/dist/{PdfPreview.client-D7YzJBjf.js → PdfPreview.client-BPKxdMlu.js} +2 -2
- package/dist/{Pmtiles.client-DYui1P0X.js → Pmtiles.client-DW9JBIOy.js} +1 -1
- package/dist/{PreviewWrapper.vue_vue_type_script_setup_true_lang-B1hQo45t.js → PreviewWrapper.vue_vue_type_script_setup_true_lang-B54_WCDL.js} +1 -1
- package/dist/{XmlPreview.client-CNBElgL_.js → XmlPreview.client-DfIA3_I8.js} +3 -3
- package/dist/components-next.js +126 -125
- package/dist/{index-O6jmaKXj.js → index-CtZYQyKo.js} +1 -1
- package/dist/{leaflet-src-KM7yab2d.js → leaflet-src-DcM2vBl8.js} +1 -1
- package/dist/{main-B40Z2ZUX.js → main-BOGKXwyT.js} +207 -203
- package/dist/{vue3-xml-viewer.common-DPhRUkLi.js → vue3-xml-viewer.common-DuOzEGKy.js} +1 -1
- package/package.json +1 -1
- package/src/components/ResourceExplorer/ResourceExplorer.vue +8 -9
- package/src/functions/api.ts +13 -7
- package/src/functions/resources.ts +5 -0
|
@@ -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 {
|
|
2
|
+
import { c3 as x, _ as g } from "./main-BOGKXwyT.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,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 {
|
|
3
|
-
import { _ as h } from "./PreviewWrapper.vue_vue_type_script_setup_true_lang-
|
|
2
|
+
import { bQ as d } from "./main-BOGKXwyT.js";
|
|
3
|
+
import { _ as h } from "./PreviewWrapper.vue_vue_type_script_setup_true_lang-B54_WCDL.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 z, withCtx as N, createTextVNode as V, toDisplayString as q, unref as A, createElementBlock as D } from "vue";
|
|
2
|
-
import {
|
|
2
|
+
import { c3 as F, _ as O } from "./main-BOGKXwyT.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-D6rFonpT.js").then((t) => t.T),
|
|
25
25
|
import("./OSM-gdDSIsDA.js"),
|
|
26
26
|
// @ts-expect-error no types provided
|
|
27
|
-
import("./index-
|
|
27
|
+
import("./index-CtZYQyKo.js")
|
|
28
28
|
]), { CRS: _, GeoportalAttribution: S, GeoportalFullScreen: b, GeoportalZoom: g, 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 {
|
|
15
|
+
import { _ as md } from "./PreviewWrapper.vue_vue_type_script_setup_true_lang-B54_WCDL.js";
|
|
16
|
+
import { bQ as id } from "./main-BOGKXwyT.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 b0, ref as w0, computed as Oc, useTemplateRef as T0, onMounted as S0, openBlock as gh, createElementBlock as tp, createBlock as P0, withCtx as Um, createTextVNode as Gm, toDisplayString as Bc, unref as ts, createElementVNode as ho, createVNode as I0, createCommentVNode as E0 } from "vue";
|
|
2
|
-
import {
|
|
2
|
+
import { b5 as M0, c3 as A0, bT as C0, bQ as D0, bh as z0, bg as R0, _ as k0, aZ as L0, m as F0, Q as O0, bK as B0 } from "./main-BOGKXwyT.js";
|
|
3
3
|
var nn = Uint8Array, xl = Uint16Array, N0 = Int32Array, ag = new nn([
|
|
4
4
|
0,
|
|
5
5
|
0,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as _, ref as g, computed as h, 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 {
|
|
2
|
+
import { c3 as B, bk as E, bi as L, _ as c } from "./main-BOGKXwyT.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 {
|
|
3
|
-
import { _ as w } from "./PreviewWrapper.vue_vue_type_script_setup_true_lang-
|
|
2
|
+
import { bQ as x } from "./main-BOGKXwyT.js";
|
|
3
|
+
import { _ as w } from "./PreviewWrapper.vue_vue_type_script_setup_true_lang-B54_WCDL.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-DuOzEGKy.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, a as t,
|
|
1
|
+
import { A as e, a as t, n as r, o, p as i, q as n, r as c, s as l, m as b, C as u, b as g, c as d, D as T, d as p, t as C, e as S, u as D, v as O, w as R, x as m, y as E, z as f, B as I, E as y, F as h, G as A, H as L, I as M, f as P, g as v, J as z, K as w, M as G, N as _, S as F, L as N, V as U, W as k, X as x, Y as B, Z as H, $ as V, a0 as Q, O as W, h as Y, a1 as j, a2 as X, a3 as q, a4 as J, a5 as K, a6 as Z, a7 as $, a8 as aa, P as sa, a9 as ea, aa as ta, ab as ra, ac as oa, ad as ia, R as na, i as ca, ae as la, af as ba, ag as ua, j as ga, ah as da, ai as Ta, aj as pa, ak as Ca, al as Sa, am as Da, an as Oa, ao as Ra, ap as ma, aq as Ea, ar as fa, as as Ia, at as ya, au as ha, T as Aa, av as La, k as Ma, aw as Pa, ax as va, ay as za, az as wa, l as Ga, aA as _a, aB as Fa, aC as Na, aD as Ua, U as ka, aE as xa, aF as Ba, aG as Ha, aH as Va, aJ as Qa, aK as Wa, aL as Ya, aM as ja, aN as Xa, aO as qa, aP as Ja, aQ as Ka, aR as Za, aS as $a, aT as as, aU as ss, aV as es, aW as ts, aX as rs, aY as os, a_ as is, a$ as ns, b0 as cs, b1 as ls, b2 as bs, b3 as us, b4 as gs, b6 as ds, b7 as Ts, b8 as ps, b9 as Cs, ba as Ss, bb as Ds, bc as Os, bd as Rs, be as ms, bf as Es, bg as fs, bh as Is, bi as ys, bj as hs, bk as As, bl as Ls, bm as Ms, bn as Ps, bo as vs, bp as zs, bq as ws, br as Gs, bs as _s, bt as Fs, bu as Ns, bv as Us, bw as ks, bx as xs, by as Bs, bz as Hs, bA as Vs, bB as Qs, bC as Ws, bD as Ys, bE as js, bF as Xs, bG as qs, bG as Js, bH as Ks, bI as Zs, bJ as $s, bK as ae, bL as se, bM as ee, bN as te, bO as re, bP as oe, bQ as ie, bR as ne, bS as ce, bT as le, bU as be, bV as ue, bW as ge, bX as de, bY as Te, bZ as pe, b_ as Ce, b$ as Se, c0 as De, c1 as Oe, c2 as Re, c3 as me } from "./main-BOGKXwyT.js";
|
|
2
2
|
export {
|
|
3
3
|
e as AI_SUGGESTION_MIN_DESCRIPTION_LENGTH,
|
|
4
4
|
t as ASSOCIATION,
|
|
@@ -17,35 +17,35 @@ export {
|
|
|
17
17
|
C as DataStructure,
|
|
18
18
|
S as DataserviceCard,
|
|
19
19
|
D as DatasetCard,
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
20
|
+
O as DatasetEmbedSection,
|
|
21
|
+
R as DatasetInformationSection,
|
|
22
|
+
m as DatasetQuality,
|
|
23
|
+
E as DatasetQualityInline,
|
|
24
|
+
f as DatasetQualityItem,
|
|
25
25
|
I as DatasetQualityScore,
|
|
26
26
|
y as DatasetQualityTooltipContent,
|
|
27
27
|
h as DatasetSchemaSection,
|
|
28
28
|
A as DatasetSpatialSection,
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
29
|
+
L as DatasetTemporalitySection,
|
|
30
|
+
M as DateRangeDetails,
|
|
31
|
+
P as DescriptionListDetails,
|
|
32
|
+
v as DescriptionListTerm,
|
|
33
|
+
z as DiscussionMessageCard,
|
|
34
34
|
w as Downloads,
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
35
|
+
G as ExtraAccordion,
|
|
36
|
+
_ as GlobalSearch,
|
|
37
|
+
F as InfiniteLoader,
|
|
38
|
+
N as LOCAL_AUTHORITY,
|
|
39
|
+
U as LabelTag,
|
|
40
|
+
k as LeafletMap,
|
|
41
|
+
x as LicenseBadge,
|
|
42
|
+
B as Listbox,
|
|
43
43
|
H as LoadingBlock,
|
|
44
44
|
V as MarkdownViewer,
|
|
45
45
|
Q as Metadata,
|
|
46
46
|
W as OGC_SERVICES_FORMATS,
|
|
47
|
-
|
|
48
|
-
|
|
47
|
+
Y as OTHER,
|
|
48
|
+
j as ObjectCardOwner,
|
|
49
49
|
X as OpenApiViewer,
|
|
50
50
|
q as OrganizationCard,
|
|
51
51
|
J as OrganizationHorizontalCard,
|
|
@@ -59,126 +59,127 @@ export {
|
|
|
59
59
|
ra as Placeholder,
|
|
60
60
|
oa as PostCard,
|
|
61
61
|
ia as ProgressBar,
|
|
62
|
-
na as
|
|
63
|
-
ca as
|
|
64
|
-
la as
|
|
65
|
-
ba as
|
|
66
|
-
ua as
|
|
67
|
-
ga as
|
|
68
|
-
da as
|
|
69
|
-
Ta as
|
|
70
|
-
pa as
|
|
71
|
-
Ca as
|
|
72
|
-
Sa as
|
|
73
|
-
Da as
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
62
|
+
na as RESOURCE_EXPLORER_PAGE_SIZE,
|
|
63
|
+
ca as RESOURCE_TYPE,
|
|
64
|
+
la as RadioGroup,
|
|
65
|
+
ba as RadioInput,
|
|
66
|
+
ua as ReadMore,
|
|
67
|
+
ga as ResourceAccordion,
|
|
68
|
+
da as ResourceExplorer,
|
|
69
|
+
Ta as ResourceExplorerSidebar,
|
|
70
|
+
pa as ResourceExplorerViewer,
|
|
71
|
+
Ca as ResourceIcon,
|
|
72
|
+
Sa as ResourceSelector,
|
|
73
|
+
Da as ReuseCard,
|
|
74
|
+
Oa as ReuseDetails,
|
|
75
|
+
Ra as ReuseHorizontalCard,
|
|
76
|
+
ma as SchemaCard,
|
|
77
|
+
Ea as SearchInput,
|
|
77
78
|
fa as SearchableSelect,
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
79
|
+
Ia as SelectGroup,
|
|
80
|
+
ya as SimpleBanner,
|
|
81
|
+
ha as StatBox,
|
|
82
|
+
Aa as Tab,
|
|
83
|
+
La as TabGroup,
|
|
83
84
|
Ma as TabList,
|
|
84
|
-
|
|
85
|
+
Pa as TabPanel,
|
|
85
86
|
va as TabPanels,
|
|
86
87
|
za as TabularExplorer,
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
88
|
+
wa as Tag,
|
|
89
|
+
Ga as Toaster,
|
|
90
|
+
_a as Toggletip,
|
|
91
|
+
Fa as Tooltip,
|
|
91
92
|
Na as TopicCard,
|
|
92
|
-
|
|
93
|
+
Ua as TranslationT,
|
|
93
94
|
ka as USER,
|
|
94
95
|
xa as UserActivityList,
|
|
95
96
|
Ba as accessTypeToApi,
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
97
|
+
Ha as accessTypeToForm,
|
|
98
|
+
Va as buildTypeConfig,
|
|
99
|
+
Qa as createDatasetsForOrganizationMetricsUrl,
|
|
100
|
+
Wa as createOrganizationMetricsUrl,
|
|
101
|
+
Ya as datagouv,
|
|
101
102
|
ja as defaultAccessTypeForm,
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
103
|
+
Xa as defaultDataserviceSortOptions,
|
|
104
|
+
qa as defaultDatasetSortOptions,
|
|
105
|
+
Ja as defaultOrganizationSortOptions,
|
|
106
|
+
Ka as defaultReuseSortOptions,
|
|
107
|
+
Za as detectOgcService,
|
|
108
|
+
$a as escapeCsvValue,
|
|
109
|
+
as as extractPlaceholders,
|
|
110
|
+
ss as fetchTabularData,
|
|
111
|
+
es as filesize,
|
|
112
|
+
ts as findOrganizationType,
|
|
113
|
+
rs as findSchemaInCatalog,
|
|
114
|
+
os as formatMarkdown,
|
|
115
|
+
is as getActivityTranslation,
|
|
116
|
+
ns as getData,
|
|
117
|
+
cs as getDataserviceMetrics,
|
|
118
|
+
ls as getDatasetMetrics,
|
|
119
|
+
bs as getDatasetOEmbedHtml,
|
|
120
|
+
us as getDefaultDataserviceConfig,
|
|
121
|
+
gs as getDefaultDatasetConfig,
|
|
122
|
+
ds as getDefaultGlobalSearchConfig,
|
|
123
|
+
Ts as getDefaultOrganizationConfig,
|
|
124
|
+
ps as getDefaultReuseConfig,
|
|
125
|
+
Cs as getDefaultTopicConfig,
|
|
126
|
+
Ss as getDescriptionShort,
|
|
127
|
+
Ds as getMatomo,
|
|
128
|
+
Os as getOrganizationMetrics,
|
|
129
|
+
Rs as getOrganizationOEmbedHtml,
|
|
130
|
+
ms as getOrganizationType,
|
|
131
|
+
Es as getOrganizationTypes,
|
|
131
132
|
fs as getOwnerName,
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
133
|
+
Is as getOwnerPage,
|
|
134
|
+
ys as getResourceCorsStatus,
|
|
135
|
+
hs as getResourceExternalUrl,
|
|
136
|
+
As as getResourceFilesize,
|
|
137
|
+
Ls as getResourceFormatIcon,
|
|
137
138
|
Ms as getResourceLabel,
|
|
138
|
-
|
|
139
|
+
Ps as getResourceTitleId,
|
|
139
140
|
vs as getReuseMetrics,
|
|
140
141
|
zs as getSchemaVersion,
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
142
|
+
ws as getTopic,
|
|
143
|
+
Gs as getType,
|
|
144
|
+
_s as hasBadge,
|
|
145
|
+
Fs as hasFilterForColumn,
|
|
145
146
|
Ns as injectTabularProfile,
|
|
146
|
-
|
|
147
|
+
Us as isCommunityResource,
|
|
147
148
|
ks as isFalsy,
|
|
148
149
|
xs as isOrganizationCertified,
|
|
149
150
|
Bs as isTruthy,
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
151
|
+
Hs as isType,
|
|
152
|
+
Vs as loadCurrentTranslations,
|
|
153
|
+
Qs as markdownClasses,
|
|
154
|
+
Ws as markdownSmClasses,
|
|
155
|
+
Ys as markdownTableEditorClasses,
|
|
155
156
|
js as parseTextWithPlaceholders,
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
157
|
+
Xs as provideTabularProfile,
|
|
158
|
+
qs as removeMarkdown,
|
|
159
|
+
Js as removeMarkdownAsync,
|
|
160
|
+
Ks as removeMarkdownSync,
|
|
161
|
+
Zs as summarize,
|
|
162
|
+
$s as t,
|
|
163
|
+
ae as throwOnNever,
|
|
164
|
+
se as toChartApi,
|
|
165
|
+
ee as toChartForm,
|
|
166
|
+
te as toast,
|
|
167
|
+
re as trackEvent,
|
|
168
|
+
oe as useActiveDescendant,
|
|
169
|
+
ie as useComponentsConfig,
|
|
170
|
+
ne as useDebouncedRef,
|
|
171
|
+
ce as useFetchReuseTypes,
|
|
172
|
+
le as useFormatDate,
|
|
173
|
+
be as useFormatTabular,
|
|
174
|
+
ue as useGetCatalog,
|
|
175
|
+
ge as useGetProfile,
|
|
176
|
+
de as useGetSchemaDocumentation,
|
|
177
|
+
Te as useGetSchemaValidationUrl,
|
|
178
|
+
pe as useGetUserAvatar,
|
|
179
|
+
Ce as useHasTabularData,
|
|
180
|
+
Se as useMetrics,
|
|
181
|
+
De as useResourceCapabilities,
|
|
182
|
+
Oe as useReuseType,
|
|
183
|
+
Re as useSearchFilter,
|
|
184
|
+
me as useTranslation
|
|
184
185
|
};
|
|
@@ -6,7 +6,7 @@ import { T as TileGrid, U as UrlTile, g as extentFromProjection, e as createXYZ,
|
|
|
6
6
|
import { D as DEFAULT_MAX_ZOOM, c as assert, i as forEach, l as intersectsLineString, m as intersectsLineStringArray, s as linearRingssContainsXY, p as intersectsLinearRingMultiArray, d as compose, e as create, b as apply, x as setFromArray, u as multiply, w as scale, v as reset, z as translate } from "./common-C8efyyuc.js";
|
|
7
7
|
import { R as RBush$1, a as Collection, b as CollectionEventType, m as asColorLike, p as defaultFillStyle, z as defaultStrokeStyle, r as defaultLineCap, s as defaultLineDash, t as defaultLineDashOffset, u as defaultLineJoin, v as defaultLineWidth, w as defaultMiterLimit, y as defaultStrokeOffset, x as defaultPadding, E as defaultTextBaseline, D as defaultTextAlign, q as defaultFont, Q as registerFont, H as getTextDimensions, G as drawImageOrLabel, J as measureAndCacheTextWidth, I as Icon, B as BaseVectorLayer, P as PointerInteraction, L as noModifierKeys, l as always, U as shiftKeyOnly, e as InteractionProperty, h as MapBrowserEventType, g as MapBrowserEvent, K as never, o as createEditingStyle, O as primaryAction, k as altKeyOnly, V as singleClick, d as Interaction, F as Fill, S as Stroke, T as Text, j as Style$1, C as CircleStyle, n as checkedFonts, M as Map$1, N as pointerMove, c as ImageStyle, A as Attribution, Z as Zoom, i as MapProperty } from "./Map-CtP7leHl.js";
|
|
8
8
|
import { S as SimpleGeometry, C as maxSquaredDelta, h as assignClosestPoint, v as inflateCoordinates, o as douglasPeucker, k as deflateCoordinates, e as arrayMaxSquaredDelta, f as assignClosestArrayPoint, w as inflateCoordinatesArray, p as douglasPeuckerArray, l as deflateCoordinatesArray, P as Point$1, D as multiArrayMaxSquaredDelta, g as assignClosestMultiArrayPoint, A as linearRingss$1, F as orientLinearRingsArray, y as inflateMultiCoordinatesArray, s as getInteriorPointsOfMultiArray, B as linearRingssAreOriented, I as quantizeMultiArray, a as Polygon, m as deflateMultiCoordinatesArray, r as getInteriorPointOfArray, x as inflateEnds, M as transform2D, H as quantizeArray, j as deflateCoordinate, J as rotate, K as snap, N as transformGeom2D, c as ViewHint, G as Geometry, u as getStrideForLayout, z as linearRingsAreOriented, E as orientLinearRings, t as getLayoutForStride, i as circular, L as LinearRing, V as View, d as ViewProperty, q as fromExtent } from "./View-vp7vDb9q.js";
|
|
9
|
-
import {
|
|
9
|
+
import { aI as commonjsGlobal, b5 as getDefaultExportFromCjs$1 } from "./main-BOGKXwyT.js";
|
|
10
10
|
import { a as RenderEventType, b as asArray, B as BaseLayer } from "./Event-py_AAwJY.js";
|
|
11
11
|
import { Z as ZIndexContext, C as CanvasLayerRenderer, d as canvasPool$1, b as TileLayer, a as CanvasTileLayerRenderer, c as TileProperty } from "./Tile-D6rFonpT.js";
|
|
12
12
|
function padNumber(i, e, t) {
|
|
@@ -875,23 +875,26 @@ async function Ve(e, t) {
|
|
|
875
875
|
const i = b2();
|
|
876
876
|
if (i.customUseFetch)
|
|
877
877
|
return await i.customUseFetch(e, t);
|
|
878
|
-
const r = t?.raw, n = X(null), l = X(null), a = X("idle"), c = async () => {
|
|
879
|
-
const
|
|
880
|
-
if (!
|
|
881
|
-
const
|
|
878
|
+
const r = t?.raw, n = X(null), l = X(null), a = X("idle"), c = async (u) => {
|
|
879
|
+
const h = Y1(e);
|
|
880
|
+
if (!h) return;
|
|
881
|
+
const d = so(t?.params), p = so(t?.query);
|
|
882
882
|
a.value = "pending";
|
|
883
883
|
try {
|
|
884
|
-
n.value = r ? await kt(
|
|
885
|
-
} catch (
|
|
886
|
-
|
|
884
|
+
n.value = r ? await kt(h, { params: d ?? p, signal: u }) : await i.$fetch(h, { baseURL: i.apiBase, params: d ?? p, signal: u }), a.value = "success";
|
|
885
|
+
} catch (C) {
|
|
886
|
+
if (u?.aborted) return;
|
|
887
|
+
l.value = C, a.value = "error";
|
|
887
888
|
}
|
|
888
889
|
};
|
|
889
890
|
return t?.server === !1 ? i2(() => {
|
|
890
|
-
p2(
|
|
891
|
-
|
|
891
|
+
p2((u) => {
|
|
892
|
+
const h = new AbortController();
|
|
893
|
+
u(() => h.abort()), c(h.signal);
|
|
892
894
|
});
|
|
893
|
-
}) : p2(
|
|
894
|
-
|
|
895
|
+
}) : p2((u) => {
|
|
896
|
+
const h = new AbortController();
|
|
897
|
+
u(() => h.abort()), c(h.signal);
|
|
895
898
|
}), {
|
|
896
899
|
data: n,
|
|
897
900
|
refresh: () => c(),
|
|
@@ -49823,7 +49826,7 @@ function Al(e) {
|
|
|
49823
49826
|
function Vf(e) {
|
|
49824
49827
|
return "resource-" + e.id + "-title";
|
|
49825
49828
|
}
|
|
49826
|
-
const Wi = Vd(["main", "documentation", "update", "api", "code", "other"]), Sf = (e, t) => {
|
|
49829
|
+
const Wi = Vd(["main", "documentation", "update", "api", "code", "other"]), k4 = 10, Sf = (e, t) => {
|
|
49827
49830
|
const { t: i } = z1();
|
|
49828
49831
|
switch (e) {
|
|
49829
49832
|
case "main":
|
|
@@ -50877,7 +50880,7 @@ const IP = { class: "space-y-1 py-6" }, PP = { class: "flex items-center space-x
|
|
|
50877
50880
|
const t = e, i = X(null);
|
|
50878
50881
|
return i2(async () => {
|
|
50879
50882
|
await Promise.resolve({ });
|
|
50880
|
-
const r = await import("./leaflet-src-
|
|
50883
|
+
const r = await import("./leaflet-src-DcM2vBl8.js").then((a) => a.l);
|
|
50881
50884
|
if (!i.value) return;
|
|
50882
50885
|
const n = r.map(i.value);
|
|
50883
50886
|
r.tileLayer("https://tile.openstreetmap.org/{z}/{x}/{y}.png", {
|
|
@@ -52116,7 +52119,7 @@ var Ft = function() {
|
|
|
52116
52119
|
return "" + t + e;
|
|
52117
52120
|
}
|
|
52118
52121
|
};
|
|
52119
|
-
},
|
|
52122
|
+
}, F4 = Ul("deg"), x9 = Ul("%"), u2 = Ul("px"), Eu = Ft(Ft({}, x9), { parse: function(e) {
|
|
52120
52123
|
return x9.parse(e) / 100;
|
|
52121
52124
|
}, transform: function(e) {
|
|
52122
52125
|
return x9.transform(e * 100);
|
|
@@ -52306,17 +52309,17 @@ var Ru = /* @__PURE__ */ A9(/* @__PURE__ */ A9({}, hr), { transform: Math.round
|
|
|
52306
52309
|
marginRight: u2,
|
|
52307
52310
|
marginBottom: u2,
|
|
52308
52311
|
marginLeft: u2,
|
|
52309
|
-
rotate:
|
|
52310
|
-
rotateX:
|
|
52311
|
-
rotateY:
|
|
52312
|
-
rotateZ:
|
|
52312
|
+
rotate: F4,
|
|
52313
|
+
rotateX: F4,
|
|
52314
|
+
rotateY: F4,
|
|
52315
|
+
rotateZ: F4,
|
|
52313
52316
|
scale: s3,
|
|
52314
52317
|
scaleX: s3,
|
|
52315
52318
|
scaleY: s3,
|
|
52316
52319
|
scaleZ: s3,
|
|
52317
|
-
skew:
|
|
52318
|
-
skewX:
|
|
52319
|
-
skewY:
|
|
52320
|
+
skew: F4,
|
|
52321
|
+
skewX: F4,
|
|
52322
|
+
skewY: F4,
|
|
52320
52323
|
distance: u2,
|
|
52321
52324
|
translateX: u2,
|
|
52322
52325
|
translateY: u2,
|
|
@@ -58261,7 +58264,7 @@ const fG = {
|
|
|
58261
58264
|
canEdit: { type: Boolean, default: !1 }
|
|
58262
58265
|
},
|
|
58263
58266
|
setup(e) {
|
|
58264
|
-
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 = Et(() => import("./MapContainer.client-
|
|
58267
|
+
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 = Et(() => import("./MapContainer.client-D4TU557F.js")), l = Et(() => import("./Pmtiles.client-DW9JBIOy.js")), a = Et(() => import("./JsonPreview.client-DMal7Zvi.js")), c = Et(() => import("./PdfPreview.client-BPKxdMlu.js")), u = Et(() => import("./XmlPreview.client-DfIA3_I8.js")), h = Et(() => import("./Datafair.client-B1CFLBVW.js")), { t: d } = z1(), { formatRelativeIfRecentDate: p } = ut(), C = bf(), g = A(() => {
|
|
58265
58268
|
const d1 = i.resource.format?.toLowerCase();
|
|
58266
58269
|
return d1 === "json" || d1 === "pdf" || d1 === "xml";
|
|
58267
58270
|
}), m = A(() => C(i.resource)), f = A(() => i.resource.extras["analysis:parsing:pmtiles_url"] || i.resource.format === "pmtiles"), x = A(() => E9(i.dataset.organization) && i.resource.extras.datafairEmbed), y = A(() => E9(i.dataset.organization) && i.resource.extras.apidocUrl), v = A(() => Al(i.resource.format) ? i.resource.format : d("Fichier")), V = A(() => Mf(i.resource)), N = A(() => V.value === "wms"), z = X(i.expandedOnMount), M = () => {
|
|
@@ -60087,17 +60090,17 @@ const $K = /* @__PURE__ */ o({
|
|
|
60087
60090
|
async setup(e, { emit: t }) {
|
|
60088
60091
|
let i, r;
|
|
60089
60092
|
const n = Et(
|
|
60090
|
-
() => import("./JsonPreview.client-
|
|
60093
|
+
() => import("./JsonPreview.client-DMal7Zvi.js")
|
|
60091
60094
|
), l = Et(
|
|
60092
|
-
() => import("./PdfPreview.client-
|
|
60095
|
+
() => import("./PdfPreview.client-BPKxdMlu.js")
|
|
60093
60096
|
), a = Et(
|
|
60094
|
-
() => import("./XmlPreview.client-
|
|
60097
|
+
() => import("./XmlPreview.client-DfIA3_I8.js")
|
|
60095
60098
|
), c = Et(
|
|
60096
|
-
() => import("./Datafair.client-
|
|
60099
|
+
() => import("./Datafair.client-B1CFLBVW.js")
|
|
60097
60100
|
), u = Et(
|
|
60098
|
-
() => import("./MapContainer.client-
|
|
60101
|
+
() => import("./MapContainer.client-D4TU557F.js")
|
|
60099
60102
|
), h = Et(
|
|
60100
|
-
() => import("./Pmtiles.client-
|
|
60103
|
+
() => import("./Pmtiles.client-DW9JBIOy.js")
|
|
60101
60104
|
), d = e, p = t, { t: C } = z1(), g = b2(), { formatRelativeIfRecentDate: m } = ut(), {
|
|
60102
60105
|
hasTabularData: f,
|
|
60103
60106
|
hasPmtiles: x,
|
|
@@ -60343,7 +60346,7 @@ const $K = /* @__PURE__ */ o({
|
|
|
60343
60346
|
}, pQ = ["src"], CQ = { class: "fr-text--bold fr-my-3v" }, gQ = { class: "hidden md:block" }, fQ = {
|
|
60344
60347
|
key: 1,
|
|
60345
60348
|
class: "flex flex-col items-center py-12"
|
|
60346
|
-
}, mQ = ["src"], wQ = { class: "fr-text--bold fr-my-3v" },
|
|
60349
|
+
}, mQ = ["src"], wQ = { class: "fr-text--bold fr-my-3v" }, ii1 = /* @__PURE__ */ o({
|
|
60347
60350
|
__name: "ResourceExplorer",
|
|
60348
60351
|
props: {
|
|
60349
60352
|
dataset: {},
|
|
@@ -60353,27 +60356,27 @@ const $K = /* @__PURE__ */ o({
|
|
|
60353
60356
|
let t, i;
|
|
60354
60357
|
const r = e, { t: n } = z1(), l = kn(), a = b2(), c = X(!1), u = X(""), { debounced: h, flush: d } = hw(u, a.searchDebounce ?? 300), p = A(() => `/api/2/datasets/${r.dataset.id}/resources/`), C = we("resource_id"), g = A(() => ({
|
|
60355
60358
|
type: "main",
|
|
60356
|
-
page_size:
|
|
60359
|
+
page_size: k4,
|
|
60357
60360
|
q: h.value || void 0
|
|
60358
60361
|
})), m = A(() => ({
|
|
60359
60362
|
type: "documentation",
|
|
60360
|
-
page_size:
|
|
60363
|
+
page_size: k4,
|
|
60361
60364
|
q: h.value || void 0
|
|
60362
60365
|
})), f = A(() => ({
|
|
60363
60366
|
type: "update",
|
|
60364
|
-
page_size:
|
|
60367
|
+
page_size: k4,
|
|
60365
60368
|
q: h.value || void 0
|
|
60366
60369
|
})), x = A(() => ({
|
|
60367
60370
|
type: "api",
|
|
60368
|
-
page_size:
|
|
60371
|
+
page_size: k4,
|
|
60369
60372
|
q: h.value || void 0
|
|
60370
60373
|
})), y = A(() => ({
|
|
60371
60374
|
type: "code",
|
|
60372
|
-
page_size:
|
|
60375
|
+
page_size: k4,
|
|
60373
60376
|
q: h.value || void 0
|
|
60374
60377
|
})), v = A(() => ({
|
|
60375
60378
|
type: "other",
|
|
60376
|
-
page_size:
|
|
60379
|
+
page_size: k4,
|
|
60377
60380
|
q: h.value || void 0
|
|
60378
60381
|
})), { data: V, status: N } = ([t, i] = ue(() => Ve(p, { params: g })), t = await t, i(), t), { data: z, status: M } = ([t, i] = ue(() => Ve(p, { params: m, server: !1 })), t = await t, i(), t), { data: R, status: B } = ([t, i] = ue(() => Ve(p, { params: f, server: !1 })), t = await t, i(), t), { data: j, status: Z } = ([t, i] = ue(() => Ve(p, { params: x, server: !1 })), t = await t, i(), t), { data: O, status: U } = ([t, i] = ue(() => Ve(p, { params: y, server: !1 })), t = await t, i(), t), { data: J, status: n1 } = ([t, i] = ue(() => Ve(p, { params: v, server: !1 })), t = await t, i(), t), i1 = [
|
|
60379
60382
|
{ data: V, status: N },
|
|
@@ -60389,7 +60392,7 @@ const $K = /* @__PURE__ */ o({
|
|
|
60389
60392
|
});
|
|
60390
60393
|
const M1 = X("main"), P = X(1), d1 = A(() => ({
|
|
60391
60394
|
type: M1.value,
|
|
60392
|
-
page_size:
|
|
60395
|
+
page_size: k4,
|
|
60393
60396
|
page: P.value,
|
|
60394
60397
|
q: h.value || void 0
|
|
60395
60398
|
})), { data: x1, execute: I } = ([t, i] = ue(() => Ve(p, {
|
|
@@ -72262,189 +72265,190 @@ const Li1 = {
|
|
|
72262
72265
|
}
|
|
72263
72266
|
};
|
|
72264
72267
|
export {
|
|
72265
|
-
|
|
72268
|
+
Af as $,
|
|
72266
72269
|
F51 as A,
|
|
72267
|
-
|
|
72270
|
+
Tg as B,
|
|
72268
72271
|
Xv as C,
|
|
72269
72272
|
k51 as D,
|
|
72270
|
-
|
|
72271
|
-
|
|
72272
|
-
|
|
72273
|
-
|
|
72274
|
-
|
|
72275
|
-
|
|
72276
|
-
|
|
72273
|
+
Ag as E,
|
|
72274
|
+
W51 as F,
|
|
72275
|
+
U51 as G,
|
|
72276
|
+
$51 as H,
|
|
72277
|
+
dP as I,
|
|
72278
|
+
I51 as J,
|
|
72279
|
+
Zf as K,
|
|
72277
72280
|
j3 as L,
|
|
72278
|
-
|
|
72279
|
-
|
|
72281
|
+
qI as M,
|
|
72282
|
+
oi1 as N,
|
|
72280
72283
|
xu as O,
|
|
72281
72284
|
q3 as P,
|
|
72282
72285
|
Gy as Q,
|
|
72283
|
-
|
|
72284
|
-
|
|
72286
|
+
k4 as R,
|
|
72287
|
+
jK as S,
|
|
72285
72288
|
gr as T,
|
|
72286
72289
|
jd as U,
|
|
72287
|
-
|
|
72288
|
-
|
|
72289
|
-
|
|
72290
|
-
|
|
72291
|
-
|
|
72290
|
+
K51 as V,
|
|
72291
|
+
j51 as W,
|
|
72292
|
+
mP as X,
|
|
72293
|
+
ui1 as Y,
|
|
72294
|
+
Id as Z,
|
|
72292
72295
|
Sm as _,
|
|
72293
72296
|
V6 as a,
|
|
72294
|
-
|
|
72295
|
-
|
|
72296
|
-
|
|
72297
|
-
|
|
72298
|
-
|
|
72299
|
-
|
|
72300
|
-
|
|
72301
|
-
|
|
72302
|
-
|
|
72303
|
-
|
|
72304
|
-
|
|
72305
|
-
|
|
72306
|
-
|
|
72307
|
-
|
|
72308
|
-
|
|
72309
|
-
|
|
72310
|
-
|
|
72311
|
-
|
|
72312
|
-
|
|
72313
|
-
|
|
72314
|
-
|
|
72315
|
-
|
|
72316
|
-
|
|
72317
|
-
|
|
72318
|
-
|
|
72319
|
-
|
|
72320
|
-
|
|
72321
|
-
|
|
72322
|
-
|
|
72323
|
-
|
|
72324
|
-
|
|
72325
|
-
|
|
72326
|
-
|
|
72327
|
-
|
|
72328
|
-
|
|
72329
|
-
|
|
72330
|
-
|
|
72331
|
-
|
|
72332
|
-
|
|
72333
|
-
|
|
72334
|
-
|
|
72335
|
-
|
|
72336
|
-
|
|
72337
|
-
|
|
72338
|
-
|
|
72339
|
-
|
|
72340
|
-
|
|
72341
|
-
|
|
72342
|
-
|
|
72343
|
-
|
|
72344
|
-
|
|
72345
|
-
|
|
72346
|
-
|
|
72347
|
-
|
|
72348
|
-
|
|
72349
|
-
|
|
72350
|
-
|
|
72351
|
-
|
|
72352
|
-
|
|
72353
|
-
|
|
72354
|
-
|
|
72355
|
-
|
|
72356
|
-
|
|
72357
|
-
|
|
72297
|
+
$W as a$,
|
|
72298
|
+
Ef as a0,
|
|
72299
|
+
Li as a1,
|
|
72300
|
+
g7 as a2,
|
|
72301
|
+
Y51 as a3,
|
|
72302
|
+
C$ as a4,
|
|
72303
|
+
Q9 as a5,
|
|
72304
|
+
k7 as a6,
|
|
72305
|
+
kf as a7,
|
|
72306
|
+
Xd as a8,
|
|
72307
|
+
VH as a9,
|
|
72308
|
+
Tl as aA,
|
|
72309
|
+
J3 as aB,
|
|
72310
|
+
W01 as aC,
|
|
72311
|
+
_P as aD,
|
|
72312
|
+
z51 as aE,
|
|
72313
|
+
fi1 as aF,
|
|
72314
|
+
wi1 as aG,
|
|
72315
|
+
pw as aH,
|
|
72316
|
+
Ds as aI,
|
|
72317
|
+
x51 as aJ,
|
|
72318
|
+
di1 as aK,
|
|
72319
|
+
Li1 as aL,
|
|
72320
|
+
mi1 as aM,
|
|
72321
|
+
ix as aN,
|
|
72322
|
+
tx as aO,
|
|
72323
|
+
rx as aP,
|
|
72324
|
+
sx as aQ,
|
|
72325
|
+
Mf as aR,
|
|
72326
|
+
l8 as aS,
|
|
72327
|
+
S51 as aT,
|
|
72328
|
+
PW as aU,
|
|
72329
|
+
Z9 as aV,
|
|
72330
|
+
Yd as aW,
|
|
72331
|
+
gW as aX,
|
|
72332
|
+
Kk as aY,
|
|
72333
|
+
KW as aZ,
|
|
72334
|
+
x6 as a_,
|
|
72335
|
+
Pn as aa,
|
|
72336
|
+
p5 as ab,
|
|
72337
|
+
X51 as ac,
|
|
72338
|
+
Bg as ad,
|
|
72339
|
+
Df as ae,
|
|
72340
|
+
tn as af,
|
|
72341
|
+
Q51 as ag,
|
|
72342
|
+
ii1 as ah,
|
|
72343
|
+
DK as ai,
|
|
72344
|
+
oQ as aj,
|
|
72345
|
+
F9 as ak,
|
|
72346
|
+
vK as al,
|
|
72347
|
+
ri1 as am,
|
|
72348
|
+
fw as an,
|
|
72349
|
+
UQ as ao,
|
|
72350
|
+
ni1 as ap,
|
|
72351
|
+
X01 as aq,
|
|
72352
|
+
W0 as ar,
|
|
72353
|
+
ci1 as as,
|
|
72354
|
+
$K as at,
|
|
72355
|
+
ai1 as au,
|
|
72356
|
+
pr as av,
|
|
72357
|
+
mr as aw,
|
|
72358
|
+
fr as ax,
|
|
72359
|
+
OX as ay,
|
|
72360
|
+
_f as az,
|
|
72358
72361
|
S6 as b,
|
|
72359
|
-
|
|
72360
|
-
|
|
72361
|
-
|
|
72362
|
-
|
|
72363
|
-
|
|
72364
|
-
|
|
72365
|
-
|
|
72366
|
-
|
|
72367
|
-
|
|
72368
|
-
|
|
72369
|
-
|
|
72370
|
-
|
|
72371
|
-
|
|
72372
|
-
|
|
72373
|
-
|
|
72374
|
-
|
|
72375
|
-
|
|
72376
|
-
|
|
72377
|
-
|
|
72378
|
-
|
|
72379
|
-
|
|
72380
|
-
|
|
72381
|
-
|
|
72382
|
-
|
|
72383
|
-
|
|
72384
|
-
|
|
72385
|
-
|
|
72386
|
-
|
|
72387
|
-
|
|
72388
|
-
|
|
72389
|
-
|
|
72390
|
-
|
|
72391
|
-
|
|
72392
|
-
|
|
72393
|
-
|
|
72394
|
-
|
|
72395
|
-
|
|
72396
|
-
|
|
72397
|
-
|
|
72398
|
-
|
|
72399
|
-
|
|
72400
|
-
|
|
72401
|
-
|
|
72402
|
-
|
|
72403
|
-
|
|
72404
|
-
|
|
72405
|
-
|
|
72406
|
-
|
|
72407
|
-
|
|
72408
|
-
|
|
72409
|
-
|
|
72410
|
-
|
|
72411
|
-
|
|
72412
|
-
|
|
72413
|
-
|
|
72414
|
-
|
|
72415
|
-
|
|
72416
|
-
|
|
72417
|
-
|
|
72418
|
-
|
|
72419
|
-
|
|
72420
|
-
|
|
72421
|
-
|
|
72422
|
-
|
|
72362
|
+
pi1 as b$,
|
|
72363
|
+
y51 as b0,
|
|
72364
|
+
L51 as b1,
|
|
72365
|
+
OP as b2,
|
|
72366
|
+
lx as b3,
|
|
72367
|
+
nx as b4,
|
|
72368
|
+
F7 as b5,
|
|
72369
|
+
hx as b6,
|
|
72370
|
+
ox as b7,
|
|
72371
|
+
ax as b8,
|
|
72372
|
+
ux as b9,
|
|
72373
|
+
kx as bA,
|
|
72374
|
+
Rg as bB,
|
|
72375
|
+
sF as bC,
|
|
72376
|
+
A51 as bD,
|
|
72377
|
+
Tx as bE,
|
|
72378
|
+
vO as bF,
|
|
72379
|
+
T51 as bG,
|
|
72380
|
+
vl as bH,
|
|
72381
|
+
_e as bI,
|
|
72382
|
+
M51 as bJ,
|
|
72383
|
+
$v as bK,
|
|
72384
|
+
gi1 as bL,
|
|
72385
|
+
Ci1 as bM,
|
|
72386
|
+
W3 as bN,
|
|
72387
|
+
De as bO,
|
|
72388
|
+
hi1 as bP,
|
|
72389
|
+
b2 as bQ,
|
|
72390
|
+
hw as bR,
|
|
72391
|
+
LQ as bS,
|
|
72392
|
+
ut as bT,
|
|
72393
|
+
Cw as bU,
|
|
72394
|
+
CW as bV,
|
|
72395
|
+
ei1 as bW,
|
|
72396
|
+
Hm as bX,
|
|
72397
|
+
fW as bY,
|
|
72398
|
+
_y as bZ,
|
|
72399
|
+
bf as b_,
|
|
72400
|
+
dF as ba,
|
|
72401
|
+
cI as bb,
|
|
72402
|
+
w51 as bc,
|
|
72403
|
+
_51 as bd,
|
|
72404
|
+
Un as be,
|
|
72405
|
+
Kd as bf,
|
|
72406
|
+
qd as bg,
|
|
72407
|
+
E51 as bh,
|
|
72408
|
+
O51 as bi,
|
|
72409
|
+
zf as bj,
|
|
72410
|
+
ar as bk,
|
|
72411
|
+
Al as bl,
|
|
72412
|
+
Sf as bm,
|
|
72413
|
+
Vf as bn,
|
|
72414
|
+
H51 as bo,
|
|
72415
|
+
J51 as bp,
|
|
72416
|
+
si1 as bq,
|
|
72417
|
+
xQ as br,
|
|
72418
|
+
Gd as bs,
|
|
72419
|
+
dw as bt,
|
|
72420
|
+
yf as bu,
|
|
72421
|
+
oI as bv,
|
|
72422
|
+
PK as bw,
|
|
72423
|
+
E9 as bx,
|
|
72424
|
+
T3 as by,
|
|
72425
|
+
j5 as bz,
|
|
72423
72426
|
yt as c,
|
|
72424
|
-
|
|
72425
|
-
|
|
72426
|
-
|
|
72427
|
+
Nf as c0,
|
|
72428
|
+
yQ as c1,
|
|
72429
|
+
V51 as c2,
|
|
72430
|
+
z1 as c3,
|
|
72427
72431
|
su as d,
|
|
72428
72432
|
hF as e,
|
|
72429
72433
|
d0 as f,
|
|
72430
72434
|
h0 as g,
|
|
72431
72435
|
$n as h,
|
|
72432
|
-
|
|
72433
|
-
|
|
72434
|
-
|
|
72435
|
-
|
|
72436
|
-
|
|
72437
|
-
|
|
72438
|
-
|
|
72439
|
-
|
|
72440
|
-
|
|
72441
|
-
|
|
72442
|
-
|
|
72443
|
-
|
|
72444
|
-
|
|
72445
|
-
|
|
72446
|
-
|
|
72447
|
-
|
|
72448
|
-
|
|
72449
|
-
|
|
72436
|
+
Wi as i,
|
|
72437
|
+
ti1 as j,
|
|
72438
|
+
Cr as k,
|
|
72439
|
+
Z51 as l,
|
|
72440
|
+
B2 as m,
|
|
72441
|
+
IH as n,
|
|
72442
|
+
Z7 as o,
|
|
72443
|
+
ct as p,
|
|
72444
|
+
Y9 as q,
|
|
72445
|
+
b51 as r,
|
|
72446
|
+
N51 as s,
|
|
72447
|
+
vf as t,
|
|
72448
|
+
HO as u,
|
|
72449
|
+
q51 as v,
|
|
72450
|
+
P51 as w,
|
|
72451
|
+
G51 as x,
|
|
72452
|
+
hO as y,
|
|
72453
|
+
X0 as z
|
|
72450
72454
|
};
|
package/package.json
CHANGED
|
@@ -71,7 +71,7 @@ import { useComponentsConfig } from '../../config'
|
|
|
71
71
|
import { useTranslation } from '../../composables/useTranslation'
|
|
72
72
|
import { useDebouncedRef } from '../../composables/useDebouncedRef'
|
|
73
73
|
import { useFetch } from '../../functions/api'
|
|
74
|
-
import { RESOURCE_TYPE } from '../../functions/resources'
|
|
74
|
+
import { RESOURCE_EXPLORER_PAGE_SIZE, RESOURCE_TYPE } from '../../functions/resources'
|
|
75
75
|
import type { PaginatedArray } from '../../types/api'
|
|
76
76
|
import type { DatasetV2 } from '../../types/datasets'
|
|
77
77
|
import type { Resource, ResourceGroup, ResourceType } from '../../types/resources'
|
|
@@ -94,7 +94,6 @@ const sidebarCollapsed = ref(false)
|
|
|
94
94
|
const search = ref('')
|
|
95
95
|
const { debounced: searchDebounced, flush } = useDebouncedRef(search, config.searchDebounce ?? 300)
|
|
96
96
|
|
|
97
|
-
const PAGE_SIZE = 10
|
|
98
97
|
const url = computed(() => `/api/2/datasets/${props.dataset.id}/resources/`)
|
|
99
98
|
|
|
100
99
|
// Resource ID from URL query
|
|
@@ -103,32 +102,32 @@ const resourceIdQuery = useRouteQuery<string | undefined>('resource_id')
|
|
|
103
102
|
// Fetch resources for each type
|
|
104
103
|
const mainParams = computed(() => ({
|
|
105
104
|
type: 'main' as const,
|
|
106
|
-
page_size:
|
|
105
|
+
page_size: RESOURCE_EXPLORER_PAGE_SIZE,
|
|
107
106
|
q: searchDebounced.value || undefined,
|
|
108
107
|
}))
|
|
109
108
|
const documentationParams = computed(() => ({
|
|
110
109
|
type: 'documentation' as const,
|
|
111
|
-
page_size:
|
|
110
|
+
page_size: RESOURCE_EXPLORER_PAGE_SIZE,
|
|
112
111
|
q: searchDebounced.value || undefined,
|
|
113
112
|
}))
|
|
114
113
|
const updateParams = computed(() => ({
|
|
115
114
|
type: 'update' as const,
|
|
116
|
-
page_size:
|
|
115
|
+
page_size: RESOURCE_EXPLORER_PAGE_SIZE,
|
|
117
116
|
q: searchDebounced.value || undefined,
|
|
118
117
|
}))
|
|
119
118
|
const apiParams = computed(() => ({
|
|
120
119
|
type: 'api' as const,
|
|
121
|
-
page_size:
|
|
120
|
+
page_size: RESOURCE_EXPLORER_PAGE_SIZE,
|
|
122
121
|
q: searchDebounced.value || undefined,
|
|
123
122
|
}))
|
|
124
123
|
const codeParams = computed(() => ({
|
|
125
124
|
type: 'code' as const,
|
|
126
|
-
page_size:
|
|
125
|
+
page_size: RESOURCE_EXPLORER_PAGE_SIZE,
|
|
127
126
|
q: searchDebounced.value || undefined,
|
|
128
127
|
}))
|
|
129
128
|
const otherParams = computed(() => ({
|
|
130
129
|
type: 'other' as const,
|
|
131
|
-
page_size:
|
|
130
|
+
page_size: RESOURCE_EXPLORER_PAGE_SIZE,
|
|
132
131
|
q: searchDebounced.value || undefined,
|
|
133
132
|
}))
|
|
134
133
|
|
|
@@ -169,7 +168,7 @@ const loadMoreType = ref<ResourceType>('main')
|
|
|
169
168
|
const loadMorePage = ref(1)
|
|
170
169
|
const loadMoreParams = computed(() => ({
|
|
171
170
|
type: loadMoreType.value,
|
|
172
|
-
page_size:
|
|
171
|
+
page_size: RESOURCE_EXPLORER_PAGE_SIZE,
|
|
173
172
|
page: loadMorePage.value,
|
|
174
173
|
q: searchDebounced.value || undefined,
|
|
175
174
|
}))
|
package/src/functions/api.ts
CHANGED
|
@@ -26,7 +26,7 @@ export async function useFetch<DataT, ErrorT = never>(
|
|
|
26
26
|
const error: Ref<ErrorT | null> = ref(null)
|
|
27
27
|
const status = ref<AsyncDataRequestStatus>('idle')
|
|
28
28
|
|
|
29
|
-
const execute = async () => {
|
|
29
|
+
const execute = async (signal?: AbortSignal) => {
|
|
30
30
|
const urlValue = toValue(url)
|
|
31
31
|
if (!urlValue) return
|
|
32
32
|
const params = deepToValue(options?.params)
|
|
@@ -36,13 +36,15 @@ export async function useFetch<DataT, ErrorT = never>(
|
|
|
36
36
|
data.value = isRaw
|
|
37
37
|
// Raw targets another data.gouv service (the Tabular API in TabularExplorer) via its own
|
|
38
38
|
// absolute URL, so it must stay bare ofetch: no datagouv apiBase, no datagouv auth attached.
|
|
39
|
-
? await ofetch<DataT | null>(urlValue, { params: params ?? query })
|
|
39
|
+
? await ofetch<DataT | null>(urlValue, { params: params ?? query, signal })
|
|
40
40
|
// The configured `$fetch` carries baseURL + auth + headers (see the `datagouv` plugin install
|
|
41
41
|
// for the default one). We only forward the URL and params here.
|
|
42
|
-
: await config.$fetch<DataT | null>(urlValue, { baseURL: config.apiBase, params: params ?? query })
|
|
42
|
+
: await config.$fetch<DataT | null>(urlValue, { baseURL: config.apiBase, params: params ?? query, signal })
|
|
43
43
|
status.value = 'success'
|
|
44
44
|
}
|
|
45
45
|
catch (e) {
|
|
46
|
+
// Ignore aborted requests — they're superseded by a newer call, not a real error.
|
|
47
|
+
if (signal?.aborted) return
|
|
46
48
|
error.value = e as ErrorT
|
|
47
49
|
status.value = 'error'
|
|
48
50
|
}
|
|
@@ -51,14 +53,18 @@ export async function useFetch<DataT, ErrorT = never>(
|
|
|
51
53
|
// When server is false, only start watching after mount (client-side only)
|
|
52
54
|
if (options?.server === false) {
|
|
53
55
|
onMounted(() => {
|
|
54
|
-
watchEffect(
|
|
55
|
-
|
|
56
|
+
watchEffect((onCleanup) => {
|
|
57
|
+
const controller = new AbortController()
|
|
58
|
+
onCleanup(() => controller.abort())
|
|
59
|
+
void execute(controller.signal)
|
|
56
60
|
})
|
|
57
61
|
})
|
|
58
62
|
}
|
|
59
63
|
else {
|
|
60
|
-
watchEffect(
|
|
61
|
-
|
|
64
|
+
watchEffect((onCleanup) => {
|
|
65
|
+
const controller = new AbortController()
|
|
66
|
+
onCleanup(() => controller.abort())
|
|
67
|
+
void execute(controller.signal)
|
|
62
68
|
})
|
|
63
69
|
}
|
|
64
70
|
|
|
@@ -91,6 +91,11 @@ export function getResourceTitleId(resource: Resource) {
|
|
|
91
91
|
export const RESOURCE_TYPE = readonly(['main', 'documentation', 'update', 'api', 'code', 'other'] as const)
|
|
92
92
|
export type ResourceType = typeof RESOURCE_TYPE[number]
|
|
93
93
|
|
|
94
|
+
// Page size used by ResourceExplorer for its per-type resource fetches.
|
|
95
|
+
// Exported so consumers (e.g. the dataset page's `main` prefetch) can build a
|
|
96
|
+
// byte-for-byte identical cache key and let Nuxt dedupe the request.
|
|
97
|
+
export const RESOURCE_EXPLORER_PAGE_SIZE = 10
|
|
98
|
+
|
|
94
99
|
export const getResourceLabel = (type: ResourceType, count?: number) => {
|
|
95
100
|
const { t } = useTranslation()
|
|
96
101
|
switch (type) {
|