@datagouv/components-next 0.0.19 → 0.0.20

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.
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as b, defineAsyncComponent as S, ref as o, computed as x, onMounted as C, createElementBlock as p, openBlock as n, createBlock as f, createCommentVNode as N, createVNode as a, unref as u, toDisplayString as i, withCtx as d, createElementVNode as m } from "vue";
2
- import { d as P, a as h, F as v } from "./main-CUy8gy19.js";
2
+ import { d as P, a as h, F as v } from "./main-CgjLq1oz.js";
3
3
  const T = { class: "fr-text--xs" }, $ = { key: 0 }, E = {
4
4
  key: 1,
5
5
  class: "text-gray-medium"
@@ -6,8 +6,8 @@ var si = (i, e, t) => e in i ? ri(i, e, { enumerable: !0, configurable: !0, writ
6
6
  var mt = (i, e, t) => si(i, typeof e != "symbol" ? e + "" : e, t), ai = (i, e, t) => e.has(i) || Rt("Cannot " + t);
7
7
  var Pt = (i, e, t) => e.has(i) ? Rt("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(i) : e.set(i, t);
8
8
  var ft = (i, e, t) => (ai(i, e, "access private method"), t);
9
- import { defineComponent, ref, onMounted, createBlock, createElementBlock, openBlock, withCtx, createVNode, createElementVNode, unref, toDisplayString } from "vue";
10
- import { c as commonjsGlobal, g as getDefaultExportFromCjs$1, u as useI18n, a as _sfc_main$1, F as Fe } from "./main-CUy8gy19.js";
9
+ import { defineComponent, useTemplateRef, ref, onMounted, createBlock, createElementBlock, openBlock, withCtx, createVNode, createElementVNode, unref, toDisplayString } from "vue";
10
+ import { c as commonjsGlobal, g as getDefaultExportFromCjs$1, u as useI18n, a as _sfc_main$1, F as Fe } from "./main-CgjLq1oz.js";
11
11
  const ObjectEventType = {
12
12
  /**
13
13
  * Triggered when a property is changed.
@@ -78234,9 +78234,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
78234
78234
  setup(i) {
78235
78235
  const e = i, { t } = useI18n();
78236
78236
  let n = null;
78237
- const s = ref(0), o = ref(!1);
78237
+ const s = useTemplateRef("mapRef"), o = ref(!1);
78238
78238
  async function l() {
78239
78239
  await Promise.resolve({ }), await Promise.resolve({ }), await Promise.resolve({ }), await Promise.resolve({ }), CRS.load(), n = new Map$1({
78240
+ // @ts-expect-error null is not happening during onMount
78240
78241
  target: s.value,
78241
78242
  layers: [
78242
78243
  new TileLayer({
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as T, defineAsyncComponent as $, ref as l, computed as y, onMounted as q, createElementBlock as p, openBlock as t, createBlock as f, createCommentVNode as B, createVNode as a, unref as u, toDisplayString as c, withCtx as d, createElementVNode as g } from "vue";
2
- import { d as L, a as h, F as m } from "./main-CUy8gy19.js";
2
+ import { d as L, a as h, F as m } from "./main-CgjLq1oz.js";
3
3
  const O = { class: "text-xs" }, S = { key: 0 }, N = {
4
4
  key: 1,
5
5
  class: "text-gray-medium"