@abi-software/map-side-bar 2.7.3-beta.2 → 2.7.3-beta.3
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/map-side-bar.js +28 -18
- package/dist/map-side-bar.umd.cjs +18 -18
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/components/ConnectivityExplorer.vue +16 -7
- package/src/components/SearchHistory.vue +22 -20
package/dist/map-side-bar.js
CHANGED
|
@@ -19957,16 +19957,19 @@ const G9 = {
|
|
|
19957
19957
|
const s = JSON.stringify(o), i = JSON.stringify(a);
|
|
19958
19958
|
return r.search === t && s === i;
|
|
19959
19959
|
})) {
|
|
19960
|
-
const { label: r, longLabel: o } = this.searchHistoryItemLabel(t, e)
|
|
19961
|
-
|
|
19962
|
-
|
|
19963
|
-
|
|
19964
|
-
|
|
19965
|
-
|
|
19966
|
-
|
|
19967
|
-
|
|
19968
|
-
|
|
19969
|
-
|
|
19960
|
+
const { label: r, longLabel: o } = this.searchHistoryItemLabel(t, e);
|
|
19961
|
+
if (r || o) {
|
|
19962
|
+
const a = {
|
|
19963
|
+
filters: e,
|
|
19964
|
+
search: t,
|
|
19965
|
+
saved: !1,
|
|
19966
|
+
label: r,
|
|
19967
|
+
longLabel: o,
|
|
19968
|
+
id: gh(),
|
|
19969
|
+
updated: (/* @__PURE__ */ new Date()).getTime()
|
|
19970
|
+
};
|
|
19971
|
+
this.searchHistory.push(a), this.searchHistory = this.searchHistory.sort(this.sortSearchHistory), this.trimSearchHistory(), localStorage.setItem(this.localStorageKey, JSON.stringify(this.searchHistory));
|
|
19972
|
+
}
|
|
19970
19973
|
}
|
|
19971
19974
|
},
|
|
19972
19975
|
/**
|
|
@@ -20010,7 +20013,7 @@ const G9 = {
|
|
|
20010
20013
|
},
|
|
20011
20014
|
searchHistoryItemLabel: function(e, t) {
|
|
20012
20015
|
let n = e ? `"${e.trim()}"` : "", r = "", o = [], a = [];
|
|
20013
|
-
return t && (o = t.filter((s) => s.facet !== "Show all"), a = o.map((s) => s.facet2 || s.facet)), n && o.length && (r += n, r += `, ${a.join(", ")}`, n += ` (+${o.length})`), !n && o.length && (n = o[0].facet, o.length > 1 && (r += `${a.join(", ")}`, n += ` (+${o.length - 1})`)), n ? n.length > 15 && !r && (r = n) : n = "
|
|
20016
|
+
return t && (o = t.filter((s) => s.facet !== "Show all"), a = o.map((s) => s.facet2 || s.facet)), n && o.length && (r += n, r += `, ${a.join(", ")}`, n += ` (+${o.length})`), !n && o.length && (n = o[0].facet, o.length > 1 && (r += `${a.join(", ")}`, n += ` (+${o.length - 1})`)), n ? n.length > 15 && !r && (r = n) : n = "", { label: n, longLabel: r };
|
|
20014
20017
|
},
|
|
20015
20018
|
toggleSavedSearch: function(e) {
|
|
20016
20019
|
this.searchHistory.forEach((t) => {
|
|
@@ -20199,7 +20202,7 @@ function sL(e, t, n, r, o, a) {
|
|
|
20199
20202
|
})
|
|
20200
20203
|
])) : G("", !0);
|
|
20201
20204
|
}
|
|
20202
|
-
const el = /* @__PURE__ */ Rn(G9, [["render", sL], ["__scopeId", "data-v-
|
|
20205
|
+
const el = /* @__PURE__ */ Rn(G9, [["render", sL], ["__scopeId", "data-v-871e93b9"]]), Km = (e, t) => {
|
|
20203
20206
|
const n = e.__vccOpts || e;
|
|
20204
20207
|
for (const [r, o] of t)
|
|
20205
20208
|
n[r] = o;
|
|
@@ -23739,11 +23742,14 @@ const pN = {
|
|
|
23739
23742
|
);
|
|
23740
23743
|
this.searchKnowledge(e, this.searchInput);
|
|
23741
23744
|
},
|
|
23745
|
+
searchHistoryUpdate: function(e, t) {
|
|
23746
|
+
this.$refs.searchHistory.selectValue = "Search history", t != null && t.trim() && this.$refs.searchHistory.addSearchToHistory(
|
|
23747
|
+
e,
|
|
23748
|
+
t
|
|
23749
|
+
);
|
|
23750
|
+
},
|
|
23742
23751
|
searchKnowledge: function(e, t = "") {
|
|
23743
|
-
this.expanded = "", this
|
|
23744
|
-
this.filters,
|
|
23745
|
-
this.searchInput
|
|
23746
|
-
), this.loadingCards = !0, this.scrollToTop(), this.$emit("search-changed", {
|
|
23752
|
+
this.expanded = "", this.searchHistoryUpdate(e, t), this.loadingCards = !0, this.scrollToTop(), this.$emit("search-changed", {
|
|
23747
23753
|
value: this.searchInput,
|
|
23748
23754
|
type: "query-update"
|
|
23749
23755
|
}), this.lastSearch = t;
|
|
@@ -23770,7 +23776,11 @@ const pN = {
|
|
|
23770
23776
|
e.loaded = !0;
|
|
23771
23777
|
const t = this.$refs["stepItem-" + e.id];
|
|
23772
23778
|
this.$nextTick(() => {
|
|
23773
|
-
t && t[0] && t[0].
|
|
23779
|
+
t && t[0] && t[0].scrollIntoView({
|
|
23780
|
+
behavior: "smooth",
|
|
23781
|
+
block: "start",
|
|
23782
|
+
inline: "nearest"
|
|
23783
|
+
});
|
|
23774
23784
|
});
|
|
23775
23785
|
}
|
|
23776
23786
|
},
|
|
@@ -23892,7 +23902,7 @@ function mN(e, t, n, r, o, a) {
|
|
|
23892
23902
|
_: 1
|
|
23893
23903
|
}, 8, ["body-style"]);
|
|
23894
23904
|
}
|
|
23895
|
-
const Ry = /* @__PURE__ */ Rn(pN, [["render", mN], ["__scopeId", "data-v-
|
|
23905
|
+
const Ry = /* @__PURE__ */ Rn(pN, [["render", mN], ["__scopeId", "data-v-dbaaa7b7"]]), yN = {
|
|
23896
23906
|
name: "AnnotationTool",
|
|
23897
23907
|
components: {
|
|
23898
23908
|
AnnotationPopup: hb,
|