@abi-software/flatmapvuer 0.3.0 → 0.3.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/package-lock.json CHANGED
@@ -1280,13 +1280,6 @@
1280
1280
  "requires": {
1281
1281
  "get-stream": "^6.0.1",
1282
1282
  "minimist": "^1.2.6"
1283
- },
1284
- "dependencies": {
1285
- "minimist": {
1286
- "version": "1.2.6",
1287
- "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.6.tgz",
1288
- "integrity": "sha512-Jsjnk4bw3YJqYzbdyBiNsPWHPfO++UGG749Cxs6peCu5Xg4nrena6OVxOYxrQTqww0Jmwt+Ref8rggumkTLz9Q=="
1289
- }
1290
1283
  }
1291
1284
  },
1292
1285
  "@mapbox/jsonlint-lines-primitives": {
@@ -2753,6 +2746,15 @@
2753
2746
  "integrity": "sha512-+Ryf6g3BKoRc7jfp7ad8tM4TtMiaWvbF/1/sQcZPkkS7ag3D5nMBCe2UfOTONtAkaG0tO0ij3C5Lwmf1EiyjHg==",
2754
2747
  "dev": true
2755
2748
  },
2749
+ "async": {
2750
+ "version": "2.6.4",
2751
+ "resolved": "https://registry.npmjs.org/async/-/async-2.6.4.tgz",
2752
+ "integrity": "sha512-mzo5dfJYwAn29PeiJ0zvwTo04zj8HDJj0Mn8TD7sno7q12prdbnasKJHhkm2c1LgrhlJ0teaea8860oxi51mGA==",
2753
+ "dev": true,
2754
+ "requires": {
2755
+ "lodash": "^4.17.14"
2756
+ }
2757
+ },
2756
2758
  "async-each": {
2757
2759
  "version": "1.0.3",
2758
2760
  "resolved": "https://registry.npmjs.org/async-each/-/async-each-1.0.3.tgz",
@@ -5765,13 +5767,10 @@
5765
5767
  "dev": true
5766
5768
  },
5767
5769
  "eventsource": {
5768
- "version": "1.1.0",
5769
- "resolved": "https://registry.npmjs.org/eventsource/-/eventsource-1.1.0.tgz",
5770
- "integrity": "sha512-VSJjT5oCNrFvCS6igjzPAt5hBzQ2qPBFIbJ03zLI9SE0mxwZpMw6BfJrbFHm1a141AavMEB8JHmBhWAd66PfCg==",
5771
- "dev": true,
5772
- "requires": {
5773
- "original": "^1.0.0"
5774
- }
5770
+ "version": "1.1.2",
5771
+ "resolved": "https://registry.npmjs.org/eventsource/-/eventsource-1.1.2.tgz",
5772
+ "integrity": "sha512-xAH3zWhgO2/3KIniEKYPr8plNSzlGINOUqYj0m0u7AB81iRw8b/3E73W6AuU+6klLbaSFmZnaETQ2lXPfAydrA==",
5773
+ "dev": true
5775
5774
  },
5776
5775
  "evp_bytestokey": {
5777
5776
  "version": "1.0.3",
@@ -8453,9 +8452,9 @@
8453
8452
  }
8454
8453
  },
8455
8454
  "minimist": {
8456
- "version": "1.2.5",
8457
- "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.5.tgz",
8458
- "integrity": "sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw=="
8455
+ "version": "1.2.6",
8456
+ "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.6.tgz",
8457
+ "integrity": "sha512-Jsjnk4bw3YJqYzbdyBiNsPWHPfO++UGG749Cxs6peCu5Xg4nrena6OVxOYxrQTqww0Jmwt+Ref8rggumkTLz9Q=="
8459
8458
  },
8460
8459
  "minipass": {
8461
8460
  "version": "3.1.3",
@@ -9152,15 +9151,6 @@
9152
9151
  }
9153
9152
  }
9154
9153
  },
9155
- "original": {
9156
- "version": "1.0.2",
9157
- "resolved": "https://registry.npmjs.org/original/-/original-1.0.2.tgz",
9158
- "integrity": "sha512-hyBVl6iqqUOJ8FqRe+l/gS8H+kKYjrEndd5Pm1MfBtsEKA038HkkdbAl/72EAXGyonD/PFsvmVG+EvcIpliMBg==",
9159
- "dev": true,
9160
- "requires": {
9161
- "url-parse": "^1.4.3"
9162
- }
9163
- },
9164
9154
  "os-browserify": {
9165
9155
  "version": "0.3.0",
9166
9156
  "resolved": "https://registry.npmjs.org/os-browserify/-/os-browserify-0.3.0.tgz",
@@ -9526,15 +9516,6 @@
9526
9516
  "mkdirp": "^0.5.5"
9527
9517
  },
9528
9518
  "dependencies": {
9529
- "async": {
9530
- "version": "2.6.3",
9531
- "resolved": "https://registry.npmjs.org/async/-/async-2.6.3.tgz",
9532
- "integrity": "sha512-zflvls11DCy+dQWzTW2dzuilv8Z5X/pjfmZOWba6TNIVDm+2UDaJmXSOXlasHKfNBs8oo3M0aT50fDEWfKZjXg==",
9533
- "dev": true,
9534
- "requires": {
9535
- "lodash": "^4.17.14"
9536
- }
9537
- },
9538
9519
  "debug": {
9539
9520
  "version": "3.2.7",
9540
9521
  "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz",
@@ -11245,9 +11226,9 @@
11245
11226
  "dev": true
11246
11227
  },
11247
11228
  "shell-quote": {
11248
- "version": "1.7.2",
11249
- "resolved": "https://registry.npmjs.org/shell-quote/-/shell-quote-1.7.2.tgz",
11250
- "integrity": "sha512-mRz/m/JVscCrkMyPqHc/bczi3OQHkLTqXHEFu0zDhK/qfv3UcOA4SVmRCLmos4bhjr9ekVQubj/R7waKapmiQg==",
11229
+ "version": "1.7.3",
11230
+ "resolved": "https://registry.npmjs.org/shell-quote/-/shell-quote-1.7.3.tgz",
11231
+ "integrity": "sha512-Vpfqwm4EnqGdlsBFNmHhxhElJYrdfcxPThu+ryKS5J8L/fhAwLazFZtq+S+TWZ9ANj2piSQLGj6NQg+lKPmxrw==",
11251
11232
  "dev": true
11252
11233
  },
11253
11234
  "signal-exit": {
@@ -12073,9 +12054,9 @@
12073
12054
  }
12074
12055
  },
12075
12056
  "terser": {
12076
- "version": "4.8.0",
12077
- "resolved": "https://registry.npmjs.org/terser/-/terser-4.8.0.tgz",
12078
- "integrity": "sha512-EAPipTNeWsb/3wLPeup1tVPaXfIaU68xMnVdPafIL1TV05OhASArYyIfFvnvJCNrR2NIOvDVNNTFRa+Re2MWyw==",
12057
+ "version": "4.8.1",
12058
+ "resolved": "https://registry.npmjs.org/terser/-/terser-4.8.1.tgz",
12059
+ "integrity": "sha512-4GnLC0x667eJG0ewJTa6z/yXrbLGv80D9Ru6HIpCQmO+Q4PfEtBFi0ObSckqwL6VyQv/7ENJieXHo2ANmdQwgw==",
12079
12060
  "dev": true,
12080
12061
  "requires": {
12081
12062
  "commander": "^2.20.0",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abi-software/flatmapvuer",
3
- "version": "0.3.0",
3
+ "version": "0.3.3",
4
4
  "main": "./dist/flatmapvuer.common.js",
5
5
  "files": [
6
6
  "dist/*",
package/src/App.vue CHANGED
@@ -75,7 +75,7 @@ export default {
75
75
  pathControls: true,
76
76
  minZoom: 4,
77
77
  availableSpecies : {"Human":{taxo: "NCBITaxon:9606", iconClass:"mapicon-icon_human", displayWarning:true},
78
- "Rat":{taxo: "NCBITaxon:10114", iconClass:"mapicon-icon_rat", displayWarning:false},
78
+ "Rat":{taxo: "NCBITaxon:10114", iconClass:"mapicon-icon_rat", displayWarning:false, displayLatestChanges:true},
79
79
  "Mouse":{taxo: "NCBITaxon:10090", iconClass:"mapicon-icon_mouse", displayWarning:true},
80
80
  "Kember":{taxo: "ABI:1000001", displayWarning:true},
81
81
  "Pig":{taxo: "NCBITaxon:9823", iconClass:"mapicon-icon_pig", displayWarning:true},
@@ -9,25 +9,48 @@
9
9
  <map-svg-sprite-color />
10
10
  <div style="height:100%;width:100%;position:relative;overflow-y:none">
11
11
  <div style="height:100%;width:100%;" ref="display"></div>
12
- <el-popover
13
- :content="warningMessage"
14
- placement="right"
15
- v-if="displayWarning"
16
- :appendToBody="false"
17
- trigger="manual"
18
- popper-class="warning-popper flatmap-popper right-popper"
19
- v-model="hoverVisibilities[6].value"
20
- ref="warningPopover"
21
- ></el-popover>
22
- <i
23
- class="el-icon-warning warning-icon"
24
- v-if="displayWarning"
25
- @mouseover="showToolitip(6)"
26
- @mouseout="hideToolitip(6)"
27
- v-popover:warningPopover
28
- >
29
- <span class="warning-text">Beta</span>
30
- </i>
12
+ <div class="beta-popovers">
13
+ <div>
14
+ <el-popover
15
+ :content="warningMessage"
16
+ placement="right"
17
+ :appendToBody="false"
18
+ trigger="manual"
19
+ popper-class="warning-popper flatmap-popper right-popper"
20
+ v-model="hoverVisibilities[6].value"
21
+ ref="warningPopover"
22
+ ></el-popover>
23
+ <i
24
+ class="el-icon-warning warning-icon"
25
+ v-if="displayWarning && warningMessage"
26
+ @mouseover="showToolitip(6)"
27
+ @mouseout="hideToolitip(6)"
28
+ v-popover:warningPopover
29
+ >
30
+ <span class="warning-text">Beta</span>
31
+ </i>
32
+ </div>
33
+ <el-popover
34
+ :content="latestChangesMessage"
35
+ placement="right"
36
+ v-if="displayLatestChanges"
37
+ :appendToBody="false"
38
+ trigger="manual"
39
+ popper-class="warning-popper flatmap-popper right-popper"
40
+ v-model="hoverVisibilities[7].value"
41
+ ref="latestChangesPopover"
42
+ ></el-popover>
43
+ <i
44
+ class="el-icon-warning latest-changesicon"
45
+ v-if="displayLatestChanges && latestChangesMessage"
46
+ @mouseover="showToolitip(7)"
47
+ @mouseout="hideToolitip(7)"
48
+ v-popover:latestChangesPopover
49
+ >
50
+ <span class="warning-text">What's new?</span>
51
+ </i>
52
+ </div>
53
+
31
54
  <div class="bottom-right-control">
32
55
  <el-popover
33
56
  content="Zoom in"
@@ -659,11 +682,11 @@ export default {
659
682
  type: Boolean,
660
683
  default: true
661
684
  },
662
- displayWarning: {
685
+ displayMinimap: {
663
686
  type: Boolean,
664
- default: true
687
+ default: false
665
688
  },
666
- displayMinimap: {
689
+ displayWarning: {
667
690
  type: Boolean,
668
691
  default: false
669
692
  },
@@ -671,6 +694,14 @@ export default {
671
694
  type: String,
672
695
  default: "Beta feature - This map is based on the connectivity of a rat. New connectivity and species specificity will be added as the SPARC program progress."
673
696
  },
697
+ displayLatestChanges: {
698
+ type: Boolean,
699
+ default: false,
700
+ },
701
+ latestChangesMessage: {
702
+ type: String,
703
+ default: "Bladder connectivity can now be explored and searched on when selected! To see it, click on any of the paths coming from the bladder. Other pathways will be searchable soon.",
704
+ },
674
705
  /**
675
706
  * State containing state of the flatmap.
676
707
  */
@@ -688,7 +719,7 @@ export default {
688
719
  sparcAPI: {
689
720
  type: String,
690
721
  default: "https://api.sparc.science/"
691
- }
722
+ },
692
723
  },
693
724
  provide() {
694
725
  return {
@@ -709,6 +740,7 @@ export default {
709
740
  { value: false },
710
741
  { value: false },
711
742
  { value: false },
743
+ { value: false },
712
744
  { value: false }
713
745
  ],
714
746
  inHelp: false,
@@ -753,12 +785,15 @@ export default {
753
785
  @import "~element-ui/packages/theme-chalk/src/loading";
754
786
  @import "~element-ui/packages/theme-chalk/src/row";
755
787
 
756
- .warning-icon {
788
+ .beta-popovers{
757
789
  position: absolute;
758
790
  top: 90px;
759
- left: 37px;
791
+ left: 16px;
760
792
  text-align: left;
761
- font-size: 25px;
793
+ font-size: 25px;
794
+ }
795
+
796
+ .warning-icon {
762
797
  color: $warning;
763
798
 
764
799
  &:hover {
@@ -767,6 +802,21 @@ export default {
767
802
  }
768
803
 
769
804
  .warning-text {
805
+ font-family: Asap, sans-serif;
806
+ font-size: 15px;
807
+ vertical-align: 5px;
808
+ }
809
+
810
+ .latest-changesicon {
811
+ color: $success;
812
+
813
+ &:hover {
814
+ cursor: pointer;
815
+ }
816
+ }
817
+
818
+ .latest-changestext {
819
+ font-family: Asap, sans-serif;
770
820
  font-size: 15px;
771
821
  vertical-align: 5px;
772
822
  }
@@ -33,6 +33,8 @@
33
33
  :entry="item.taxo"
34
34
  :displayWarning="item.displayWarning"
35
35
  :warningMessage="warningMessage"
36
+ :displayLatestChanges="item.displayLatestChanges"
37
+ :latestChangesMessage="item.latestChangesMessage"
36
38
  :ref="key"
37
39
  @resource-selected="FlatmapSelected"
38
40
  @ready="FlatmapReady"
@@ -7,74 +7,76 @@
7
7
  <div class="block" v-else>
8
8
  <span class="title">{{content.featureId}}</span>
9
9
  </div>
10
- <!-- Currently we don't show the pubmed viewer, will remove once we are certain it won't be used -->
11
- <pubmed-viewer v-if="content.featureIds" v-show="false" class="block" :entry="content" @pubmedSearchUrl="pubmedSearchUrlUpdate"/>
12
- {{content.paths}}
13
- <div v-if="this.origins" class="block">
14
- <div>
15
- <span class="attribute-title">Origin</span>
16
- <el-popover
17
- width="250"
18
- trigger="hover"
19
- :append-to-body=false
20
- popper-class="popover-origin-help"
21
- >
22
- <i slot="reference" class="el-icon-warning-outline info"/>
23
- <span style="word-break: keep-all;">
24
- <i>Origin</i> {{originDescription}}
25
- </span>
26
- </el-popover>
10
+ <div class="content-container scrollbar">
11
+ <!-- Currently we don't show the pubmed viewer, will remove once we are certain it won't be used -->
12
+ <pubmed-viewer v-if="content.featureIds" v-show="false" class="block" :entry="content" @pubmedSearchUrl="pubmedSearchUrlUpdate"/>
13
+ {{content.paths}}
14
+ <div v-if="this.origins" class="block">
15
+ <div>
16
+ <span class="attribute-title">Origin</span>
17
+ <el-popover
18
+ width="250"
19
+ trigger="hover"
20
+ :append-to-body=false
21
+ popper-class="popover-origin-help"
22
+ >
23
+ <i slot="reference" class="el-icon-warning-outline info"/>
24
+ <span style="word-break: keep-all;">
25
+ <i>Origin</i> {{originDescription}}
26
+ </span>
27
+ </el-popover>
28
+ </div>
29
+ <div v-for="origin in origins" class="attribute-content" :key="origin">
30
+ {{ capitalise(origin) }}
31
+ </div>
32
+ <el-button v-show="originsWithDatasets.length > 0" class="button" @click="openDendrites">
33
+ Explore origin data
34
+ </el-button>
27
35
  </div>
28
- <div v-for="origin in origins" class="attribute-content" :key="origin">
29
- {{ capitalise(origin) }}
36
+ <div v-if="this.components" class="block">
37
+ <div class="attribute-title">Components</div>
38
+ <div v-for="component in components" class="attribute-content" :key="component">
39
+ {{ capitalise(component) }}
40
+ </div>
30
41
  </div>
31
- <el-button v-show="originsWithDatasets.length > 0" class="button" @click="openDendrites">
32
- Explore origin data
33
- </el-button>
34
- </div>
35
- <div v-if="this.components" class="block">
36
- <div class="attribute-title">Components</div>
37
- <div v-for="component in components" class="attribute-content" :key="component">
38
- {{ capitalise(component) }}
39
- </div>
40
- </div>
41
- <div v-if="this.destinations" class="block">
42
- <div>
43
- <span class="attribute-title">Destination</span>
44
- <el-popover
45
- width="250"
46
- trigger="hover"
47
- :append-to-body=false
48
- popper-class="popover-origin-help"
49
- >
50
- <i slot="reference" class="el-icon-warning-outline info"/>
51
- <span style="word-break: keep-all;">
52
- <i>Destination</i> is where the axons terminate
53
- </span>
54
- </el-popover>
55
- </div>
56
- <div v-for="destination in destinations" class="attribute-content" :key="destination">
57
- {{ capitalise(destination) }}
42
+ <div v-if="this.destinations" class="block">
43
+ <div>
44
+ <span class="attribute-title">Destination</span>
45
+ <el-popover
46
+ width="250"
47
+ trigger="hover"
48
+ :append-to-body=false
49
+ popper-class="popover-origin-help"
50
+ >
51
+ <i slot="reference" class="el-icon-warning-outline info"/>
52
+ <span style="word-break: keep-all;">
53
+ <i>Destination</i> is where the axons terminate
54
+ </span>
55
+ </el-popover>
56
+ </div>
57
+ <div v-for="destination in destinations" class="attribute-content" :key="destination">
58
+ {{ capitalise(destination) }}
59
+ </div>
60
+ <el-button v-show="destinationsWithDatasets.length > 0" class="button" @click="openAxons">
61
+ Explore destination data
62
+ </el-button>
58
63
  </div>
59
- <el-button v-show="destinationsWithDatasets.length > 0" class="button" @click="openAxons">
60
- Explore destination data
64
+
65
+ <!-- We will serach on components until we can search on neurons -->
66
+ <el-button v-show="components.length > 0" class="button" @click="openAll">
67
+ Search for data on components
61
68
  </el-button>
62
- </div>
63
69
 
64
- <!-- We will serach on components until we can search on neurons -->
65
- <el-button v-show="components.length > 0" class="button" @click="openAll">
66
- Search for data on components
67
- </el-button>
68
-
69
- <!-- Disable neuron search until it is ready -->
70
- <!-- <el-button v-for="action in content.actions" round :key="action.title"
71
- class="button" @click="resourceSelected(action)">
72
- <i v-if="action.title === 'Search for datasets' || action.title === 'View Dataset' " class="el-icon-coin"></i>
73
- {{action.title}}
74
- </el-button> -->
75
- <el-button v-if="pubmedSearchUrl" class="button" icon="el-icon-notebook-2" @click="openUrl(pubmedSearchUrl)">
76
- Open publications in pubmed
77
- </el-button>
70
+ <!-- Disable neuron search until it is ready -->
71
+ <!-- <el-button v-for="action in content.actions" round :key="action.title"
72
+ class="button" @click="resourceSelected(action)">
73
+ <i v-if="action.title === 'Search for datasets' || action.title === 'View Dataset' " class="el-icon-coin"></i>
74
+ {{action.title}}
75
+ </el-button> -->
76
+ <el-button v-if="pubmedSearchUrl" class="button" icon="el-icon-notebook-2" @click="openUrl(pubmedSearchUrl)">
77
+ Open publications in pubmed
78
+ </el-button>
79
+ </div>
78
80
  </el-main>
79
81
  </div>
80
82
  </template>
@@ -486,6 +488,29 @@ export default {
486
488
  }
487
489
  }
488
490
 
491
+ .content-container {
492
+ overflow-y: scroll;
493
+ scrollbar-width: thin !important;
494
+ height: 200px;
495
+ }
496
+
497
+ .scrollbar::-webkit-scrollbar-track {
498
+ border-radius: 10px;
499
+ background-color: #f5f5f5;
500
+ }
501
+
502
+ .scrollbar::-webkit-scrollbar {
503
+ width: 12px;
504
+ right: -12px;
505
+ background-color: #f5f5f5;
506
+ }
507
+
508
+ .scrollbar::-webkit-scrollbar-thumb {
509
+ border-radius: 4px;
510
+ box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.06);
511
+ background-color: #979797;
512
+ }
513
+
489
514
 
490
515
  /* Fix for chrome bug where under triangle pops up above one on top of it */
491
516
  .selector:not(*:root), .tooltip-container::after{