@abi-software/map-side-bar 2.10.0-beta.2 → 2.10.0-beta.4
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 +24 -10
- package/dist/map-side-bar.umd.cjs +21 -21
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/components/ConnectivityExplorer.vue +4 -2
- package/src/components/SearchFilters.vue +1 -1
- package/src/components/SideBar.vue +18 -2
- package/src/services/flatmapKnowledge.js +0 -94
- package/src/services/flatmapQueries.js +0 -498
package/dist/map-side-bar.js
CHANGED
|
@@ -22428,7 +22428,7 @@ const hi = function(e) {
|
|
|
22428
22428
|
}), this.cascaderTags = {}, this.cascaderTagsClone = {}, this.presentTags = [], e.map((t) => {
|
|
22429
22429
|
const { facet: n, facet2: r, term: o, tagLabel: a, facetPropPath: s } = t;
|
|
22430
22430
|
let i = n, l = "";
|
|
22431
|
-
s && s.includes("flatmap.connectivity.source.") && a && (i = a, l = o.charAt(0)), this.correctnessCheck.term.has(o) && this.correctnessCheck.facet.has(i) && (r ? this.correctnessCheck.facet2.has(r) && (o in this.cascaderTags ? n in this.cascaderTags[o] ? (this.cascaderTags[o][n].push(r), this.cascaderTagsClone[o][n].push(r)) : (this.cascaderTags[o][n] = [r], this.cascaderTagsClone[o][n] = [r]) : (this.cascaderTags[o] = {}, this.cascaderTags[o][n] = [r], this.cascaderTagsClone[o] = {}, this.cascaderTagsClone[o][n] = [r])) : o in this.cascaderTags &&
|
|
22431
|
+
s && s.includes("flatmap.connectivity.source.") && a && (i = a, l = o.charAt(0)), this.correctnessCheck.term.has(o) && this.correctnessCheck.facet.has(i) && (r ? this.correctnessCheck.facet2.has(r) && (o in this.cascaderTags ? n in this.cascaderTags[o] ? (this.cascaderTags[o][n].push(r), this.cascaderTagsClone[o][n].push(r)) : (this.cascaderTags[o][n] = [r], this.cascaderTagsClone[o][n] = [r]) : (this.cascaderTags[o] = {}, this.cascaderTags[o][n] = [r], this.cascaderTagsClone[o] = {}, this.cascaderTagsClone[o][n] = [r])) : o in this.cascaderTags && !["Anatomical structure", "Nerves"].includes(o) ? (this.cascaderTags[o].push(i), l ? this.cascaderTagsClone[o].push(l + ":" + i) : this.cascaderTagsClone[o].push(i)) : n.toLowerCase() !== "show all" ? (this.cascaderTags[o] = [i], l ? this.cascaderTagsClone[o] = [l + ":" + i] : this.cascaderTagsClone[o] = [i]) : (this.cascaderTags[o] = [], this.cascaderTagsClone[o] = []));
|
|
22432
22432
|
}), Object.values(this.cascaderTagsClone).map((t) => {
|
|
22433
22433
|
const n = Array.isArray(t) ? t : Object.values(t).flat(1);
|
|
22434
22434
|
this.presentTags = [...this.presentTags, ...n];
|
|
@@ -22939,7 +22939,7 @@ function t9(e, t, n, r, o, a) {
|
|
|
22939
22939
|
])
|
|
22940
22940
|
]);
|
|
22941
22941
|
}
|
|
22942
|
-
const al = /* @__PURE__ */ Ln(M6, [["render", t9], ["__scopeId", "data-v-
|
|
22942
|
+
const al = /* @__PURE__ */ Ln(M6, [["render", t9], ["__scopeId", "data-v-29c66fc9"]]);
|
|
22943
22943
|
var n9 = async function(e) {
|
|
22944
22944
|
if (!e.ok) {
|
|
22945
22945
|
let t = await e.json();
|
|
@@ -24124,7 +24124,7 @@ const V9 = {
|
|
|
24124
24124
|
this.filter = [...e], this.searchAndFilterUpdate();
|
|
24125
24125
|
},
|
|
24126
24126
|
searchAndFilterUpdate: function() {
|
|
24127
|
-
this.resetPageNavigation(), this.searchKnowledge(this.filter, this.searchInput), this
|
|
24127
|
+
this.resetPageNavigation(), this.searchKnowledge(this.filter, this.searchInput), this.searchHistoryUpdate(this.filter, this.searchInput);
|
|
24128
24128
|
},
|
|
24129
24129
|
searchHistoryUpdate: function(e, t) {
|
|
24130
24130
|
this.$refs.searchHistory.selectValue = "Search history", (e.length || t != null && t.trim()) && this.$refs.searchHistory.addSearchToHistory(this.filter, t);
|
|
@@ -24145,7 +24145,7 @@ const V9 = {
|
|
|
24145
24145
|
this.numberPerPage = e, this.pageChange(1);
|
|
24146
24146
|
},
|
|
24147
24147
|
pageChange: function(e) {
|
|
24148
|
-
this.start = (e - 1) * this.numberPerPage, this.page = e, this.
|
|
24148
|
+
this.start = (e - 1) * this.numberPerPage, this.page = e, this.expanded = "", this.expandedData = null, this.scrollToTop();
|
|
24149
24149
|
},
|
|
24150
24150
|
scrollToTop: function() {
|
|
24151
24151
|
this.$refs.content && this.$refs.content.scroll({ top: 0, behavior: "smooth" });
|
|
@@ -24331,7 +24331,7 @@ function K9(e, t, n, r, o, a) {
|
|
|
24331
24331
|
_: 1
|
|
24332
24332
|
}, 8, ["body-style"]);
|
|
24333
24333
|
}
|
|
24334
|
-
const Qy = /* @__PURE__ */ Ln(V9, [["render", K9], ["__scopeId", "data-v-
|
|
24334
|
+
const Qy = /* @__PURE__ */ Ln(V9, [["render", K9], ["__scopeId", "data-v-cc620b4b"]]), W9 = {
|
|
24335
24335
|
name: "AnnotationTool",
|
|
24336
24336
|
components: {
|
|
24337
24337
|
AnnotationPopup: jb,
|
|
@@ -24590,7 +24590,9 @@ const tb = /* @__PURE__ */ Ln(Y9, [["render", tB], ["__scopeId", "data-v-9dda8d5
|
|
|
24590
24590
|
connectivity: {
|
|
24591
24591
|
search: "",
|
|
24592
24592
|
filters: []
|
|
24593
|
-
}
|
|
24593
|
+
},
|
|
24594
|
+
connectivityEntry: this.connectivityEntry,
|
|
24595
|
+
annotationEntry: this.annotationEntry
|
|
24594
24596
|
}
|
|
24595
24597
|
};
|
|
24596
24598
|
},
|
|
@@ -24752,13 +24754,25 @@ const tb = /* @__PURE__ */ Ln(Y9, [["render", tB], ["__scopeId", "data-v-9dda8d5
|
|
|
24752
24754
|
},
|
|
24753
24755
|
updateState: function() {
|
|
24754
24756
|
const e = this.getTabRef(void 0, "datasetExplorer"), t = this.getTabRef(void 0, "connectivityExplorer");
|
|
24755
|
-
this.state.dataset.search = e.getSearch(), this.state.dataset.filters = e.getFilters(), this.state.connectivity.search = t.getSearch(), this.state.connectivity.filters = t.getFilters();
|
|
24757
|
+
this.state.dataset.search = e.getSearch(), this.state.dataset.filters = e.getFilters(), this.state.connectivity.search = t.getSearch(), this.state.connectivity.filters = t.getFilters(), this.state.connectivityEntry = this.connectivityEntry, this.state.annotationEntry = this.annotationEntry;
|
|
24756
24758
|
},
|
|
24759
|
+
/**
|
|
24760
|
+
* This function returns the current state of the sidebar
|
|
24761
|
+
* to store in the map state.
|
|
24762
|
+
* @returns {Object} state
|
|
24763
|
+
* @public
|
|
24764
|
+
*/
|
|
24757
24765
|
getState: function() {
|
|
24758
24766
|
return this.updateState(), this.state;
|
|
24759
24767
|
},
|
|
24768
|
+
/**
|
|
24769
|
+
* This function restores the state of the sidebar
|
|
24770
|
+
* from the provided state object.
|
|
24771
|
+
* @param state {Object} state
|
|
24772
|
+
* @public
|
|
24773
|
+
*/
|
|
24760
24774
|
setState: function(e) {
|
|
24761
|
-
!e || !e.dataset || !e.connectivity || (this.state = e, this.openSearch(e.dataset.filters, e.dataset.search), this.openConnectivitySearch(e.connectivity.filters, e.connectivity.search));
|
|
24775
|
+
!e || !e.dataset || !e.connectivity || (this.state = JSON.parse(JSON.stringify(e)), this.openSearch(e.dataset.filters, e.dataset.search), this.openConnectivitySearch(e.connectivity.filters, e.connectivity.search));
|
|
24762
24776
|
}
|
|
24763
24777
|
},
|
|
24764
24778
|
computed: {
|
|
@@ -24865,8 +24879,8 @@ function sB(e, t, n, r, o, a) {
|
|
|
24865
24879
|
envVars: n.envVars,
|
|
24866
24880
|
connectivityEntry: n.connectivityEntry,
|
|
24867
24881
|
availableAnatomyFacets: e.availableAnatomyFacets,
|
|
24868
|
-
onFilterVisibility: t[6] || (t[6] = (h) => e.$emit("filter-visibility", h)),
|
|
24869
24882
|
connectivityFilterOptions: n.filterOptions,
|
|
24883
|
+
onFilterVisibility: t[6] || (t[6] = (h) => e.$emit("filter-visibility", h)),
|
|
24870
24884
|
showVisibilityFilter: n.showVisibilityFilter,
|
|
24871
24885
|
onSearchChanged: (h) => a.searchChanged(d.id, h),
|
|
24872
24886
|
onHoverChanged: (h) => a.hoverChanged(d.id, h),
|
|
@@ -24898,7 +24912,7 @@ function sB(e, t, n, r, o, a) {
|
|
|
24898
24912
|
}, 8, ["modelValue"])
|
|
24899
24913
|
], 512);
|
|
24900
24914
|
}
|
|
24901
|
-
const uB = /* @__PURE__ */ Ln(nB, [["render", sB], ["__scopeId", "data-v-
|
|
24915
|
+
const uB = /* @__PURE__ */ Ln(nB, [["render", sB], ["__scopeId", "data-v-edcda160"]]);
|
|
24902
24916
|
export {
|
|
24903
24917
|
uB as SideBar
|
|
24904
24918
|
};
|