@datagouv/components-next 1.0.2-dev.230 → 1.0.2-dev.232
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/{ImagePreview.client-Db0MdI5N.js → ImagePreview.client-CSRz7eUF.js} +2 -2
- package/dist/{JsonPreview.client-DRCq40Q-.js → JsonPreview.client-wT2hfYLv.js} +2 -2
- package/dist/{Map-D17BKcyK.js → Map-QeL96qbQ.js} +1 -1
- package/dist/{MapContainer.client-DdPY_Iri.js → MapContainer.client-UC7wQOBj.js} +10 -10
- package/dist/{PdfPreview.client-DtKCBgGZ.js → PdfPreview.client-DifxM8Th.js} +2 -2
- package/dist/{Pmtiles.client-DSZ_4FXc.js → Pmtiles.client-OyXiX_7g.js} +2104 -2905
- package/dist/{PreviewWrapper-DegSQbMM.js → PreviewWrapper-D7yfQyyH.js} +1 -1
- package/dist/{XmlPreview.client-D9R_YF5s.js → XmlPreview.client-BkPGZLn6.js} +2 -2
- package/dist/components-next.css +1 -1
- package/dist/components-next.js +10149 -9989
- package/dist/components.css +1 -1
- package/dist/{france-Bu5x7PSp.js → france-BNatwStf.js} +1 -1
- package/dist/purify.es-CeeOHdER.js +805 -0
- package/dist/{resources-BOKIyTJV.js → resources-kuI_FosB.js} +18 -21
- package/dist/src-C0XyM3eg.js +68979 -0
- package/dist/{vue-D62CcCib.js → vue-D5eMxsCr.js} +78 -74
- package/package.json +2 -2
- package/src/components/ResourceAccordion/EditButton.vue +1 -4
- package/src/components/ResourceAccordion/MapContainer.client.vue +18 -7
- package/src/components/ResourceAccordion/ResourceAccordion.vue +1 -6
- package/src/components/ResourceExplorer/ResourceExplorer.vue +8 -2
- package/src/components/ResourceExplorer/ResourceExplorerSidebar.vue +140 -90
- package/src/components/ResourceExplorer/ResourceExplorerViewer.vue +17 -2
- package/src/components/ResourceExplorer/ResourceSelector.vue +3 -0
- package/src/components/ResourceExplorer/ResourceViewerHeader.vue +3 -5
- package/src/components/ResourceIconBadge.vue +28 -0
- package/src/components/ResourceListItem.vue +83 -27
- package/src/components/TabularExplorer/TabularActiveFilters.vue +94 -54
- package/src/components/TabularExplorer/TabularExplorer.vue +58 -18
- package/src/components/TabularExplorer/TabularSearchInput.vue +40 -0
- package/src/components/TabularExplorer/TabularSkeleton.vue +14 -6
- package/src/components/TabularExplorer/TabularTable.vue +12 -5
- package/src/components/TabularExplorer/TabularToolbar.vue +7 -4
- package/src/components/TabularExplorer/useTabularContext.ts +10 -0
- package/src/composables/useResourceCapabilities.ts +5 -0
- package/src/functions/resources.ts +0 -4
- package/src/main.ts +2 -0
- package/src/types/resources.ts +0 -6
- package/dist/src-DbFybTVs.js +0 -66090
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { o as e } from "./PreviewUnavailable-BJkpCiyL.js";
|
|
2
|
-
import {
|
|
2
|
+
import { St as t, lt as n, r } from "./vue-D5eMxsCr.js";
|
|
3
3
|
import { createElementBlock as i, createElementVNode as a, openBlock as o, readonly as s } from "vue";
|
|
4
4
|
//#region \0plugin-vue:export-helper
|
|
5
5
|
var c = (e, t) => {
|
|
@@ -202,11 +202,11 @@ function N(e) {
|
|
|
202
202
|
case "xlsx":
|
|
203
203
|
case "parquet":
|
|
204
204
|
case "csv.gz": return M;
|
|
205
|
-
case "geojson": return
|
|
205
|
+
case "geojson": return r;
|
|
206
206
|
case "ogc:wfs":
|
|
207
207
|
case "ogc:wms":
|
|
208
208
|
case "wfs":
|
|
209
|
-
case "wms": return
|
|
209
|
+
case "wms": return n;
|
|
210
210
|
case "png":
|
|
211
211
|
case "jpg":
|
|
212
212
|
case "jpeg":
|
|
@@ -217,8 +217,8 @@ function N(e) {
|
|
|
217
217
|
function P(e) {
|
|
218
218
|
switch (e ? N(e) : null) {
|
|
219
219
|
case M: return "bg-[#c3fad5] text-[#18753c]";
|
|
220
|
-
case
|
|
221
|
-
case
|
|
220
|
+
case r:
|
|
221
|
+
case n: return "bg-[#e6eefe] text-[#0063cb]";
|
|
222
222
|
case g: return "bg-[#fce164] text-[#716043]";
|
|
223
223
|
case b: return "bg-[#fee7fc] text-[#6e445a]";
|
|
224
224
|
default: return "bg-gray-100 text-gray-plain";
|
|
@@ -261,16 +261,13 @@ function V(e) {
|
|
|
261
261
|
function H(e, t) {
|
|
262
262
|
return `${e.page}${V(t) ? "/community-resources" : ""}?resource_id=${t.id}`;
|
|
263
263
|
}
|
|
264
|
-
function U(e) {
|
|
265
|
-
return e.geopf?.push_status != null || typeof e.geopf?.offering_id == "string";
|
|
266
|
-
}
|
|
267
|
-
function W(e, t, n) {
|
|
264
|
+
function U(e, t, n) {
|
|
268
265
|
return n ? n(t) : H(e, t);
|
|
269
266
|
}
|
|
270
|
-
function
|
|
267
|
+
function W(e) {
|
|
271
268
|
return e.filesize ? e.filesize : "analysis:content-length" in e.extras ? e.extras["analysis:content-length"] : null;
|
|
272
269
|
}
|
|
273
|
-
var
|
|
270
|
+
var G = [
|
|
274
271
|
"png",
|
|
275
272
|
"jpg",
|
|
276
273
|
"jpeg",
|
|
@@ -278,27 +275,27 @@ var K = [
|
|
|
278
275
|
"gif",
|
|
279
276
|
"webp"
|
|
280
277
|
];
|
|
281
|
-
function
|
|
282
|
-
return e ?
|
|
278
|
+
function K(e) {
|
|
279
|
+
return e ? G.includes(e.toLowerCase()) : !1;
|
|
283
280
|
}
|
|
284
|
-
function
|
|
281
|
+
function q(e) {
|
|
285
282
|
let t = e.extras["analysis:parsing:error"];
|
|
286
283
|
if (typeof t != "string" || !t) return null;
|
|
287
284
|
let [n] = t.split(":", 1);
|
|
288
285
|
return n ?? null;
|
|
289
286
|
}
|
|
290
|
-
function
|
|
287
|
+
function J(e) {
|
|
291
288
|
let t = e.extras["analysis:parsing:error"];
|
|
292
289
|
if (typeof t != "string" || !t) return null;
|
|
293
290
|
let n = t.indexOf(":");
|
|
294
291
|
return n === -1 ? t : t.slice(n + 1);
|
|
295
292
|
}
|
|
296
|
-
var
|
|
297
|
-
function
|
|
298
|
-
let t =
|
|
299
|
-
return t !== null && !
|
|
293
|
+
var Y = ["pmtiles_export", "geojson_export"];
|
|
294
|
+
function X(e) {
|
|
295
|
+
let t = q(e);
|
|
296
|
+
return t !== null && !Y.includes(t);
|
|
300
297
|
}
|
|
301
|
-
var
|
|
298
|
+
var Z = (e) => {
|
|
302
299
|
let n = e.extras;
|
|
303
300
|
if (!n || !("check:cors:allow-origin" in n)) return "unknown";
|
|
304
301
|
let r = n["check:cors:allow-origin"], i = n["check:cors:allow-methods"], a = t().trustedDomains ?? [], o = r === "*", s = r ? a.some((e) => {
|
|
@@ -312,4 +309,4 @@ var Q = (e) => {
|
|
|
312
309
|
return c && u ? "allowed" : "blocked";
|
|
313
310
|
};
|
|
314
311
|
//#endregion
|
|
315
|
-
export {
|
|
312
|
+
export { U as _, J as a, H as c, P as d, R as f, K as g, V as h, B as i, W as l, X as m, L as n, q as o, F as p, I as r, Z as s, z as t, N as u, c as v };
|