@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.
Files changed (39) hide show
  1. package/dist/{ImagePreview.client-Db0MdI5N.js → ImagePreview.client-CSRz7eUF.js} +2 -2
  2. package/dist/{JsonPreview.client-DRCq40Q-.js → JsonPreview.client-wT2hfYLv.js} +2 -2
  3. package/dist/{Map-D17BKcyK.js → Map-QeL96qbQ.js} +1 -1
  4. package/dist/{MapContainer.client-DdPY_Iri.js → MapContainer.client-UC7wQOBj.js} +10 -10
  5. package/dist/{PdfPreview.client-DtKCBgGZ.js → PdfPreview.client-DifxM8Th.js} +2 -2
  6. package/dist/{Pmtiles.client-DSZ_4FXc.js → Pmtiles.client-OyXiX_7g.js} +2104 -2905
  7. package/dist/{PreviewWrapper-DegSQbMM.js → PreviewWrapper-D7yfQyyH.js} +1 -1
  8. package/dist/{XmlPreview.client-D9R_YF5s.js → XmlPreview.client-BkPGZLn6.js} +2 -2
  9. package/dist/components-next.css +1 -1
  10. package/dist/components-next.js +10149 -9989
  11. package/dist/components.css +1 -1
  12. package/dist/{france-Bu5x7PSp.js → france-BNatwStf.js} +1 -1
  13. package/dist/purify.es-CeeOHdER.js +805 -0
  14. package/dist/{resources-BOKIyTJV.js → resources-kuI_FosB.js} +18 -21
  15. package/dist/src-C0XyM3eg.js +68979 -0
  16. package/dist/{vue-D62CcCib.js → vue-D5eMxsCr.js} +78 -74
  17. package/package.json +2 -2
  18. package/src/components/ResourceAccordion/EditButton.vue +1 -4
  19. package/src/components/ResourceAccordion/MapContainer.client.vue +18 -7
  20. package/src/components/ResourceAccordion/ResourceAccordion.vue +1 -6
  21. package/src/components/ResourceExplorer/ResourceExplorer.vue +8 -2
  22. package/src/components/ResourceExplorer/ResourceExplorerSidebar.vue +140 -90
  23. package/src/components/ResourceExplorer/ResourceExplorerViewer.vue +17 -2
  24. package/src/components/ResourceExplorer/ResourceSelector.vue +3 -0
  25. package/src/components/ResourceExplorer/ResourceViewerHeader.vue +3 -5
  26. package/src/components/ResourceIconBadge.vue +28 -0
  27. package/src/components/ResourceListItem.vue +83 -27
  28. package/src/components/TabularExplorer/TabularActiveFilters.vue +94 -54
  29. package/src/components/TabularExplorer/TabularExplorer.vue +58 -18
  30. package/src/components/TabularExplorer/TabularSearchInput.vue +40 -0
  31. package/src/components/TabularExplorer/TabularSkeleton.vue +14 -6
  32. package/src/components/TabularExplorer/TabularTable.vue +12 -5
  33. package/src/components/TabularExplorer/TabularToolbar.vue +7 -4
  34. package/src/components/TabularExplorer/useTabularContext.ts +10 -0
  35. package/src/composables/useResourceCapabilities.ts +5 -0
  36. package/src/functions/resources.ts +0 -4
  37. package/src/main.ts +2 -0
  38. package/src/types/resources.ts +0 -6
  39. package/dist/src-DbFybTVs.js +0 -66090
@@ -1,5 +1,5 @@
1
1
  import { o as e } from "./PreviewUnavailable-BJkpCiyL.js";
2
- import { bt as t, r as n, st as r } from "./vue-D62CcCib.js";
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 n;
205
+ case "geojson": return r;
206
206
  case "ogc:wfs":
207
207
  case "ogc:wms":
208
208
  case "wfs":
209
- case "wms": return r;
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 n:
221
- case r: return "bg-[#e6eefe] text-[#0063cb]";
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 G(e) {
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 K = [
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 q(e) {
282
- return e ? K.includes(e.toLowerCase()) : !1;
278
+ function K(e) {
279
+ return e ? G.includes(e.toLowerCase()) : !1;
283
280
  }
284
- function J(e) {
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 Y(e) {
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 X = ["pmtiles_export", "geojson_export"];
297
- function Z(e) {
298
- let t = J(e);
299
- return t !== null && !X.includes(t);
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 Q = (e) => {
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 { q as _, Y as a, H as c, P as d, R as f, U as g, V as h, B as i, G as l, Z as m, L as n, J as o, F as p, I as r, Q as s, z as t, N as u, W as v, c as y };
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 };