@abi-software/mapintegratedvuer 1.6.4-beta.0 → 1.6.4-beta.2

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 { mapStores as fet } from "pinia";
2
- import { u as Qet, w as met, h as get, Z as yet, X as vet, Y as _et } from "./index-C5HdWlzX.js";
2
+ import { u as Qet, w as met, h as get, Z as yet, X as vet, Y as _et } from "./index-D9zO35dX.js";
3
3
  import { ref as ke, defineComponent as mr, computed as Kt, openBlock as le, createElementBlock as tr, mergeProps as rl, unref as yt, renderSlot as kr, watch as on, nextTick as i1, provide as G1, reactive as c3, onActivated as bet, onMounted as Z1, onUpdated as Let, normalizeClass as Be, createElementVNode as je, normalizeStyle as E1, createBlock as Pr, resolveDynamicComponent as Ss, withCtx as ge, createCommentVNode as Br, inject as ln, onBeforeUnmount as Rs, withDirectives as Ti, cloneVNode as xet, Fragment as Mo, Text as qj, Comment as wet, createVNode as Fe, toRef as X2, Transition as ud, vShow as zo, readonly as Xj, onDeactivated as Met, toDisplayString as yi, useSlots as pg, isRef as g2, withModifiers as m1, vModelCheckbox as PQ, createTextVNode as An, toRefs as s0, vModelRadio as Kj, h as b7, createSlots as Yj, getCurrentInstance as $1, markRaw as wo, shallowRef as kQ, warn as Eet, watchEffect as Jj, onBeforeMount as Het, onUnmounted as Aet, toRaw as Vh, getCurrentScope as tz, onScopeDispose as KE, Teleport as Cet, resolveComponent as ws, resolveDirective as Oet, toHandlerKey as Pet, renderList as T4, withKeys as lu, vModelText as ket, createApp as Vet, hasInjectionContext as Iet, effectScope as Ret, isReactive as YE, pushScopeId as JE, popScopeId as tS, createStaticVNode as Net } from "vue";
4
4
  const Det = function(t) {
5
5
  return t ? [...new Set(t.map((e) => JSON.stringify(e)))].map(
@@ -101835,15 +101835,16 @@ const JGt = KGt("main", {
101835
101835
  * @arg {String} `name`
101836
101836
  */
101837
101837
  toolbarEvent: function(t, e) {
101838
- if (this.manualAbortedOnClose(), this.doubleClickedFeature = !1, t === "mode")
101839
- this.changeAnnotationDrawMode({ mode: "simple_select" }), this.activeDrawMode = e;
101840
- else if (t === "tool") {
101841
- if (e) {
101842
- const r = e.replace(/[A-Z]/g, (n) => `_${n.toLowerCase()}`);
101843
- this.changeAnnotationDrawMode({ mode: `draw${r}` });
101844
- } else
101845
- this.changeAnnotationDrawMode({ mode: "simple_select" }), this.cancelDrawnFeature();
101846
- this.activeDrawTool = e;
101838
+ if (!this.isValidDrawnCreated) {
101839
+ if (this.manualAbortedOnClose(), this.doubleClickedFeature = !1, this.changeAnnotationDrawMode({ mode: "simple_select" }), t === "mode")
101840
+ this.activeDrawMode = e;
101841
+ else if (t === "tool") {
101842
+ if (this.cancelDrawnFeature(), e) {
101843
+ const r = e.replace(/[A-Z]/g, (n) => `_${n.toLowerCase()}`);
101844
+ this.changeAnnotationDrawMode({ mode: `draw${r}` });
101845
+ }
101846
+ this.activeDrawTool = e;
101847
+ }
101847
101848
  }
101848
101849
  },
101849
101850
  /**
@@ -101912,7 +101913,7 @@ const JGt = KGt("main", {
101912
101913
  */
101913
101914
  commitAnnotationEvent: function(t) {
101914
101915
  this.mapImp && ["created", "updated", "deleted"].includes(this.annotationEntry.type) && // Only when annotation comments stored successfully
101915
- t && (this.featureAnnotationSubmitted = !0, this.mapImp.commitAnnotationEvent(this.annotationEntry), this.annotationEntry.type === "deleted" && (this.annotationSidebar && this.$emit("annotation-close"), this.closeTooltip(), this.annotationEntry = {}), this.addAnnotationFeature());
101916
+ t && (this.featureAnnotationSubmitted = !0, this.mapImp.commitAnnotationEvent(this.annotationEntry), t.body.comment === "Position Updated" ? this.annotationEntry.positionUpdated = !1 : this.annotationEntry.type === "deleted" && (this.annotationSidebar && this.$emit("annotation-close"), this.closeTooltip(), this.annotationEntry = {}), this.addAnnotationFeature());
101916
101917
  },
101917
101918
  /**
101918
101919
  * @public
@@ -101952,7 +101953,7 @@ const JGt = KGt("main", {
101952
101953
  */
101953
101954
  addAnnotationFeature: async function() {
101954
101955
  if (this.mapImp) {
101955
- this.featureAnnotationSubmitted || this.clearAnnotationFeature(), this.featureAnnotationSubmitted || (this.loading = !0);
101956
+ this.featureAnnotationSubmitted || (this.clearAnnotationFeature(), this.loading = !0);
101956
101957
  const t = this.annotationFrom === "Anyone" ? void 0 : this.userInformation.orcid ? this.userInformation.orcid : "0000-0000-0000-0000", e = this.annotationFrom === "Anyone" ? void 0 : this.annotationFrom === "Me", r = await this.fetchDrawnFeatures(t, e);
101957
101958
  if (this.existDrawnFeatures = r, this.loading = !1, !this.featureAnnotationSubmitted)
101958
101959
  for (const n of r)
@@ -103326,7 +103327,7 @@ const JGt = KGt("main", {
103326
103327
  mounted: function() {
103327
103328
  this.openMapRef = kQ(this.$refs.openMapRef), this.backgroundIconRef = kQ(this.$refs.backgroundIconRef), this.tooltipWait.length = this.hoverVisibilities.length, this.flatmapQueries = wo(new U4t()), this.flatmapQueries.initialise(this.flatmapAPI), this.state ? this.setStateRequired && this.setState(this.state) : this.renderAtMounted && this.createFlatmap();
103328
103329
  }
103329
- }, ts = (t) => (JE("data-v-439d44de"), t = t(), tS(), t), i$t = {
103330
+ }, ts = (t) => (JE("data-v-ca58463d"), t = t(), tS(), t), i$t = {
103330
103331
  class: "flatmap-container",
103331
103332
  ref: "flatmapContainer",
103332
103333
  "element-loading-text": "Loading...",
@@ -104046,7 +104047,7 @@ function H$t(t, e, r, n, i, o) {
104046
104047
  [at, t.loading]
104047
104048
  ]);
104048
104049
  }
104049
- const vJ = /* @__PURE__ */ Cg(n$t, [["render", H$t], ["__scopeId", "data-v-439d44de"]]);
104050
+ const vJ = /* @__PURE__ */ Cg(n$t, [["render", H$t], ["__scopeId", "data-v-ca58463d"]]);
104050
104051
  function A$t(t) {
104051
104052
  return { all: t = t || /* @__PURE__ */ new Map(), on: function(e, r) {
104052
104053
  var n = t.get(e);