@datagouv/components-next 1.0.2-dev.11 → 1.0.2-dev.110

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 (103) hide show
  1. package/assets/main.css +4 -0
  2. package/dist/{Control-DuZJdKV_.js → Control-ZFh5ta_U.js} +1 -1
  3. package/dist/{Datafair.client-8haHXl47.js → Datafair.client-rf4T1IkA.js} +1 -1
  4. package/dist/{Event--kp8kMdJ.js → Event-DSQcW7OF.js} +24 -24
  5. package/dist/{Image-34hvypZI.js → Image-BijNEG0p.js} +6 -6
  6. package/dist/JsonPreview.client-dzar6iuh.js +40 -0
  7. package/dist/{Map-BjUnLyj8.js → Map-BUtPf5GN.js} +756 -756
  8. package/dist/{MapContainer.client-l6HuXTHR.js → MapContainer.client-D-MoRNhG.js} +37 -38
  9. package/dist/{OSM-s40W6sQ2.js → OSM-D4MTdBtk.js} +2 -2
  10. package/dist/{PdfPreview.client-4OueK-2Z.js → PdfPreview.client-DoDYLmJD.js} +822 -850
  11. package/dist/{Pmtiles.client-4j3VTYkz.js → Pmtiles.client-Dzm01Zfm.js} +1 -1
  12. package/dist/PreviewWrapper.vue_vue_type_script_setup_true_lang-BRNYswg3.js +61 -0
  13. package/dist/{ScaleLine-KW-nXqp3.js → ScaleLine-hJQIqcZm.js} +2 -2
  14. package/dist/{Tile-DbNFNPfU.js → Tile-Dcl7oIVu.js} +35 -35
  15. package/dist/{TileImage-BsXBxMtq.js → TileImage-BJeHipMX.js} +4 -4
  16. package/dist/{View-BR92hTWP.js → View-xp_P_OHw.js} +412 -401
  17. package/dist/XmlPreview.client-cOhwff6P.js +34 -0
  18. package/dist/{common-PJfpC179.js → common-BjQlan3k.js} +36 -36
  19. package/dist/components-next.css +6 -6
  20. package/dist/components-next.js +165 -142
  21. package/dist/components.css +1 -1
  22. package/dist/{index-CVTIoZQ0.js → index-NofRBuyf.js} +32886 -27183
  23. package/dist/main-Iz1ZCL6k.js +73606 -0
  24. package/dist/{proj-DsetBcW7.js → proj-CsNo9yH1.js} +532 -512
  25. package/dist/{tilecoord-Db24Px13.js → tilecoord-A0fLnBZr.js} +28 -28
  26. package/dist/{vue3-xml-viewer.common-CWer_T5-.js → vue3-xml-viewer.common-tVI9uXUz.js} +1 -1
  27. package/package.json +25 -11
  28. package/src/chart.ts +5 -0
  29. package/src/components/ActivityList/ActivityList.vue +3 -2
  30. package/src/components/Chart/ChartViewer.vue +226 -0
  31. package/src/components/Chart/ChartViewerWrapper.vue +170 -0
  32. package/src/components/DataserviceCard.vue +3 -0
  33. package/src/components/DatasetCard.vue +9 -4
  34. package/src/components/Form/Listbox.vue +101 -0
  35. package/src/components/Form/SearchableSelect.vue +2 -1
  36. package/src/components/InfiniteLoader.vue +53 -0
  37. package/src/components/ObjectCardHeader.vue +11 -4
  38. package/src/components/OpenApiViewer/ContentTypeSelect.vue +48 -0
  39. package/src/components/OpenApiViewer/EndpointRequest.vue +164 -0
  40. package/src/components/OpenApiViewer/EndpointResponses.vue +149 -0
  41. package/src/components/OpenApiViewer/OpenApiViewer.vue +308 -0
  42. package/src/components/OpenApiViewer/SchemaPanel.vue +53 -0
  43. package/src/components/OpenApiViewer/SchemaTree.vue +77 -0
  44. package/src/components/OpenApiViewer/openapi.ts +150 -0
  45. package/src/components/OrganizationNameWithCertificate.vue +3 -2
  46. package/src/components/Pagination.vue +8 -5
  47. package/src/components/RadioInput.vue +7 -2
  48. package/src/components/ReadMore.vue +1 -1
  49. package/src/components/ResourceAccordion/DataStructure.vue +11 -33
  50. package/src/components/ResourceAccordion/Downloads.vue +160 -0
  51. package/src/components/ResourceAccordion/JsonPreview.client.vue +23 -104
  52. package/src/components/ResourceAccordion/MapContainer.client.vue +1 -3
  53. package/src/components/ResourceAccordion/Metadata.vue +1 -2
  54. package/src/components/ResourceAccordion/PdfPreview.client.vue +24 -87
  55. package/src/components/ResourceAccordion/Preview.vue +11 -11
  56. package/src/components/ResourceAccordion/PreviewWrapper.vue +82 -0
  57. package/src/components/ResourceAccordion/ResourceAccordion.vue +10 -109
  58. package/src/components/ResourceAccordion/XmlPreview.client.vue +16 -98
  59. package/src/components/ResourceExplorer/ResourceExplorer.vue +14 -10
  60. package/src/components/ResourceExplorer/ResourceExplorerSidebar.vue +2 -2
  61. package/src/components/ResourceExplorer/ResourceExplorerViewer.vue +46 -147
  62. package/src/components/ResourceExplorer/ResourceSelector.vue +113 -0
  63. package/src/components/ReuseCard.vue +12 -4
  64. package/src/components/Search/GlobalSearch.vue +201 -113
  65. package/src/components/Search/SearchInput.vue +5 -4
  66. package/src/components/TabularExplorer/TabularCell.vue +51 -0
  67. package/src/components/TabularExplorer/TabularCellPopover.vue +170 -0
  68. package/src/components/TabularExplorer/TabularExplorer.vue +973 -0
  69. package/src/components/TabularExplorer/TabularFilterContent.vue +351 -0
  70. package/src/components/TabularExplorer/TabularFilterPopover.vue +111 -0
  71. package/src/components/TabularExplorer/types.ts +83 -0
  72. package/src/composables/useHasTabularData.ts +13 -0
  73. package/src/composables/useMetrics.ts +1 -1
  74. package/src/composables/useSearchFilter.ts +118 -0
  75. package/src/composables/useStableQueryParams.ts +38 -6
  76. package/src/composables/useTabularProfile.ts +70 -0
  77. package/src/config.ts +20 -3
  78. package/src/functions/activities.ts +3 -3
  79. package/src/functions/api.ts +9 -37
  80. package/src/functions/api.types.ts +1 -0
  81. package/src/functions/charts.ts +68 -0
  82. package/src/functions/datasets.ts +0 -17
  83. package/src/functions/metrics.ts +6 -4
  84. package/src/functions/resources.ts +56 -1
  85. package/src/functions/tabular.ts +60 -0
  86. package/src/functions/tabularApi.ts +138 -11
  87. package/src/main.ts +90 -9
  88. package/src/types/dataservices.ts +2 -0
  89. package/src/types/pages.ts +0 -5
  90. package/src/types/posts.ts +2 -2
  91. package/src/types/reports.ts +5 -1
  92. package/src/types/search.ts +63 -1
  93. package/src/types/site.ts +5 -3
  94. package/src/types/ui.ts +2 -0
  95. package/src/types/users.ts +2 -1
  96. package/src/types/visualizations.ts +89 -0
  97. package/assets/swagger-themes/newspaper.css +0 -1670
  98. package/dist/JsonPreview.client-D53pj9Cw.js +0 -72
  99. package/dist/Swagger.client-DPBmsH9q.js +0 -4
  100. package/dist/XmlPreview.client-XElkoA4F.js +0 -64
  101. package/dist/main-BbT-LUXy.js +0 -105854
  102. package/src/components/ResourceAccordion/Swagger.client.vue +0 -48
  103. package/src/functions/pagination.ts +0 -9
@@ -1,35 +1,35 @@
1
- import { defineComponent as E, useTemplateRef as G, ref as W, onMounted as B, createBlock as z, createElementBlock as N, openBlock as m, withCtx as U, createTextVNode as V, toDisplayString as q, unref as A } from "vue";
2
- import { a as D, _ as F } from "./main-BbT-LUXy.js";
1
+ import { defineComponent as E, useTemplateRef as G, ref as W, onMounted as B, createBlock as N, createElementBlock as z, openBlock as u, withCtx as U, createTextVNode as V, toDisplayString as q, unref as A } from "vue";
2
+ import { a as D, _ as F } from "./main-Iz1ZCL6k.js";
3
3
  const Z = /* @__PURE__ */ E({
4
4
  __name: "MapContainer.client",
5
5
  props: {
6
6
  resource: {}
7
7
  },
8
- setup(f) {
9
- const r = f, { t: d } = D();
8
+ setup(m) {
9
+ const r = m, { t: f } = D();
10
10
  let e = null;
11
11
  const a = G("mapRef"), n = W(!1);
12
- async function w() {
12
+ async function d() {
13
13
  const [
14
14
  { default: i },
15
15
  { default: s },
16
+ { default: w },
16
17
  { default: y },
17
- { default: C },
18
18
  { default: h },
19
- _
19
+ C
20
20
  ] = await Promise.all([
21
- import("./View-BR92hTWP.js").then((t) => t.M),
22
- import("./Map-BjUnLyj8.js").then((t) => t.U),
23
- import("./ScaleLine-KW-nXqp3.js"),
24
- import("./Tile-DbNFNPfU.js").then((t) => t.d),
25
- import("./OSM-s40W6sQ2.js"),
21
+ import("./View-xp_P_OHw.js").then((t) => t.N),
22
+ import("./Map-BUtPf5GN.js").then((t) => t.U),
23
+ import("./ScaleLine-hJQIqcZm.js"),
24
+ import("./Tile-Dcl7oIVu.js").then((t) => t.d),
25
+ import("./OSM-D4MTdBtk.js"),
26
26
  // @ts-expect-error no types provided
27
- import("./index-CVTIoZQ0.js")
28
- ]), { CRS: S, GeoportalAttribution: g, GeoportalFullScreen: M, GeoportalZoom: b, LayerImport: v, LayerSwitcher: L } = _;
29
- await Promise.resolve({ }), await Promise.resolve({ }), await Promise.resolve({ }), await Promise.resolve({ }), S.load(), e = new s({
27
+ import("./index-NofRBuyf.js")
28
+ ]), { CRS: _, GeoportalAttribution: S, GeoportalFullScreen: g, GeoportalZoom: b, LayerImport: v, LayerSwitcher: L } = C;
29
+ await Promise.resolve({ }), await Promise.resolve({ }), await Promise.resolve({ }), await Promise.resolve({ }), _.load(), e = new s({
30
30
  target: a.value,
31
31
  layers: [
32
- new C({
32
+ new y({
33
33
  source: new h()
34
34
  })
35
35
  ],
@@ -39,57 +39,56 @@ const Z = /* @__PURE__ */ E({
39
39
  constrainResolution: !0
40
40
  })
41
41
  });
42
- const R = new y({
42
+ const M = new w({
43
43
  units: "metric",
44
44
  bar: !1
45
45
  });
46
- e.addControl(R);
47
- const T = new M({
46
+ e.addControl(M);
47
+ const R = new g({
48
48
  position: "top-right"
49
49
  });
50
- e.addControl(T);
51
- const k = new b({
50
+ e.addControl(R);
51
+ const T = new b({
52
52
  position: "bottom-left"
53
53
  });
54
- e.addControl(k);
55
- const I = new L({
54
+ e.addControl(T);
55
+ const k = new L({
56
56
  options: {
57
57
  position: "top-right"
58
58
  }
59
59
  });
60
- e.addControl(I);
61
- const l = new g({
62
- position: "bottom-right"
63
- // collapsed option is ignored by the library, thus the override below
64
- // see https://github.com/IGNF/geopf-extensions-openlayers/issues/497
60
+ e.addControl(k);
61
+ const I = new S({
62
+ position: "bottom-right",
63
+ collapsed: !1
65
64
  });
66
- l.setCollapsed(!1), e.addControl(l);
65
+ e.addControl(I);
67
66
  const o = new v({
68
67
  position: "bottom-left",
69
68
  listable: !0,
70
69
  layerTypes: ["WMS"]
71
70
  });
72
71
  o._serviceUrlImportInput.value = r.resource.url, o._formContainer.dispatchEvent(new CustomEvent("submit", { cancelable: !0 })), e.addControl(o);
73
- const p = 500;
74
- let c = 20;
75
- function u() {
72
+ const l = 500;
73
+ let p = 20;
74
+ function c() {
76
75
  if (!o._getCapResponseWMSLayers)
77
- c--, c > 0 ? setTimeout(u, p) : n.value = !0;
76
+ p--, p > 0 ? setTimeout(c, l) : n.value = !0;
78
77
  else {
79
78
  const t = o._getCapResponseWMSLayers.filter((x) => x.Name == r.resource.title)[0];
80
79
  o._addGetCapWMSLayer(t);
81
80
  }
82
81
  }
83
- setTimeout(u, p);
82
+ setTimeout(c, l);
84
83
  }
85
84
  return B(() => {
86
- w();
87
- }), (i, s) => n.value ? (m(), z(F, { key: 0 }, {
85
+ d();
86
+ }), (i, s) => n.value ? (u(), N(F, { key: 0 }, {
88
87
  default: U(() => [
89
- V(q(A(d)("L'aperçu cartographique de ce fichier n'a pas pu être chargé.")), 1)
88
+ V(q(A(f)("L'aperçu cartographique de ce fichier n'a pas pu être chargé.")), 1)
90
89
  ]),
91
90
  _: 1
92
- })) : (m(), N("div", {
91
+ })) : (u(), z("div", {
93
92
  key: 1,
94
93
  id: "map",
95
94
  ref_key: "mapRef",
@@ -1,5 +1,5 @@
1
- import { W as u } from "./Image-34hvypZI.js";
2
- import { T as d, c as o, e as m, d as s } from "./TileImage-BsXBxMtq.js";
1
+ import { W as u } from "./Image-BijNEG0p.js";
2
+ import { T as d, c as o, e as m, d as s } from "./TileImage-BJeHipMX.js";
3
3
  class g extends d {
4
4
  /**
5
5
  * @param {Options} [options] XYZ options.