@abi-software/map-side-bar 2.3.2-beta.2 → 2.3.2-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 +43 -45
- package/dist/map-side-bar.umd.cjs +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/components/ConnectivityInfo.vue +33 -17
package/dist/map-side-bar.js
CHANGED
|
@@ -31228,7 +31228,7 @@ const l5 = /* @__PURE__ */ Pr(TJ, [["render", IJ], ["__scopeId", "data-v-e726c31
|
|
|
31228
31228
|
<br>`);
|
|
31229
31229
|
}
|
|
31230
31230
|
}
|
|
31231
|
-
}, ka = (e) => (vi("data-v-
|
|
31231
|
+
}, ka = (e) => (vi("data-v-a24ef5e2"), e = e(), gi(), e), PJ = {
|
|
31232
31232
|
key: 0,
|
|
31233
31233
|
class: "main"
|
|
31234
31234
|
}, RJ = { class: "connectivity-info-title" }, BJ = {
|
|
@@ -31240,35 +31240,35 @@ const l5 = /* @__PURE__ */ Pr(TJ, [["render", IJ], ["__scopeId", "data-v-e726c31
|
|
|
31240
31240
|
}, jJ = {
|
|
31241
31241
|
key: 1,
|
|
31242
31242
|
class: "block"
|
|
31243
|
-
}, zJ = { class: "title" }, VJ = /* @__PURE__ */ ka(() => /* @__PURE__ */ M("span", null, " Show connectivity on map ", -1)),
|
|
31243
|
+
}, zJ = { class: "title" }, VJ = { class: "title-buttons" }, HJ = /* @__PURE__ */ ka(() => /* @__PURE__ */ M("span", null, " Show connectivity on map ", -1)), UJ = {
|
|
31244
31244
|
key: 0,
|
|
31245
31245
|
class: "attribute-title-container"
|
|
31246
|
-
},
|
|
31246
|
+
}, qJ = /* @__PURE__ */ ka(() => /* @__PURE__ */ M("span", { class: "attribute-title" }, "Alert", -1)), KJ = { style: { "word-break": "keep-all" } }, WJ = { class: "content-container scrollbar" }, GJ = {
|
|
31247
31247
|
key: 0,
|
|
31248
31248
|
class: "block"
|
|
31249
|
-
},
|
|
31249
|
+
}, JJ = { class: "attribute-title-container" }, ZJ = /* @__PURE__ */ ka(() => /* @__PURE__ */ M("span", { class: "attribute-title" }, "Origin", -1)), YJ = { style: { "word-break": "keep-all" } }, XJ = /* @__PURE__ */ ka(() => /* @__PURE__ */ M("i", null, "Origin", -1)), QJ = ["origin-item-label"], eZ = {
|
|
31250
31250
|
key: 0,
|
|
31251
31251
|
class: "seperator"
|
|
31252
|
-
},
|
|
31252
|
+
}, tZ = {
|
|
31253
31253
|
key: 1,
|
|
31254
31254
|
class: "block"
|
|
31255
|
-
},
|
|
31255
|
+
}, nZ = /* @__PURE__ */ ka(() => /* @__PURE__ */ M("div", { class: "attribute-title-container" }, [
|
|
31256
31256
|
/* @__PURE__ */ M("div", { class: "attribute-title" }, "Components")
|
|
31257
|
-
], -1)),
|
|
31257
|
+
], -1)), rZ = ["component-item-label"], oZ = {
|
|
31258
31258
|
key: 0,
|
|
31259
31259
|
class: "seperator"
|
|
31260
|
-
},
|
|
31260
|
+
}, aZ = {
|
|
31261
31261
|
key: 2,
|
|
31262
31262
|
class: "block"
|
|
31263
|
-
},
|
|
31263
|
+
}, iZ = { class: "attribute-title-container" }, sZ = /* @__PURE__ */ ka(() => /* @__PURE__ */ M("span", { class: "attribute-title" }, "Destination", -1)), lZ = /* @__PURE__ */ ka(() => /* @__PURE__ */ M("span", { style: { "word-break": "keep-all" } }, [
|
|
31264
31264
|
/* @__PURE__ */ M("i", null, "Destination"),
|
|
31265
31265
|
/* @__PURE__ */ He(" is where the axons terminate ")
|
|
31266
|
-
], -1)),
|
|
31266
|
+
], -1)), uZ = ["destination-item-label"], cZ = {
|
|
31267
31267
|
key: 0,
|
|
31268
31268
|
class: "seperator"
|
|
31269
|
-
}
|
|
31269
|
+
};
|
|
31270
31270
|
function dZ(e, t, n, r, o, a) {
|
|
31271
|
-
const i = l5, s = j8, l = Et, u = br, c = up, f =
|
|
31271
|
+
const i = l5, s = j8, l = Et, u = br, c = up, f = Ye("CopyToClipboard"), g = E1, v = Vu;
|
|
31272
31272
|
return n.entry ? Oe((x(), A("div", PJ, [
|
|
31273
31273
|
M("div", RJ, [
|
|
31274
31274
|
M("div", null, [
|
|
@@ -31280,12 +31280,12 @@ function dZ(e, t, n, r, o, a) {
|
|
|
31280
31280
|
])),
|
|
31281
31281
|
ee(i, { resources: a.resources }, null, 8, ["resources"])
|
|
31282
31282
|
]),
|
|
31283
|
-
M("div",
|
|
31283
|
+
M("div", VJ, [
|
|
31284
31284
|
ee(c, {
|
|
31285
|
-
width: "
|
|
31285
|
+
width: "auto",
|
|
31286
31286
|
trigger: "hover",
|
|
31287
31287
|
teleported: !1,
|
|
31288
|
-
"popper-class": "popover-
|
|
31288
|
+
"popper-class": "popover-map-pin"
|
|
31289
31289
|
}, {
|
|
31290
31290
|
reference: z(() => [
|
|
31291
31291
|
ee(u, {
|
|
@@ -31305,14 +31305,15 @@ function dZ(e, t, n, r, o, a) {
|
|
|
31305
31305
|
})
|
|
31306
31306
|
]),
|
|
31307
31307
|
default: z(() => [
|
|
31308
|
-
|
|
31308
|
+
HJ
|
|
31309
31309
|
]),
|
|
31310
31310
|
_: 1
|
|
31311
|
-
})
|
|
31311
|
+
}),
|
|
31312
|
+
ee(f, { content: a.updatedCopyContent }, null, 8, ["content"])
|
|
31312
31313
|
])
|
|
31313
31314
|
]),
|
|
31314
|
-
a.featuresAlert ? (x(), A("div",
|
|
31315
|
-
|
|
31315
|
+
a.featuresAlert ? (x(), A("div", UJ, [
|
|
31316
|
+
qJ,
|
|
31316
31317
|
ee(c, {
|
|
31317
31318
|
width: "250",
|
|
31318
31319
|
trigger: "hover",
|
|
@@ -31322,22 +31323,22 @@ function dZ(e, t, n, r, o, a) {
|
|
|
31322
31323
|
reference: z(() => [
|
|
31323
31324
|
ee(l, { class: "info" }, {
|
|
31324
31325
|
default: z(() => [
|
|
31325
|
-
ee(
|
|
31326
|
+
ee(g)
|
|
31326
31327
|
]),
|
|
31327
31328
|
_: 1
|
|
31328
31329
|
})
|
|
31329
31330
|
]),
|
|
31330
31331
|
default: z(() => [
|
|
31331
|
-
M("span",
|
|
31332
|
+
M("span", KJ, pe(a.featuresAlert), 1)
|
|
31332
31333
|
]),
|
|
31333
31334
|
_: 1
|
|
31334
31335
|
})
|
|
31335
31336
|
])) : j("", !0),
|
|
31336
|
-
M("div",
|
|
31337
|
+
M("div", WJ, [
|
|
31337
31338
|
He(pe(n.entry.paths) + " ", 1),
|
|
31338
|
-
n.entry.origins && n.entry.origins.length > 0 ? (x(), A("div",
|
|
31339
|
-
M("div",
|
|
31340
|
-
|
|
31339
|
+
n.entry.origins && n.entry.origins.length > 0 ? (x(), A("div", GJ, [
|
|
31340
|
+
M("div", JJ, [
|
|
31341
|
+
ZJ,
|
|
31341
31342
|
ee(c, {
|
|
31342
31343
|
width: "250",
|
|
31343
31344
|
trigger: "hover",
|
|
@@ -31347,14 +31348,14 @@ function dZ(e, t, n, r, o, a) {
|
|
|
31347
31348
|
reference: z(() => [
|
|
31348
31349
|
ee(l, { class: "info" }, {
|
|
31349
31350
|
default: z(() => [
|
|
31350
|
-
ee(
|
|
31351
|
+
ee(g)
|
|
31351
31352
|
]),
|
|
31352
31353
|
_: 1
|
|
31353
31354
|
})
|
|
31354
31355
|
]),
|
|
31355
31356
|
default: z(() => [
|
|
31356
|
-
M("span",
|
|
31357
|
-
|
|
31357
|
+
M("span", YJ, [
|
|
31358
|
+
XJ,
|
|
31358
31359
|
He(" " + pe(a.originDescription), 1)
|
|
31359
31360
|
])
|
|
31360
31361
|
]),
|
|
@@ -31367,8 +31368,8 @@ function dZ(e, t, n, r, o, a) {
|
|
|
31367
31368
|
key: p
|
|
31368
31369
|
}, [
|
|
31369
31370
|
He(pe(a.capitalise(p)) + " ", 1),
|
|
31370
|
-
h != n.entry.origins.length - 1 ? (x(), A("div",
|
|
31371
|
-
], 8,
|
|
31371
|
+
h != n.entry.origins.length - 1 ? (x(), A("div", eZ)) : j("", !0)
|
|
31372
|
+
], 8, QJ))), 128)),
|
|
31372
31373
|
Oe(ee(u, {
|
|
31373
31374
|
class: "button",
|
|
31374
31375
|
id: "open-dendrites-button",
|
|
@@ -31385,20 +31386,20 @@ function dZ(e, t, n, r, o, a) {
|
|
|
31385
31386
|
]
|
|
31386
31387
|
])
|
|
31387
31388
|
])) : j("", !0),
|
|
31388
|
-
n.entry.components && n.entry.components.length > 0 ? (x(), A("div",
|
|
31389
|
-
|
|
31389
|
+
n.entry.components && n.entry.components.length > 0 ? (x(), A("div", tZ, [
|
|
31390
|
+
nZ,
|
|
31390
31391
|
(x(!0), A(Ae, null, gt(n.entry.components, (p, h) => (x(), A("div", {
|
|
31391
31392
|
class: "attribute-content",
|
|
31392
31393
|
"component-item-label": p,
|
|
31393
31394
|
key: p
|
|
31394
31395
|
}, [
|
|
31395
31396
|
He(pe(a.capitalise(p)) + " ", 1),
|
|
31396
|
-
h != n.entry.components.length - 1 ? (x(), A("div",
|
|
31397
|
-
], 8,
|
|
31397
|
+
h != n.entry.components.length - 1 ? (x(), A("div", oZ)) : j("", !0)
|
|
31398
|
+
], 8, rZ))), 128))
|
|
31398
31399
|
])) : j("", !0),
|
|
31399
|
-
n.entry.destinations && n.entry.destinations.length > 0 ? (x(), A("div",
|
|
31400
|
-
M("div",
|
|
31401
|
-
|
|
31400
|
+
n.entry.destinations && n.entry.destinations.length > 0 ? (x(), A("div", aZ, [
|
|
31401
|
+
M("div", iZ, [
|
|
31402
|
+
sZ,
|
|
31402
31403
|
ee(c, {
|
|
31403
31404
|
width: "250",
|
|
31404
31405
|
trigger: "hover",
|
|
@@ -31408,13 +31409,13 @@ function dZ(e, t, n, r, o, a) {
|
|
|
31408
31409
|
reference: z(() => [
|
|
31409
31410
|
ee(l, { class: "info" }, {
|
|
31410
31411
|
default: z(() => [
|
|
31411
|
-
ee(
|
|
31412
|
+
ee(g)
|
|
31412
31413
|
]),
|
|
31413
31414
|
_: 1
|
|
31414
31415
|
})
|
|
31415
31416
|
]),
|
|
31416
31417
|
default: z(() => [
|
|
31417
|
-
|
|
31418
|
+
lZ
|
|
31418
31419
|
]),
|
|
31419
31420
|
_: 1
|
|
31420
31421
|
})
|
|
@@ -31425,8 +31426,8 @@ function dZ(e, t, n, r, o, a) {
|
|
|
31425
31426
|
key: p
|
|
31426
31427
|
}, [
|
|
31427
31428
|
He(pe(a.capitalise(p)) + " ", 1),
|
|
31428
|
-
h != n.entry.destinations.length - 1 ? (x(), A("div",
|
|
31429
|
-
], 8,
|
|
31429
|
+
h != n.entry.destinations.length - 1 ? (x(), A("div", cZ)) : j("", !0)
|
|
31430
|
+
], 8, uZ))), 128)),
|
|
31430
31431
|
Oe(ee(u, {
|
|
31431
31432
|
class: "button",
|
|
31432
31433
|
onClick: a.openAxons
|
|
@@ -31456,15 +31457,12 @@ function dZ(e, t, n, r, o, a) {
|
|
|
31456
31457
|
n.entry.componentsWithDatasets && n.entry.componentsWithDatasets.length > 0 && a.shouldShowExploreButton(n.entry.componentsWithDatasets)
|
|
31457
31458
|
]
|
|
31458
31459
|
])
|
|
31459
|
-
]),
|
|
31460
|
-
M("div", cZ, [
|
|
31461
|
-
ee(g, { content: a.updatedCopyContent }, null, 8, ["content"])
|
|
31462
31460
|
])
|
|
31463
31461
|
])), [
|
|
31464
31462
|
[v, e.loading]
|
|
31465
31463
|
]) : j("", !0);
|
|
31466
31464
|
}
|
|
31467
|
-
const u5 = /* @__PURE__ */ Pr(LJ, [["render", dZ], ["__scopeId", "data-v-
|
|
31465
|
+
const u5 = /* @__PURE__ */ Pr(LJ, [["render", dZ], ["__scopeId", "data-v-a24ef5e2"]]), fZ = {
|
|
31468
31466
|
name: "Tabs",
|
|
31469
31467
|
props: {
|
|
31470
31468
|
tabTitles: {
|
|
@@ -901,4 +901,4 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`),{initialZIndex:r,curr
|
|
|
901
901
|
`);s+=`
|
|
902
902
|
`,s+=`<ul>${l}</ul>`,e.push(s)}return e.join(`
|
|
903
903
|
|
|
904
|
-
<br>`)}}},Ar=e=>(n.pushScopeId("data-v-f39a40b5"),e=e(),n.popScopeId(),e),RW={key:0,class:"main"},LW={class:"connectivity-info-title"},PW={key:0,class:"block"},VW={class:"title"},MW={key:0,class:"subtitle"},DW={key:1,class:"block"},zW={class:"title"},jW=Ar(()=>n.createElementVNode("span",null," Show connectivity on map ",-1)),HW={key:0,class:"attribute-title-container"},UW=Ar(()=>n.createElementVNode("span",{class:"attribute-title"},"Alert",-1)),qW={style:{"word-break":"keep-all"}},KW={class:"content-container scrollbar"},WW={key:0,class:"block"},GW={class:"attribute-title-container"},JW=Ar(()=>n.createElementVNode("span",{class:"attribute-title"},"Origin",-1)),ZW={style:{"word-break":"keep-all"}},YW=Ar(()=>n.createElementVNode("i",null,"Origin",-1)),XW=["origin-item-label"],QW={key:0,class:"seperator"},eG={key:1,class:"block"},tG=Ar(()=>n.createElementVNode("div",{class:"attribute-title-container"},[n.createElementVNode("div",{class:"attribute-title"},"Components")],-1)),nG=["component-item-label"],oG={key:0,class:"seperator"},rG={key:2,class:"block"},aG={class:"attribute-title-container"},iG=Ar(()=>n.createElementVNode("span",{class:"attribute-title"},"Destination",-1)),sG=Ar(()=>n.createElementVNode("span",{style:{"word-break":"keep-all"}},[n.createElementVNode("i",null,"Destination"),n.createTextVNode(" is where the axons terminate ")],-1)),lG=["destination-item-label"],cG={key:0,class:"seperator"},dG={class:"float-button-container"};function uG(e,t,o,r,a,i){const s=Gk,l=c4,c=Ye,d=On,u=Md,f=Gh,g=n.resolveComponent("CopyToClipboard"),m=tl;return o.entry?n.withDirectives((n.openBlock(),n.createElementBlock("div",RW,[n.createElementVNode("div",LW,[n.createElementVNode("div",null,[o.entry.title?(n.openBlock(),n.createElementBlock("div",PW,[n.createElementVNode("div",VW,n.toDisplayString(i.capitalise(o.entry.title)),1),o.entry.provenanceTaxonomyLabel&&o.entry.provenanceTaxonomyLabel.length>0?(n.openBlock(),n.createElementBlock("div",MW,n.toDisplayString(i.provSpeciesDescription),1)):n.createCommentVNode("",!0)])):(n.openBlock(),n.createElementBlock("div",DW,[n.createElementVNode("div",zW,n.toDisplayString(o.entry.featureId),1)])),n.createVNode(s,{resources:i.resources},null,8,["resources"])]),n.createElementVNode("div",null,[n.createVNode(u,{width:"200",trigger:"hover",teleported:!1,"popper-class":"popover-origin-help"},{reference:n.withCtx(()=>[n.createVNode(d,{class:"button-circle",circle:"",onClick:t[0]||(t[0]=p=>i.showConnectivity(o.entry))},{default:n.withCtx(()=>[n.createVNode(c,{color:"white"},{default:n.withCtx(()=>[n.createVNode(l)]),_:1})]),_:1})]),default:n.withCtx(()=>[jW]),_:1})])]),i.featuresAlert?(n.openBlock(),n.createElementBlock("div",HW,[UW,n.createVNode(u,{width:"250",trigger:"hover",teleported:!1,"popper-class":"popover-origin-help"},{reference:n.withCtx(()=>[n.createVNode(c,{class:"info"},{default:n.withCtx(()=>[n.createVNode(f)]),_:1})]),default:n.withCtx(()=>[n.createElementVNode("span",qW,n.toDisplayString(i.featuresAlert),1)]),_:1})])):n.createCommentVNode("",!0),n.createElementVNode("div",KW,[n.createTextVNode(n.toDisplayString(o.entry.paths)+" ",1),o.entry.origins&&o.entry.origins.length>0?(n.openBlock(),n.createElementBlock("div",WW,[n.createElementVNode("div",GW,[JW,n.createVNode(u,{width:"250",trigger:"hover",teleported:!1,"popper-class":"popover-origin-help"},{reference:n.withCtx(()=>[n.createVNode(c,{class:"info"},{default:n.withCtx(()=>[n.createVNode(f)]),_:1})]),default:n.withCtx(()=>[n.createElementVNode("span",ZW,[YW,n.createTextVNode(" "+n.toDisplayString(i.originDescription),1)])]),_:1})]),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(o.entry.origins,(p,h)=>(n.openBlock(),n.createElementBlock("div",{class:"attribute-content","origin-item-label":p,key:p},[n.createTextVNode(n.toDisplayString(i.capitalise(p))+" ",1),h!=o.entry.origins.length-1?(n.openBlock(),n.createElementBlock("div",QW)):n.createCommentVNode("",!0)],8,XW))),128)),n.withDirectives(n.createVNode(d,{class:"button",id:"open-dendrites-button",onClick:i.openDendrites},{default:n.withCtx(()=>[n.createTextVNode(" Explore origin data ")]),_:1},8,["onClick"]),[[n.vShow,o.entry.originsWithDatasets&&o.entry.originsWithDatasets.length>0&&i.shouldShowExploreButton(o.entry.originsWithDatasets)]])])):n.createCommentVNode("",!0),o.entry.components&&o.entry.components.length>0?(n.openBlock(),n.createElementBlock("div",eG,[tG,(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(o.entry.components,(p,h)=>(n.openBlock(),n.createElementBlock("div",{class:"attribute-content","component-item-label":p,key:p},[n.createTextVNode(n.toDisplayString(i.capitalise(p))+" ",1),h!=o.entry.components.length-1?(n.openBlock(),n.createElementBlock("div",oG)):n.createCommentVNode("",!0)],8,nG))),128))])):n.createCommentVNode("",!0),o.entry.destinations&&o.entry.destinations.length>0?(n.openBlock(),n.createElementBlock("div",rG,[n.createElementVNode("div",aG,[iG,n.createVNode(u,{width:"250",trigger:"hover",teleported:!1,"popper-class":"popover-origin-help"},{reference:n.withCtx(()=>[n.createVNode(c,{class:"info"},{default:n.withCtx(()=>[n.createVNode(f)]),_:1})]),default:n.withCtx(()=>[sG]),_:1})]),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(o.entry.destinations,(p,h)=>(n.openBlock(),n.createElementBlock("div",{class:"attribute-content","destination-item-label":p,key:p},[n.createTextVNode(n.toDisplayString(i.capitalise(p))+" ",1),h!=o.entry.destinations.length-1?(n.openBlock(),n.createElementBlock("div",cG)):n.createCommentVNode("",!0)],8,lG))),128)),n.withDirectives(n.createVNode(d,{class:"button",onClick:i.openAxons},{default:n.withCtx(()=>[n.createTextVNode(" Explore destination data ")]),_:1},8,["onClick"]),[[n.vShow,o.entry.destinationsWithDatasets&&o.entry.destinationsWithDatasets.length>0&&i.shouldShowExploreButton(o.entry.destinationsWithDatasets)]])])):n.createCommentVNode("",!0),n.withDirectives(n.createVNode(d,{class:"button",onClick:i.openAll},{default:n.withCtx(()=>[n.createTextVNode(" Search for data on components ")]),_:1},8,["onClick"]),[[n.vShow,o.entry.componentsWithDatasets&&o.entry.componentsWithDatasets.length>0&&i.shouldShowExploreButton(o.entry.componentsWithDatasets)]])]),n.createElementVNode("div",dG,[n.createVNode(g,{content:i.updatedCopyContent},null,8,["content"])])])),[[m,e.loading]]):n.createCommentVNode("",!0)}const Jk=qn(IW,[["render",uG],["__scopeId","data-v-f39a40b5"]]),fG={name:"Tabs",props:{tabTitles:{type:Array,default:()=>[]},activeId:{type:Number,default:1}},methods:{titleClicked:function(e,t){this.$emit("titleClicked",{id:e,type:t})},tabClose:function(e){this.$emit("tab-close",e)}}},pG=e=>(n.pushScopeId("data-v-a569bcfd"),e=e(),n.popScopeId(),e),hG={class:"tab-container"},mG=["onClick"],gG={class:"title-text"},yG=pG(()=>n.createElementVNode("span",{class:"visually-hidden"},"Close",-1));function bG(e,t,o,r,a,i){const s=On;return n.openBlock(),n.createElementBlock("div",hG,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(o.tabTitles,l=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["title",{"active-tab":l.id==o.activeId}]),key:l.id},[n.createElementVNode("div",{class:n.normalizeClass(["title-text-table",{highlightText:l.id==o.activeId}]),onClick:c=>i.titleClicked(l.id,l.type)},[n.createElementVNode("div",gG,n.toDisplayString(l.title),1)],10,mG),l.id===2?(n.openBlock(),n.createBlock(s,{key:0,onClick:c=>i.tabClose(l.id),class:"button-tab-close","aria-label":"Close"},{default:n.withCtx(()=>[n.createTextVNode(" × "),yG]),_:2},1032,["onClick"])):n.createCommentVNode("",!0)],2))),128))])}const Zk=qn(fG,[["render",bG],["__scopeId","data-v-a569bcfd"]]),wG={components:{SidebarContent:Wk,Tabs:Zk,ElIconArrowLeft:td,ElIconArrowRight:$s,Drawer:Rd,Icon:Ye,ConnectivityInfo:Jk},name:"SideBar",props:{visible:{type:Boolean,default:!1},envVars:{type:Object,default:()=>{}},tabs:{type:Array,default:()=>[{id:1,title:"Search",type:"search"},{id:2,title:"Connectivity",type:"connectivity"}]},activeTabId:{type:Number,default:1},openAtStart:{type:Boolean,default:!1},connectivityInfo:{type:Object,default:null}},data:function(){return{drawerOpen:!1,availableAnatomyFacets:[]}},methods:{hoverChanged:function(e){this.$emit("hover-changed",e)},showConnectivity:function(e){this.$emit("show-connectivity",e)},searchChanged:function(e,t){this.$emit("search-changed",{...t,id:e})},close:function(){this.drawerOpen=!1},toggleDrawer:function(){this.drawerOpen=!this.drawerOpen},openSearch:function(e,t){this.drawerOpen=!0,this.$nextTick(()=>{this.getSearchTabRefById(1).openSearch(e,t)})},getTabByIdAndType:function(e,t){const o=e||this.activeTabId,r=t||"search",a=this.tabs.find(s=>s.id===o&&s.type===r),i=this.tabs[0];return a||i},getTabRefId:function(e,t){let o="searchTab_";t==="connectivity"&&(o="connectivityTab_");const r=this.getTabByIdAndType(e,t);return o+r.id},getSearchTabRefById:function(e){const t=e||1,o=this.getTabRefId(t,"search");return this.$refs[o][0]},addFilter:function(e){this.drawerOpen=!0,e.AND=!0,this.$nextTick(()=>{this.getSearchTabRefById(1).addFilter(e)})},openNeuronSearch:function(e){this.drawerOpen=!0,this.$nextTick(()=>{this.getSearchTabRefById(1).openSearch("",void 0,"scicrunch-query-string/",{field:"*organ.curie",curie:e})})},getAlgoliaFacets:async function(){return await this.getSearchTabRefById(1).getAlgoliaFacets()},setDrawerOpen:function(e=!0){this.drawerOpen=e},tabClicked:function({id:e,type:t}){this.$emit("tabClicked",{id:e,type:t})},tabClose:function(e){this.$emit("connectivity-info-close")}},created:function(){this.drawerOpen=this.openAtStart},mounted:function(){ut.on("PopoverActionClick",e=>{this.$emit("actionClick",e)}),ut.on("number-of-datasets-for-anatomies",e=>{this.$emit("number-of-datasets-for-anatomies",e)}),ut.on("anatomy-in-datasets",e=>{this.$emit("anatomy-in-datasets",e)}),ut.on("contextUpdate",e=>{this.$emit("contextUpdate",e)}),ut.on("datalink-clicked",e=>{this.$emit("datalink-clicked",e)}),ut.on("onConnectivityActionClick",e=>{this.tabClicked({id:1,type:"search"}),this.$emit("actionClick",e)}),ut.on("available-facets",e=>{this.availableAnatomyFacets=e.find(t=>t.label==="Anatomical Structure").children})}},kG={ref:"container"},CG={class:"box-card"},vG={class:"sidebar-container"};function xG(e,t,o,r,a,i){const s=td,l=Ye,c=$s,d=Zk,u=Jk,f=Wk,g=Rd;return n.openBlock(),n.createElementBlock("div",kG,[e.drawerOpen?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock("div",{key:0,onClick:t[0]||(t[0]=(...m)=>i.toggleDrawer&&i.toggleDrawer(...m)),class:"open-tab"},[n.createVNode(l,null,{default:n.withCtx(()=>[n.createVNode(s)]),_:1})])),n.createVNode(g,{class:"side-bar my-drawer",modelValue:e.drawerOpen,"onUpdate:modelValue":t[3]||(t[3]=m=>e.drawerOpen=m),teleported:!1,"modal-append-to-body":!1,size:"584","with-header":!1,wrapperClosable:!1,modal:!1,"modal-class":"sidebar-body","z-index":10,"lock-scroll":!1},{default:n.withCtx(()=>[n.createElementVNode("div",CG,[e.drawerOpen?(n.openBlock(),n.createElementBlock("div",{key:0,onClick:t[1]||(t[1]=(...m)=>i.close&&i.close(...m)),class:"close-tab"},[n.createVNode(l,null,{default:n.withCtx(()=>[n.createVNode(c)]),_:1})])):n.createCommentVNode("",!0),n.createElementVNode("div",vG,[o.tabs.length>1&&o.connectivityInfo?(n.openBlock(),n.createBlock(d,{key:0,tabTitles:o.tabs,activeId:o.activeTabId,onTitleClicked:i.tabClicked,onTabClose:i.tabClose},null,8,["tabTitles","activeId","onTitleClicked","onTabClose"])):n.createCommentVNode("",!0),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(o.tabs,m=>(n.openBlock(),n.createElementBlock(n.Fragment,{key:"tab.id"},[m.type==="connectivity"?n.withDirectives((n.openBlock(),n.createBlock(u,{key:0,entry:o.connectivityInfo,availableAnatomyFacets:e.availableAnatomyFacets,ref_for:!0,ref:"connectivityTab_"+m.id,onShowConnectivity:i.showConnectivity},null,8,["entry","availableAnatomyFacets","onShowConnectivity"])),[[n.vShow,m.id===o.activeTabId]]):n.withDirectives((n.openBlock(),n.createBlock(f,{key:1,class:"sidebar-content-container",contextCardEntry:m.contextCard,envVars:o.envVars,ref_for:!0,ref:"searchTab_"+m.id,onSearchChanged:p=>i.searchChanged(m.id,p),onHoverChanged:t[2]||(t[2]=p=>i.hoverChanged(p))},null,8,["contextCardEntry","envVars","onSearchChanged"])),[[n.vShow,m.id===o.activeTabId]])],64))),128))])])]),_:1},8,["modelValue"])],512)}const SG=qn(wG,[["render",xG],["__scopeId","data-v-4d616bd4"]]);ze.SideBar=SG,Object.defineProperty(ze,Symbol.toStringTag,{value:"Module"})});
|
|
904
|
+
<br>`)}}},Ar=e=>(n.pushScopeId("data-v-a24ef5e2"),e=e(),n.popScopeId(),e),RW={key:0,class:"main"},LW={class:"connectivity-info-title"},PW={key:0,class:"block"},VW={class:"title"},MW={key:0,class:"subtitle"},DW={key:1,class:"block"},zW={class:"title"},jW={class:"title-buttons"},HW=Ar(()=>n.createElementVNode("span",null," Show connectivity on map ",-1)),UW={key:0,class:"attribute-title-container"},qW=Ar(()=>n.createElementVNode("span",{class:"attribute-title"},"Alert",-1)),KW={style:{"word-break":"keep-all"}},WW={class:"content-container scrollbar"},GW={key:0,class:"block"},JW={class:"attribute-title-container"},ZW=Ar(()=>n.createElementVNode("span",{class:"attribute-title"},"Origin",-1)),YW={style:{"word-break":"keep-all"}},XW=Ar(()=>n.createElementVNode("i",null,"Origin",-1)),QW=["origin-item-label"],eG={key:0,class:"seperator"},tG={key:1,class:"block"},nG=Ar(()=>n.createElementVNode("div",{class:"attribute-title-container"},[n.createElementVNode("div",{class:"attribute-title"},"Components")],-1)),oG=["component-item-label"],rG={key:0,class:"seperator"},aG={key:2,class:"block"},iG={class:"attribute-title-container"},sG=Ar(()=>n.createElementVNode("span",{class:"attribute-title"},"Destination",-1)),lG=Ar(()=>n.createElementVNode("span",{style:{"word-break":"keep-all"}},[n.createElementVNode("i",null,"Destination"),n.createTextVNode(" is where the axons terminate ")],-1)),cG=["destination-item-label"],dG={key:0,class:"seperator"};function uG(e,t,o,r,a,i){const s=Gk,l=c4,c=Ye,d=On,u=Md,f=n.resolveComponent("CopyToClipboard"),g=Gh,m=tl;return o.entry?n.withDirectives((n.openBlock(),n.createElementBlock("div",RW,[n.createElementVNode("div",LW,[n.createElementVNode("div",null,[o.entry.title?(n.openBlock(),n.createElementBlock("div",PW,[n.createElementVNode("div",VW,n.toDisplayString(i.capitalise(o.entry.title)),1),o.entry.provenanceTaxonomyLabel&&o.entry.provenanceTaxonomyLabel.length>0?(n.openBlock(),n.createElementBlock("div",MW,n.toDisplayString(i.provSpeciesDescription),1)):n.createCommentVNode("",!0)])):(n.openBlock(),n.createElementBlock("div",DW,[n.createElementVNode("div",zW,n.toDisplayString(o.entry.featureId),1)])),n.createVNode(s,{resources:i.resources},null,8,["resources"])]),n.createElementVNode("div",jW,[n.createVNode(u,{width:"auto",trigger:"hover",teleported:!1,"popper-class":"popover-map-pin"},{reference:n.withCtx(()=>[n.createVNode(d,{class:"button-circle",circle:"",onClick:t[0]||(t[0]=p=>i.showConnectivity(o.entry))},{default:n.withCtx(()=>[n.createVNode(c,{color:"white"},{default:n.withCtx(()=>[n.createVNode(l)]),_:1})]),_:1})]),default:n.withCtx(()=>[HW]),_:1}),n.createVNode(f,{content:i.updatedCopyContent},null,8,["content"])])]),i.featuresAlert?(n.openBlock(),n.createElementBlock("div",UW,[qW,n.createVNode(u,{width:"250",trigger:"hover",teleported:!1,"popper-class":"popover-origin-help"},{reference:n.withCtx(()=>[n.createVNode(c,{class:"info"},{default:n.withCtx(()=>[n.createVNode(g)]),_:1})]),default:n.withCtx(()=>[n.createElementVNode("span",KW,n.toDisplayString(i.featuresAlert),1)]),_:1})])):n.createCommentVNode("",!0),n.createElementVNode("div",WW,[n.createTextVNode(n.toDisplayString(o.entry.paths)+" ",1),o.entry.origins&&o.entry.origins.length>0?(n.openBlock(),n.createElementBlock("div",GW,[n.createElementVNode("div",JW,[ZW,n.createVNode(u,{width:"250",trigger:"hover",teleported:!1,"popper-class":"popover-origin-help"},{reference:n.withCtx(()=>[n.createVNode(c,{class:"info"},{default:n.withCtx(()=>[n.createVNode(g)]),_:1})]),default:n.withCtx(()=>[n.createElementVNode("span",YW,[XW,n.createTextVNode(" "+n.toDisplayString(i.originDescription),1)])]),_:1})]),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(o.entry.origins,(p,h)=>(n.openBlock(),n.createElementBlock("div",{class:"attribute-content","origin-item-label":p,key:p},[n.createTextVNode(n.toDisplayString(i.capitalise(p))+" ",1),h!=o.entry.origins.length-1?(n.openBlock(),n.createElementBlock("div",eG)):n.createCommentVNode("",!0)],8,QW))),128)),n.withDirectives(n.createVNode(d,{class:"button",id:"open-dendrites-button",onClick:i.openDendrites},{default:n.withCtx(()=>[n.createTextVNode(" Explore origin data ")]),_:1},8,["onClick"]),[[n.vShow,o.entry.originsWithDatasets&&o.entry.originsWithDatasets.length>0&&i.shouldShowExploreButton(o.entry.originsWithDatasets)]])])):n.createCommentVNode("",!0),o.entry.components&&o.entry.components.length>0?(n.openBlock(),n.createElementBlock("div",tG,[nG,(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(o.entry.components,(p,h)=>(n.openBlock(),n.createElementBlock("div",{class:"attribute-content","component-item-label":p,key:p},[n.createTextVNode(n.toDisplayString(i.capitalise(p))+" ",1),h!=o.entry.components.length-1?(n.openBlock(),n.createElementBlock("div",rG)):n.createCommentVNode("",!0)],8,oG))),128))])):n.createCommentVNode("",!0),o.entry.destinations&&o.entry.destinations.length>0?(n.openBlock(),n.createElementBlock("div",aG,[n.createElementVNode("div",iG,[sG,n.createVNode(u,{width:"250",trigger:"hover",teleported:!1,"popper-class":"popover-origin-help"},{reference:n.withCtx(()=>[n.createVNode(c,{class:"info"},{default:n.withCtx(()=>[n.createVNode(g)]),_:1})]),default:n.withCtx(()=>[lG]),_:1})]),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(o.entry.destinations,(p,h)=>(n.openBlock(),n.createElementBlock("div",{class:"attribute-content","destination-item-label":p,key:p},[n.createTextVNode(n.toDisplayString(i.capitalise(p))+" ",1),h!=o.entry.destinations.length-1?(n.openBlock(),n.createElementBlock("div",dG)):n.createCommentVNode("",!0)],8,cG))),128)),n.withDirectives(n.createVNode(d,{class:"button",onClick:i.openAxons},{default:n.withCtx(()=>[n.createTextVNode(" Explore destination data ")]),_:1},8,["onClick"]),[[n.vShow,o.entry.destinationsWithDatasets&&o.entry.destinationsWithDatasets.length>0&&i.shouldShowExploreButton(o.entry.destinationsWithDatasets)]])])):n.createCommentVNode("",!0),n.withDirectives(n.createVNode(d,{class:"button",onClick:i.openAll},{default:n.withCtx(()=>[n.createTextVNode(" Search for data on components ")]),_:1},8,["onClick"]),[[n.vShow,o.entry.componentsWithDatasets&&o.entry.componentsWithDatasets.length>0&&i.shouldShowExploreButton(o.entry.componentsWithDatasets)]])])])),[[m,e.loading]]):n.createCommentVNode("",!0)}const Jk=qn(IW,[["render",uG],["__scopeId","data-v-a24ef5e2"]]),fG={name:"Tabs",props:{tabTitles:{type:Array,default:()=>[]},activeId:{type:Number,default:1}},methods:{titleClicked:function(e,t){this.$emit("titleClicked",{id:e,type:t})},tabClose:function(e){this.$emit("tab-close",e)}}},pG=e=>(n.pushScopeId("data-v-a569bcfd"),e=e(),n.popScopeId(),e),hG={class:"tab-container"},mG=["onClick"],gG={class:"title-text"},yG=pG(()=>n.createElementVNode("span",{class:"visually-hidden"},"Close",-1));function bG(e,t,o,r,a,i){const s=On;return n.openBlock(),n.createElementBlock("div",hG,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(o.tabTitles,l=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["title",{"active-tab":l.id==o.activeId}]),key:l.id},[n.createElementVNode("div",{class:n.normalizeClass(["title-text-table",{highlightText:l.id==o.activeId}]),onClick:c=>i.titleClicked(l.id,l.type)},[n.createElementVNode("div",gG,n.toDisplayString(l.title),1)],10,mG),l.id===2?(n.openBlock(),n.createBlock(s,{key:0,onClick:c=>i.tabClose(l.id),class:"button-tab-close","aria-label":"Close"},{default:n.withCtx(()=>[n.createTextVNode(" × "),yG]),_:2},1032,["onClick"])):n.createCommentVNode("",!0)],2))),128))])}const Zk=qn(fG,[["render",bG],["__scopeId","data-v-a569bcfd"]]),wG={components:{SidebarContent:Wk,Tabs:Zk,ElIconArrowLeft:td,ElIconArrowRight:$s,Drawer:Rd,Icon:Ye,ConnectivityInfo:Jk},name:"SideBar",props:{visible:{type:Boolean,default:!1},envVars:{type:Object,default:()=>{}},tabs:{type:Array,default:()=>[{id:1,title:"Search",type:"search"},{id:2,title:"Connectivity",type:"connectivity"}]},activeTabId:{type:Number,default:1},openAtStart:{type:Boolean,default:!1},connectivityInfo:{type:Object,default:null}},data:function(){return{drawerOpen:!1,availableAnatomyFacets:[]}},methods:{hoverChanged:function(e){this.$emit("hover-changed",e)},showConnectivity:function(e){this.$emit("show-connectivity",e)},searchChanged:function(e,t){this.$emit("search-changed",{...t,id:e})},close:function(){this.drawerOpen=!1},toggleDrawer:function(){this.drawerOpen=!this.drawerOpen},openSearch:function(e,t){this.drawerOpen=!0,this.$nextTick(()=>{this.getSearchTabRefById(1).openSearch(e,t)})},getTabByIdAndType:function(e,t){const o=e||this.activeTabId,r=t||"search",a=this.tabs.find(s=>s.id===o&&s.type===r),i=this.tabs[0];return a||i},getTabRefId:function(e,t){let o="searchTab_";t==="connectivity"&&(o="connectivityTab_");const r=this.getTabByIdAndType(e,t);return o+r.id},getSearchTabRefById:function(e){const t=e||1,o=this.getTabRefId(t,"search");return this.$refs[o][0]},addFilter:function(e){this.drawerOpen=!0,e.AND=!0,this.$nextTick(()=>{this.getSearchTabRefById(1).addFilter(e)})},openNeuronSearch:function(e){this.drawerOpen=!0,this.$nextTick(()=>{this.getSearchTabRefById(1).openSearch("",void 0,"scicrunch-query-string/",{field:"*organ.curie",curie:e})})},getAlgoliaFacets:async function(){return await this.getSearchTabRefById(1).getAlgoliaFacets()},setDrawerOpen:function(e=!0){this.drawerOpen=e},tabClicked:function({id:e,type:t}){this.$emit("tabClicked",{id:e,type:t})},tabClose:function(e){this.$emit("connectivity-info-close")}},created:function(){this.drawerOpen=this.openAtStart},mounted:function(){ut.on("PopoverActionClick",e=>{this.$emit("actionClick",e)}),ut.on("number-of-datasets-for-anatomies",e=>{this.$emit("number-of-datasets-for-anatomies",e)}),ut.on("anatomy-in-datasets",e=>{this.$emit("anatomy-in-datasets",e)}),ut.on("contextUpdate",e=>{this.$emit("contextUpdate",e)}),ut.on("datalink-clicked",e=>{this.$emit("datalink-clicked",e)}),ut.on("onConnectivityActionClick",e=>{this.tabClicked({id:1,type:"search"}),this.$emit("actionClick",e)}),ut.on("available-facets",e=>{this.availableAnatomyFacets=e.find(t=>t.label==="Anatomical Structure").children})}},kG={ref:"container"},CG={class:"box-card"},vG={class:"sidebar-container"};function xG(e,t,o,r,a,i){const s=td,l=Ye,c=$s,d=Zk,u=Jk,f=Wk,g=Rd;return n.openBlock(),n.createElementBlock("div",kG,[e.drawerOpen?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock("div",{key:0,onClick:t[0]||(t[0]=(...m)=>i.toggleDrawer&&i.toggleDrawer(...m)),class:"open-tab"},[n.createVNode(l,null,{default:n.withCtx(()=>[n.createVNode(s)]),_:1})])),n.createVNode(g,{class:"side-bar my-drawer",modelValue:e.drawerOpen,"onUpdate:modelValue":t[3]||(t[3]=m=>e.drawerOpen=m),teleported:!1,"modal-append-to-body":!1,size:"584","with-header":!1,wrapperClosable:!1,modal:!1,"modal-class":"sidebar-body","z-index":10,"lock-scroll":!1},{default:n.withCtx(()=>[n.createElementVNode("div",CG,[e.drawerOpen?(n.openBlock(),n.createElementBlock("div",{key:0,onClick:t[1]||(t[1]=(...m)=>i.close&&i.close(...m)),class:"close-tab"},[n.createVNode(l,null,{default:n.withCtx(()=>[n.createVNode(c)]),_:1})])):n.createCommentVNode("",!0),n.createElementVNode("div",vG,[o.tabs.length>1&&o.connectivityInfo?(n.openBlock(),n.createBlock(d,{key:0,tabTitles:o.tabs,activeId:o.activeTabId,onTitleClicked:i.tabClicked,onTabClose:i.tabClose},null,8,["tabTitles","activeId","onTitleClicked","onTabClose"])):n.createCommentVNode("",!0),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(o.tabs,m=>(n.openBlock(),n.createElementBlock(n.Fragment,{key:"tab.id"},[m.type==="connectivity"?n.withDirectives((n.openBlock(),n.createBlock(u,{key:0,entry:o.connectivityInfo,availableAnatomyFacets:e.availableAnatomyFacets,ref_for:!0,ref:"connectivityTab_"+m.id,onShowConnectivity:i.showConnectivity},null,8,["entry","availableAnatomyFacets","onShowConnectivity"])),[[n.vShow,m.id===o.activeTabId]]):n.withDirectives((n.openBlock(),n.createBlock(f,{key:1,class:"sidebar-content-container",contextCardEntry:m.contextCard,envVars:o.envVars,ref_for:!0,ref:"searchTab_"+m.id,onSearchChanged:p=>i.searchChanged(m.id,p),onHoverChanged:t[2]||(t[2]=p=>i.hoverChanged(p))},null,8,["contextCardEntry","envVars","onSearchChanged"])),[[n.vShow,m.id===o.activeTabId]])],64))),128))])])]),_:1},8,["modelValue"])],512)}const SG=qn(wG,[["render",xG],["__scopeId","data-v-4d616bd4"]]);ze.SideBar=SG,Object.defineProperty(ze,Symbol.toStringTag,{value:"Module"})});
|