@abi-software/map-side-bar 2.2.1-beta.0 → 2.2.1-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.
@@ -10821,7 +10821,7 @@ const Ju = {
10821
10821
  transformRequest: [function(t, n) {
10822
10822
  const r = n.getContentType() || "", o = r.indexOf("application/json") > -1, a = H.isObject(t);
10823
10823
  if (a && H.isHTMLForm(t) && (t = new FormData(t)), H.isFormData(t))
10824
- return o && o ? JSON.stringify(ev(t)) : t;
10824
+ return o ? JSON.stringify(ev(t)) : t;
10825
10825
  if (H.isArrayBuffer(t) || H.isBuffer(t) || H.isStream(t) || H.isFile(t) || H.isBlob(t))
10826
10826
  return t;
10827
10827
  if (H.isArrayBufferView(t))
@@ -11339,7 +11339,7 @@ function kf(e) {
11339
11339
  ), r.response.headers = or.from(r.response.headers))), Promise.reject(r);
11340
11340
  });
11341
11341
  }
11342
- const Ef = (e) => e instanceof or ? e.toJSON() : e;
11342
+ const Ef = (e) => e instanceof or ? { ...e } : e;
11343
11343
  function wo(e, t) {
11344
11344
  t = t || {};
11345
11345
  const n = {};
@@ -11406,7 +11406,7 @@ function wo(e, t) {
11406
11406
  H.isUndefined(g) && f !== i || (n[c] = g);
11407
11407
  }), n;
11408
11408
  }
11409
- const ov = "1.6.5", Yu = {};
11409
+ const ov = "1.6.8", Yu = {};
11410
11410
  ["object", "boolean", "number", "function", "string", "symbol"].forEach((e, t) => {
11411
11411
  Yu[e] = function(r) {
11412
11412
  return typeof r === e || "a" + (t < 1 ? "n " : " ") + e;
@@ -11467,7 +11467,21 @@ class Rs {
11467
11467
  *
11468
11468
  * @returns {Promise} The Promise to be fulfilled
11469
11469
  */
11470
- request(t, n) {
11470
+ async request(t, n) {
11471
+ try {
11472
+ return await this._request(t, n);
11473
+ } catch (r) {
11474
+ if (r instanceof Error) {
11475
+ let o;
11476
+ Error.captureStackTrace ? Error.captureStackTrace(o = {}) : o = new Error();
11477
+ const a = o.stack ? o.stack.replace(/^.+\n/, "") : "";
11478
+ r.stack ? a && !String(r.stack).endsWith(a.replace(/^.+\n.+\n/, "")) && (r.stack += `
11479
+ ` + a) : r.stack = a;
11480
+ }
11481
+ throw r;
11482
+ }
11483
+ }
11484
+ _request(t, n) {
11471
11485
  typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n = wo(this.defaults, n);
11472
11486
  const { transitional: r, paramsSerializer: o, headers: a } = n;
11473
11487
  r !== void 0 && Ml.assertOptions(r, {
@@ -17394,16 +17408,10 @@ const xF = ["src"], _F = ["src"], CF = {
17394
17408
  i.value ? (x(), A("img", {
17395
17409
  key: 0,
17396
17410
  src: d(r),
17397
- width: "160",
17398
- height: "160",
17399
- loading: "lazy",
17400
17411
  style: Ye(e.imageStyle)
17401
17412
  }, null, 12, xF)) : (x(), A("img", {
17402
17413
  key: 1,
17403
17414
  src: s.value,
17404
- width: "160",
17405
- height: "160",
17406
- loading: "lazy",
17407
17415
  alt: "thumbnail loading ...",
17408
17416
  style: Ye(e.imageStyle)
17409
17417
  }, null, 12, _F))
@@ -17451,7 +17459,7 @@ const xF = ["src"], _F = ["src"], CF = {
17451
17459
  }, 8, ["shadow", "body-style", "style"]);
17452
17460
  };
17453
17461
  }
17454
- }, TF = /* @__PURE__ */ Qu(OF, [["__scopeId", "data-v-05c22f49"]]), Oi = (e) => (Io("data-v-e745b327"), e = e(), Po(), e), AF = {
17462
+ }, TF = /* @__PURE__ */ Qu(OF, [["__scopeId", "data-v-cb0c992e"]]), Oi = (e) => (Io("data-v-e745b327"), e = e(), Po(), e), AF = {
17455
17463
  ref: "myButton",
17456
17464
  class: "gallery"
17457
17465
  }, IF = { class: "gallery-strip" }, PF = /* @__PURE__ */ Oi(() => /* @__PURE__ */ j("span", { class: "progress-button" }, "‹", -1)), FF = [
@@ -21131,17 +21139,17 @@ function q9(e, t, n, r, o, a) {
21131
21139
  onClick: (l) => a.openUrl(i.url)
21132
21140
  }, {
21133
21141
  default: W(() => [
21134
- Fe(" Open publications in pubmed ")
21142
+ Fe(" Open publications in PubMed ")
21135
21143
  ]),
21136
21144
  _: 2
21137
21145
  }, 1032, ["icon", "onClick"])) : q("", !0)
21138
21146
  ]))), 128))
21139
21147
  ]);
21140
21148
  }
21141
- const lm = /* @__PURE__ */ Kn(H9, [["render", q9], ["__scopeId", "data-v-3710bb81"]]), W9 = (e) => e.replace(/\w\S*/g, (t) => t.charAt(0).toUpperCase() + t.substr(1).toLowerCase()), K9 = function(e) {
21149
+ const lm = /* @__PURE__ */ Kn(H9, [["render", q9], ["__scopeId", "data-v-e726c314"]]), W9 = (e) => e.replace(/\w\S*/g, (t) => t.charAt(0).toUpperCase() + t.substr(1).toLowerCase()), K9 = function(e) {
21142
21150
  return e ? e.charAt(0).toUpperCase() + e.slice(1) : "";
21143
21151
  }, G9 = {
21144
- name: "ProvenancePopup",
21152
+ name: "ConnectivityInfo",
21145
21153
  components: {
21146
21154
  Button: Fn,
21147
21155
  Container: d5,
@@ -21210,19 +21218,19 @@ const lm = /* @__PURE__ */ Kn(H9, [["render", q9], ["__scopeId", "data-v-3710bb8
21210
21218
  window.open(e, "_blank");
21211
21219
  },
21212
21220
  openAll: function() {
21213
- Ft.emit("onProvenanceActionClick", {
21221
+ Ft.emit("onConnectivityActionClick", {
21214
21222
  type: "Facets",
21215
21223
  labels: this.entry.componentsWithDatasets.map((e) => e.name)
21216
21224
  });
21217
21225
  },
21218
21226
  openAxons: function() {
21219
- Ft.emit("onProvenanceActionClick", {
21227
+ Ft.emit("onConnectivityActionClick", {
21220
21228
  type: "Facets",
21221
21229
  labels: this.entry.destinationsWithDatasets.map((e) => e.name)
21222
21230
  });
21223
21231
  },
21224
21232
  openDendrites: function() {
21225
- Ft.emit("onProvenanceActionClick", {
21233
+ Ft.emit("onConnectivityActionClick", {
21226
21234
  type: "Facets",
21227
21235
  labels: this.entry.originsWithDatasets.map((e) => e.name)
21228
21236
  });
@@ -21231,10 +21239,10 @@ const lm = /* @__PURE__ */ Kn(H9, [["render", q9], ["__scopeId", "data-v-3710bb8
21231
21239
  this.pubmedSearchUrl = e;
21232
21240
  }
21233
21241
  }
21234
- }, jo = (e) => (Io("data-v-d6dd8ad4"), e = e(), Po(), e), J9 = {
21242
+ }, jo = (e) => (Io("data-v-c04b8ef0"), e = e(), Po(), e), J9 = {
21235
21243
  key: 0,
21236
21244
  class: "main"
21237
- }, Z9 = { class: "provenance-info-title" }, Y9 = {
21245
+ }, Z9 = { class: "connectivity-info-title" }, Y9 = {
21238
21246
  key: 0,
21239
21247
  class: "block"
21240
21248
  }, X9 = { class: "title" }, Q9 = {
@@ -21434,7 +21442,7 @@ function _$(e, t, n, r, o, a) {
21434
21442
  [f, e.loading]
21435
21443
  ]) : q("", !0);
21436
21444
  }
21437
- const um = /* @__PURE__ */ Kn(G9, [["render", _$], ["__scopeId", "data-v-d6dd8ad4"]]), C$ = {
21445
+ const um = /* @__PURE__ */ Kn(G9, [["render", _$], ["__scopeId", "data-v-c04b8ef0"]]), C$ = {
21438
21446
  name: "Tabs",
21439
21447
  props: {
21440
21448
  tabTitles: {
@@ -21454,7 +21462,7 @@ const um = /* @__PURE__ */ Kn(G9, [["render", _$], ["__scopeId", "data-v-d6dd8ad
21454
21462
  this.$emit("tab-close", e);
21455
21463
  }
21456
21464
  }
21457
- }, k$ = (e) => (Io("data-v-712d70f1"), e = e(), Po(), e), E$ = { class: "tab-container" }, O$ = ["onClick"], T$ = { class: "title-text" }, A$ = /* @__PURE__ */ k$(() => /* @__PURE__ */ j("span", { class: "visually-hidden" }, "Close", -1));
21465
+ }, k$ = (e) => (Io("data-v-78c45eb4"), e = e(), Po(), e), E$ = { class: "tab-container" }, O$ = ["onClick"], T$ = { class: "title-text" }, A$ = /* @__PURE__ */ k$(() => /* @__PURE__ */ j("span", { class: "visually-hidden" }, "Close", -1));
21458
21466
  function I$(e, t, n, r, o, a) {
21459
21467
  const s = Fn;
21460
21468
  return x(), A("div", E$, [
@@ -21483,7 +21491,7 @@ function I$(e, t, n, r, o, a) {
21483
21491
  ], 2))), 128))
21484
21492
  ]);
21485
21493
  }
21486
- const cm = /* @__PURE__ */ Kn(C$, [["render", I$], ["__scopeId", "data-v-712d70f1"]]), P$ = {
21494
+ const cm = /* @__PURE__ */ Kn(C$, [["render", I$], ["__scopeId", "data-v-78c45eb4"]]), P$ = {
21487
21495
  components: {
21488
21496
  SidebarContent: im,
21489
21497
  Tabs: cm,
@@ -21491,7 +21499,7 @@ const cm = /* @__PURE__ */ Kn(C$, [["render", I$], ["__scopeId", "data-v-712d70f
21491
21499
  ElIconArrowRight: Qs,
21492
21500
  Drawer: Hu,
21493
21501
  Icon: tt,
21494
- ProvenancePopup: um
21502
+ ConnectivityInfo: um
21495
21503
  },
21496
21504
  name: "SideBar",
21497
21505
  props: {
@@ -21538,9 +21546,9 @@ const cm = /* @__PURE__ */ Kn(C$, [["render", I$], ["__scopeId", "data-v-712d70f
21538
21546
  default: !1
21539
21547
  },
21540
21548
  /**
21541
- * The provenance info data to show in sidebar.
21549
+ * The connectivity info data to show in sidebar.
21542
21550
  */
21543
- provenanceEntry: {
21551
+ connectivityInfo: {
21544
21552
  type: Object,
21545
21553
  default: null
21546
21554
  }
@@ -21619,7 +21627,7 @@ const cm = /* @__PURE__ */ Kn(C$, [["render", I$], ["__scopeId", "data-v-712d70f
21619
21627
  this.$emit("tabClicked", e);
21620
21628
  },
21621
21629
  tabClose: function(e) {
21622
- this.$emit("provenance-popup-close");
21630
+ this.$emit("connectivity-info-close");
21623
21631
  }
21624
21632
  },
21625
21633
  created: function() {
@@ -21636,7 +21644,7 @@ const cm = /* @__PURE__ */ Kn(C$, [["render", I$], ["__scopeId", "data-v-712d70f
21636
21644
  this.$emit("contextUpdate", e);
21637
21645
  }), Ft.on("datalink-clicked", (e) => {
21638
21646
  this.$emit("datalink-clicked", e);
21639
- }), Ft.on("onProvenanceActionClick", (e) => {
21647
+ }), Ft.on("onConnectivityActionClick", (e) => {
21640
21648
  this.tabClicked(1), this.$emit("actionClick", e);
21641
21649
  });
21642
21650
  }
@@ -21685,7 +21693,7 @@ function N$(e, t, n, r, o, a) {
21685
21693
  })
21686
21694
  ])) : q("", !0),
21687
21695
  j("div", R$, [
21688
- n.tabs.length > 1 && n.provenanceEntry ? (x(), Q(u, {
21696
+ n.tabs.length > 1 && n.connectivityInfo ? (x(), Q(u, {
21689
21697
  key: 0,
21690
21698
  tabTitles: n.tabs,
21691
21699
  activeId: n.activeId,
@@ -21695,7 +21703,7 @@ function N$(e, t, n, r, o, a) {
21695
21703
  (x(!0), A(Te, null, it(n.tabs, (v) => (x(), A(Te, { key: "tab.id" }, [
21696
21704
  v.id === 2 ? Oe((x(), Q(c, {
21697
21705
  key: 0,
21698
- entry: n.provenanceEntry,
21706
+ entry: n.connectivityInfo,
21699
21707
  ref_for: !0,
21700
21708
  ref: v.id
21701
21709
  }, null, 8, ["entry"])), [
@@ -21720,7 +21728,7 @@ function N$(e, t, n, r, o, a) {
21720
21728
  }, 8, ["modelValue"])
21721
21729
  ], 512);
21722
21730
  }
21723
- const M$ = /* @__PURE__ */ Kn(P$, [["render", N$], ["__scopeId", "data-v-82a36965"]]);
21731
+ const M$ = /* @__PURE__ */ Kn(P$, [["render", N$], ["__scopeId", "data-v-f0a25fc7"]]);
21724
21732
  export {
21725
21733
  M$ as SideBar
21726
21734
  };