@abi-software/map-side-bar 2.9.2-beta.6 → 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.
@@ -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-4a34f1dd"]]), c9 = (e) => e.replace(/\w\S*/g, (t) => t.charAt(0).toUpperCase() + t.substr(1).toLowerCase()), ga = function(e) {
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",
@@ -23969,7 +23975,7 @@ const N9 = {
23969
23975
  this.freezeHoverChange(), this.$emit("show-reference-connectivities", e);
23970
23976
  },
23971
23977
  onConnectivityClicked: function(e) {
23972
- this.searchInput = e.query, this.filter = e.filter, this.searchAndFilterUpdate();
23978
+ this.searchInput = e.query, this.searchAndFilterUpdate();
23973
23979
  },
23974
23980
  collapseChange: function(e) {
23975
23981
  this.expanded = this.expanded === e.id ? "" : e.id, this.expandedData = this.expanded ? e : null;
@@ -24035,7 +24041,7 @@ const N9 = {
24035
24041
  this.filter = [...e], this.searchAndFilterUpdate();
24036
24042
  },
24037
24043
  searchAndFilterUpdate: function() {
24038
- 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);
24039
24045
  },
24040
24046
  searchHistoryUpdate: function(e, t) {
24041
24047
  this.$refs.searchHistory.selectValue = "Search history", (e.length || t != null && t.trim()) && this.$refs.searchHistory.addSearchToHistory(this.filter, t);
@@ -24072,6 +24078,12 @@ const N9 = {
24072
24078
  this.$nextTick(() => {
24073
24079
  n && t && t[0] && (n.scrollTop = t[0].offsetTop);
24074
24080
  });
24081
+ },
24082
+ getSearch: function() {
24083
+ return this.searchInput;
24084
+ },
24085
+ getFilters: function() {
24086
+ return this.filter;
24075
24087
  }
24076
24088
  },
24077
24089
  mounted: function() {
@@ -24236,7 +24248,7 @@ function V9(e, t, n, r, o, a) {
24236
24248
  _: 1
24237
24249
  }, 8, ["body-style"]);
24238
24250
  }
24239
- const Xy = /* @__PURE__ */ Ln(N9, [["render", V9], ["__scopeId", "data-v-11d214de"]]), z9 = {
24251
+ const Xy = /* @__PURE__ */ Ln(N9, [["render", V9], ["__scopeId", "data-v-e450e247"]]), z9 = {
24240
24252
  name: "AnnotationTool",
24241
24253
  components: {
24242
24254
  AnnotationPopup: jb,
@@ -24486,7 +24498,17 @@ const eb = /* @__PURE__ */ Ln(K9, [["render", Z9], ["__scopeId", "data-v-9dda8d5
24486
24498
  availableAnatomyFacets: [],
24487
24499
  activeTabId: 1,
24488
24500
  activeAnnotationData: { tabType: "annotation" },
24489
- activeConnectivityData: { tabType: "connectivity" }
24501
+ activeConnectivityData: { tabType: "connectivity" },
24502
+ state: {
24503
+ dataset: {
24504
+ search: "",
24505
+ filters: []
24506
+ },
24507
+ connectivity: {
24508
+ search: "",
24509
+ filters: []
24510
+ }
24511
+ }
24490
24512
  };
24491
24513
  },
24492
24514
  methods: {
@@ -24644,6 +24666,16 @@ const eb = /* @__PURE__ */ Ln(K9, [["render", Z9], ["__scopeId", "data-v-9dda8d5
24644
24666
  },
24645
24667
  closeConnectivity: function() {
24646
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));
24647
24679
  }
24648
24680
  },
24649
24681
  computed: {
@@ -24750,8 +24782,8 @@ function tB(e, t, n, r, o, a) {
24750
24782
  envVars: n.envVars,
24751
24783
  connectivityEntry: n.connectivityEntry,
24752
24784
  availableAnatomyFacets: e.availableAnatomyFacets,
24753
- onFilterVisibility: t[6] || (t[6] = (h) => e.$emit("filter-visibility", h)),
24754
24785
  connectivityFilterOptions: n.filterOptions,
24786
+ onFilterVisibility: t[6] || (t[6] = (h) => e.$emit("filter-visibility", h)),
24755
24787
  showVisibilityFilter: n.showVisibilityFilter,
24756
24788
  onSearchChanged: (h) => a.searchChanged(f.id, h),
24757
24789
  onHoverChanged: (h) => a.hoverChanged(f.id, h),
@@ -24783,7 +24815,7 @@ function tB(e, t, n, r, o, a) {
24783
24815
  }, 8, ["modelValue"])
24784
24816
  ], 512);
24785
24817
  }
24786
- const aB = /* @__PURE__ */ Ln(Y9, [["render", tB], ["__scopeId", "data-v-d70c187c"]]);
24818
+ const aB = /* @__PURE__ */ Ln(Y9, [["render", tB], ["__scopeId", "data-v-1ac8d9ec"]]);
24787
24819
  export {
24788
24820
  aB as SideBar
24789
24821
  };