@abi-software/map-side-bar 2.9.2-beta.5 → 2.9.2-beta.7
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 +47 -11
- package/dist/map-side-bar.umd.cjs +21 -21
- package/dist/style.css +1 -1
- package/package.json +2 -2
- package/src/components/ConnectivityExplorer.vue +7 -1
- package/src/components/ConnectivityInfo.vue +3 -1
- package/src/components/DatasetExplorer.vue +6 -0
- package/src/components/SideBar.vue +30 -1
package/dist/map-side-bar.js
CHANGED
|
@@ -23169,6 +23169,12 @@ const o9 = {
|
|
|
23169
23169
|
},
|
|
23170
23170
|
searchHistorySearch: function(e) {
|
|
23171
23171
|
this.searchInput = e.search, this.filter = e.filters, this.openSearch([...e.filters], e.search);
|
|
23172
|
+
},
|
|
23173
|
+
getSearch: function() {
|
|
23174
|
+
return this.searchInput;
|
|
23175
|
+
},
|
|
23176
|
+
getFilters: function() {
|
|
23177
|
+
return this.filter;
|
|
23172
23178
|
}
|
|
23173
23179
|
},
|
|
23174
23180
|
mounted: function() {
|
|
@@ -23277,7 +23283,7 @@ function l9(e, t, n, r, o, a) {
|
|
|
23277
23283
|
_: 1
|
|
23278
23284
|
}, 8, ["body-style"]);
|
|
23279
23285
|
}
|
|
23280
|
-
const Jy = /* @__PURE__ */ Ln(o9, [["render", l9], ["__scopeId", "data-v-
|
|
23286
|
+
const Jy = /* @__PURE__ */ Ln(o9, [["render", l9], ["__scopeId", "data-v-560baeb1"]]), c9 = (e) => e.replace(/\w\S*/g, (t) => t.charAt(0).toUpperCase() + t.substr(1).toLowerCase()), ga = function(e) {
|
|
23281
23287
|
return e ? e.charAt(0).toUpperCase() + e.slice(1) : "";
|
|
23282
23288
|
}, u9 = {
|
|
23283
23289
|
name: "ConnectivityInfo",
|
|
@@ -23323,6 +23329,7 @@ const Jy = /* @__PURE__ */ Ln(o9, [["render", l9], ["__scopeId", "data-v-4a34f1d
|
|
|
23323
23329
|
connectivityLoading: !1,
|
|
23324
23330
|
connectivitySource: "map",
|
|
23325
23331
|
// sckan
|
|
23332
|
+
noMapConnectivity: !1,
|
|
23326
23333
|
connectivityError: {},
|
|
23327
23334
|
graphViewLoaded: !1,
|
|
23328
23335
|
connectivityFromMap: null
|
|
@@ -23377,7 +23384,7 @@ const Jy = /* @__PURE__ */ Ln(o9, [["render", l9], ["__scopeId", "data-v-4a34f1d
|
|
|
23377
23384
|
deep: !0,
|
|
23378
23385
|
immediate: !0,
|
|
23379
23386
|
handler: function(e, t) {
|
|
23380
|
-
e && e !== t && (this.connectivityLoading = !0, this.activeView = localStorage.getItem("connectivity-active-view") || this.activeView, this.activeView === "graphView" && (this.graphViewLoaded = !0), this.connectivitySource = this.entry.connectivitySource, this.updateGraphConnectivity(), this.connectivityLoading = !1, (!t || (e == null ? void 0 : e.featureId[0]) !== (t == null ? void 0 : t.featureId[0])) && this.$emit("loaded"));
|
|
23387
|
+
e && e !== t && (this.connectivityLoading = !0, this.activeView = localStorage.getItem("connectivity-active-view") || this.activeView, this.activeView === "graphView" && (this.graphViewLoaded = !0), this.connectivitySource = this.entry.connectivitySource, this.noMapConnectivity = this.entry.noMapConnectivity, this.updateGraphConnectivity(), this.connectivityLoading = !1, (!t || (e == null ? void 0 : e.featureId[0]) !== (t == null ? void 0 : t.featureId[0])) && this.$emit("loaded"));
|
|
23381
23388
|
}
|
|
23382
23389
|
}
|
|
23383
23390
|
},
|
|
@@ -23680,12 +23687,15 @@ function O9(e, t, n, r, o, a) {
|
|
|
23680
23687
|
onChange: a.onConnectivitySourceChange
|
|
23681
23688
|
}, {
|
|
23682
23689
|
default: R(() => [
|
|
23683
|
-
q(f, {
|
|
23690
|
+
q(f, {
|
|
23691
|
+
value: "map",
|
|
23692
|
+
disabled: e.noMapConnectivity
|
|
23693
|
+
}, {
|
|
23684
23694
|
default: R(() => t[8] || (t[8] = [
|
|
23685
23695
|
Ee("Map")
|
|
23686
23696
|
])),
|
|
23687
23697
|
_: 1
|
|
23688
|
-
}),
|
|
23698
|
+
}, 8, ["disabled"]),
|
|
23689
23699
|
q(f, { value: "sckan" }, {
|
|
23690
23700
|
default: R(() => t[9] || (t[9] = [
|
|
23691
23701
|
Ee("SCKAN")
|
|
@@ -23760,7 +23770,7 @@ function O9(e, t, n, r, o, a) {
|
|
|
23760
23770
|
])) : W("", !0)
|
|
23761
23771
|
])) : W("", !0);
|
|
23762
23772
|
}
|
|
23763
|
-
const Zy = /* @__PURE__ */ Ln(u9, [["render", O9], ["__scopeId", "data-v-
|
|
23773
|
+
const Zy = /* @__PURE__ */ Ln(u9, [["render", O9], ["__scopeId", "data-v-8b7648ae"]]), A9 = {
|
|
23764
23774
|
name: "ConnectivityCard",
|
|
23765
23775
|
data() {
|
|
23766
23776
|
return {
|
|
@@ -23965,7 +23975,7 @@ const N9 = {
|
|
|
23965
23975
|
this.freezeHoverChange(), this.$emit("show-reference-connectivities", e);
|
|
23966
23976
|
},
|
|
23967
23977
|
onConnectivityClicked: function(e) {
|
|
23968
|
-
this.searchInput = e.query, this.
|
|
23978
|
+
this.searchInput = e.query, this.searchAndFilterUpdate();
|
|
23969
23979
|
},
|
|
23970
23980
|
collapseChange: function(e) {
|
|
23971
23981
|
this.expanded = this.expanded === e.id ? "" : e.id, this.expandedData = this.expanded ? e : null;
|
|
@@ -24031,7 +24041,7 @@ const N9 = {
|
|
|
24031
24041
|
this.filter = [...e], this.searchAndFilterUpdate();
|
|
24032
24042
|
},
|
|
24033
24043
|
searchAndFilterUpdate: function() {
|
|
24034
|
-
this.resetPageNavigation(), this.searchKnowledge(this.filter, this.searchInput), this.searchHistoryUpdate(this.filter, this.searchInput);
|
|
24044
|
+
this.resetPageNavigation(), this.searchKnowledge(this.filter, this.searchInput), this.$refs.filtersRef.setCascader(this.filter), this.searchHistoryUpdate(this.filter, this.searchInput);
|
|
24035
24045
|
},
|
|
24036
24046
|
searchHistoryUpdate: function(e, t) {
|
|
24037
24047
|
this.$refs.searchHistory.selectValue = "Search history", (e.length || t != null && t.trim()) && this.$refs.searchHistory.addSearchToHistory(this.filter, t);
|
|
@@ -24068,6 +24078,12 @@ const N9 = {
|
|
|
24068
24078
|
this.$nextTick(() => {
|
|
24069
24079
|
n && t && t[0] && (n.scrollTop = t[0].offsetTop);
|
|
24070
24080
|
});
|
|
24081
|
+
},
|
|
24082
|
+
getSearch: function() {
|
|
24083
|
+
return this.searchInput;
|
|
24084
|
+
},
|
|
24085
|
+
getFilters: function() {
|
|
24086
|
+
return this.filter;
|
|
24071
24087
|
}
|
|
24072
24088
|
},
|
|
24073
24089
|
mounted: function() {
|
|
@@ -24232,7 +24248,7 @@ function V9(e, t, n, r, o, a) {
|
|
|
24232
24248
|
_: 1
|
|
24233
24249
|
}, 8, ["body-style"]);
|
|
24234
24250
|
}
|
|
24235
|
-
const Xy = /* @__PURE__ */ Ln(N9, [["render", V9], ["__scopeId", "data-v-
|
|
24251
|
+
const Xy = /* @__PURE__ */ Ln(N9, [["render", V9], ["__scopeId", "data-v-e450e247"]]), z9 = {
|
|
24236
24252
|
name: "AnnotationTool",
|
|
24237
24253
|
components: {
|
|
24238
24254
|
AnnotationPopup: jb,
|
|
@@ -24482,7 +24498,17 @@ const eb = /* @__PURE__ */ Ln(K9, [["render", Z9], ["__scopeId", "data-v-9dda8d5
|
|
|
24482
24498
|
availableAnatomyFacets: [],
|
|
24483
24499
|
activeTabId: 1,
|
|
24484
24500
|
activeAnnotationData: { tabType: "annotation" },
|
|
24485
|
-
activeConnectivityData: { tabType: "connectivity" }
|
|
24501
|
+
activeConnectivityData: { tabType: "connectivity" },
|
|
24502
|
+
state: {
|
|
24503
|
+
dataset: {
|
|
24504
|
+
search: "",
|
|
24505
|
+
filters: []
|
|
24506
|
+
},
|
|
24507
|
+
connectivity: {
|
|
24508
|
+
search: "",
|
|
24509
|
+
filters: []
|
|
24510
|
+
}
|
|
24511
|
+
}
|
|
24486
24512
|
};
|
|
24487
24513
|
},
|
|
24488
24514
|
methods: {
|
|
@@ -24640,6 +24666,16 @@ const eb = /* @__PURE__ */ Ln(K9, [["render", Z9], ["__scopeId", "data-v-9dda8d5
|
|
|
24640
24666
|
},
|
|
24641
24667
|
closeConnectivity: function() {
|
|
24642
24668
|
ht.emit("close-connectivity");
|
|
24669
|
+
},
|
|
24670
|
+
updateState: function() {
|
|
24671
|
+
const e = this.getTabRef(void 0, "datasetExplorer"), t = this.getTabRef(void 0, "connectivityExplorer");
|
|
24672
|
+
this.state.dataset.search = e.getSearch(), this.state.dataset.filters = e.getFilters(), this.state.connectivity.search = t.getSearch(), this.state.connectivity.filters = t.getFilters();
|
|
24673
|
+
},
|
|
24674
|
+
getState: function() {
|
|
24675
|
+
return this.updateState(), this.state;
|
|
24676
|
+
},
|
|
24677
|
+
setState: function(e) {
|
|
24678
|
+
!e || !e.dataset || !e.connectivity || (this.state = e, this.openSearch(e.dataset.filters, e.dataset.search), this.openConnectivitySearch(e.connectivity.filters, e.connectivity.search));
|
|
24643
24679
|
}
|
|
24644
24680
|
},
|
|
24645
24681
|
computed: {
|
|
@@ -24746,8 +24782,8 @@ function tB(e, t, n, r, o, a) {
|
|
|
24746
24782
|
envVars: n.envVars,
|
|
24747
24783
|
connectivityEntry: n.connectivityEntry,
|
|
24748
24784
|
availableAnatomyFacets: e.availableAnatomyFacets,
|
|
24749
|
-
onFilterVisibility: t[6] || (t[6] = (h) => e.$emit("filter-visibility", h)),
|
|
24750
24785
|
connectivityFilterOptions: n.filterOptions,
|
|
24786
|
+
onFilterVisibility: t[6] || (t[6] = (h) => e.$emit("filter-visibility", h)),
|
|
24751
24787
|
showVisibilityFilter: n.showVisibilityFilter,
|
|
24752
24788
|
onSearchChanged: (h) => a.searchChanged(f.id, h),
|
|
24753
24789
|
onHoverChanged: (h) => a.hoverChanged(f.id, h),
|
|
@@ -24779,7 +24815,7 @@ function tB(e, t, n, r, o, a) {
|
|
|
24779
24815
|
}, 8, ["modelValue"])
|
|
24780
24816
|
], 512);
|
|
24781
24817
|
}
|
|
24782
|
-
const aB = /* @__PURE__ */ Ln(Y9, [["render", tB], ["__scopeId", "data-v-
|
|
24818
|
+
const aB = /* @__PURE__ */ Ln(Y9, [["render", tB], ["__scopeId", "data-v-1ac8d9ec"]]);
|
|
24783
24819
|
export {
|
|
24784
24820
|
aB as SideBar
|
|
24785
24821
|
};
|