@abi-software/map-side-bar 1.5.0 → 1.5.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.
Files changed (37) hide show
  1. package/CHANGELOG.md +228 -228
  2. package/LICENSE +201 -201
  3. package/README.md +146 -146
  4. package/babel.config.js +14 -14
  5. package/dist/map-side-bar.common.js +423 -182
  6. package/dist/map-side-bar.common.js.map +1 -1
  7. package/dist/map-side-bar.css +1 -1
  8. package/dist/map-side-bar.umd.js +423 -182
  9. package/dist/map-side-bar.umd.js.map +1 -1
  10. package/dist/map-side-bar.umd.min.js +1 -1
  11. package/dist/map-side-bar.umd.min.js.map +1 -1
  12. package/package-lock.json +14536 -14536
  13. package/package.json +75 -75
  14. package/public/index.html +17 -17
  15. package/src/App.vue +164 -164
  16. package/src/algolia/algolia.js +188 -188
  17. package/src/algolia/utils.js +69 -69
  18. package/src/assets/_variables.scss +43 -43
  19. package/src/assets/styles.scss +7 -7
  20. package/src/components/BadgesGroup.vue +144 -144
  21. package/src/components/Cascader.vue +49 -49
  22. package/src/components/ContextCard.vue +397 -397
  23. package/src/components/DatasetCard.vue +328 -328
  24. package/src/components/EventBus.js +3 -3
  25. package/src/components/ImageGallery.vue +531 -531
  26. package/src/components/SearchFilters.vue +586 -587
  27. package/src/components/SearchHistory.vue +146 -0
  28. package/src/components/SideBar.vue +235 -232
  29. package/src/components/SidebarContent.vue +564 -554
  30. package/src/components/Tabs.vue +78 -78
  31. package/src/components/hardcoded-context-info.js +79 -79
  32. package/src/components/index.js +8 -8
  33. package/src/components/species-map.js +8 -8
  34. package/src/main.js +8 -8
  35. package/src/mixins/S3Bucket.vue +31 -31
  36. package/static.json +6 -6
  37. package/vue.config.js +19 -19
package/package.json CHANGED
@@ -1,75 +1,75 @@
1
- {
2
- "name": "@abi-software/map-side-bar",
3
- "version": "1.5.0",
4
- "main": "./dist/map-side-bar.common.js",
5
- "files": [
6
- "dist/*",
7
- "src/*",
8
- "public/*",
9
- "*.json",
10
- "*.js"
11
- ],
12
- "scripts": {
13
- "serve": "vue-cli-service serve --port 8081",
14
- "build-bundle": "vue-cli-service build --target lib --name map-side-bar ./src/components/index.js ",
15
- "build": "vue-cli-service build",
16
- "lint": "vue-cli-service lint",
17
- "start": "vue-cli-service serve",
18
- "release:beta": "npm version prerelease --preid=beta; npm publish --tag beta",
19
- "release:minor": "npm version minor; npm publish",
20
- "release:patch": "npm version patch; npm publish",
21
- "changelog": "auto-changelog -p --output CHANGELOG.md --template keepachangelog",
22
- "version": "npm run build-bundle;npm run changelog; git add CHANGELOG.md"
23
- },
24
- "dependencies": {
25
- "@abi-software/gallery": "^0.4.1-beta.1",
26
- "@abi-software/svg-sprite": "^0.2.0",
27
- "algoliasearch": "^4.10.5",
28
- "element-ui": "^2.13.0",
29
- "marked": "^4.1.1",
30
- "vue": "^2.6.10",
31
- "xss": "^1.0.14"
32
- },
33
- "devDependencies": {
34
- "@vue/cli-plugin-babel": "^4.0.0",
35
- "@vue/cli-plugin-eslint": "^4.0.0",
36
- "@vue/cli-service": "^4.0.0",
37
- "auto-changelog": "^2.4.0",
38
- "babel-eslint": "^10.0.3",
39
- "babel-plugin-component": "^1.1.1",
40
- "eslint": "^5.16.0",
41
- "eslint-plugin-vue": "^5.0.0",
42
- "file-loader": "^5.0.2",
43
- "node-sass": "^4.14.1",
44
- "raw-loader": "^0.5.1",
45
- "sass-loader": "^8.0.2",
46
- "transform-loader": "^0.2.4",
47
- "typescript": "^4.4.3",
48
- "vue-custom-element": "^3.3.0",
49
- "vue-template-compiler": "^2.6.10",
50
- "webpack-node-externals": "^2.5.2"
51
- },
52
- "eslintConfig": {
53
- "root": true,
54
- "env": {
55
- "node": true
56
- },
57
- "extends": [
58
- "plugin:vue/essential",
59
- "eslint:recommended"
60
- ],
61
- "rules": {},
62
- "parserOptions": {
63
- "parser": "babel-eslint"
64
- }
65
- },
66
- "postcss": {
67
- "plugins": {
68
- "autoprefixer": {}
69
- }
70
- },
71
- "browserslist": [
72
- "> 1%",
73
- "last 2 versions"
74
- ]
75
- }
1
+ {
2
+ "name": "@abi-software/map-side-bar",
3
+ "version": "1.5.2",
4
+ "main": "./dist/map-side-bar.common.js",
5
+ "files": [
6
+ "dist/*",
7
+ "src/*",
8
+ "public/*",
9
+ "*.json",
10
+ "*.js"
11
+ ],
12
+ "scripts": {
13
+ "serve": "vue-cli-service serve --port 8081",
14
+ "build-bundle": "vue-cli-service build --target lib --name map-side-bar ./src/components/index.js ",
15
+ "build": "vue-cli-service build",
16
+ "lint": "vue-cli-service lint",
17
+ "start": "vue-cli-service serve",
18
+ "release:beta": "npm version prerelease --preid=beta; npm publish --tag beta",
19
+ "release:minor": "npm version minor; npm publish",
20
+ "release:patch": "npm version patch; npm publish",
21
+ "changelog": "auto-changelog -p --output CHANGELOG.md --template keepachangelog",
22
+ "version": "npm run build-bundle;npm run changelog; git add CHANGELOG.md"
23
+ },
24
+ "dependencies": {
25
+ "@abi-software/gallery": "^0.4.1-beta.1",
26
+ "@abi-software/svg-sprite": "^0.2.0",
27
+ "algoliasearch": "^4.10.5",
28
+ "element-ui": "^2.13.0",
29
+ "marked": "^4.1.1",
30
+ "vue": "^2.6.10",
31
+ "xss": "^1.0.14"
32
+ },
33
+ "devDependencies": {
34
+ "@vue/cli-plugin-babel": "^4.0.0",
35
+ "@vue/cli-plugin-eslint": "^4.0.0",
36
+ "@vue/cli-service": "^4.0.0",
37
+ "auto-changelog": "^2.4.0",
38
+ "babel-eslint": "^10.0.3",
39
+ "babel-plugin-component": "^1.1.1",
40
+ "eslint": "^5.16.0",
41
+ "eslint-plugin-vue": "^5.0.0",
42
+ "file-loader": "^5.0.2",
43
+ "node-sass": "^4.14.1",
44
+ "raw-loader": "^0.5.1",
45
+ "sass-loader": "^8.0.2",
46
+ "transform-loader": "^0.2.4",
47
+ "typescript": "^4.4.3",
48
+ "vue-custom-element": "^3.3.0",
49
+ "vue-template-compiler": "^2.6.10",
50
+ "webpack-node-externals": "^2.5.2"
51
+ },
52
+ "eslintConfig": {
53
+ "root": true,
54
+ "env": {
55
+ "node": true
56
+ },
57
+ "extends": [
58
+ "plugin:vue/essential",
59
+ "eslint:recommended"
60
+ ],
61
+ "rules": {},
62
+ "parserOptions": {
63
+ "parser": "babel-eslint"
64
+ }
65
+ },
66
+ "postcss": {
67
+ "plugins": {
68
+ "autoprefixer": {}
69
+ }
70
+ },
71
+ "browserslist": [
72
+ "> 1%",
73
+ "last 2 versions"
74
+ ]
75
+ }
package/public/index.html CHANGED
@@ -1,17 +1,17 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="utf-8">
5
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
6
- <meta name="viewport" content="width=device-width,initial-scale=1.0">
7
- <link rel="icon" href="<%= BASE_URL %>favicon.ico">
8
- <title>Map Sidebar</title>
9
- </head>
10
- <body>
11
- <noscript>
12
- <strong>We're sorry but scaffoldvuer doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
13
- </noscript>
14
- <map-side-bar></map-side-bar>
15
- <!-- built files will be auto injected -->
16
- </body>
17
- </html>
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta http-equiv="X-UA-Compatible" content="IE=edge">
6
+ <meta name="viewport" content="width=device-width,initial-scale=1.0">
7
+ <link rel="icon" href="<%= BASE_URL %>favicon.ico">
8
+ <title>Map Sidebar</title>
9
+ </head>
10
+ <body>
11
+ <noscript>
12
+ <strong>We're sorry but scaffoldvuer doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
13
+ </noscript>
14
+ <map-side-bar></map-side-bar>
15
+ <!-- built files will be auto injected -->
16
+ </body>
17
+ </html>
package/src/App.vue CHANGED
@@ -1,164 +1,164 @@
1
- <template>
2
- <div id="app">
3
- <link rel="stylesheet"
4
- href="https://fonts.googleapis.com/css?family=Asap:400,400i,500,600,700&display=swap">
5
- Click arrow to open sidebar
6
- <el-button @click="openSearch">search Uberon from refs</el-button>
7
- <el-button @click="singleFacets">Add heart to Filter</el-button>
8
- <el-button @click="addStomach">Add stomach to Filter</el-button>
9
- <el-button @click="addInvalidTerm">Add invalid term to Filter</el-button>
10
- <el-button @click="multiFacets">multiple facets</el-button>
11
- <el-button @click="neuronSearch">open neuron search</el-button>
12
- <el-button @click="keywordSearch">keyword search</el-button>
13
- <el-button @click="getFacets">Get facets</el-button>
14
- <SideBar :envVars="envVars" class="side-bar" ref="sideBar" :visible="sideBarVisibility"
15
- :tabs="tabs" :activeId="activeId" @tabClicked="tabClicked"
16
- @search-changed="searchChanged($event)" @actionClick="action"/>
17
- </div>
18
- </template>
19
-
20
- <script>
21
- /* eslint-disable no-alert, no-console */
22
- // optionally import default styles
23
- import SideBar from './components/SideBar'
24
- import EventBus from './components/EventBus'
25
-
26
- // let testContext = {
27
- // "description": "3D digital tracings of the enteric plexus obtained from seven subjects (M11, M16, M162, M163, M164, M168) are mapped randomly on mouse proximal colon. The data depicts individual neural wiring patterns in enteric microcircuits, and revealed both neuron and fiber units wired in a complex organization.",
28
- // "heading": "Digital tracings of enteric plexus",
29
- // "id": "sparc.science.context_data",
30
- // "samples": [
31
- // {
32
- // "annotation": "",
33
- // "description": "Neuronal soma and fibers in a myenteric ganglion in this subject are annotated into the following groups to highlight their interactions:\n\nNeuron1,2,3 Connex: Connections between 3 neurons and cross-ganglionic fibers\n\nNeuron4_Connex: A small neuron contacts fibers passing the ganglion\n\nNeuron5: Multiple projections of a neuron in an myenteric ganglion\n\nNeuron5,3,7 Connex: Connections between 3 neurons, nerve fibers, IGNEx (complex type of intraganglionic nerve endings) and fibers in the circular muscles.\n\nNeuron8,9,10 Connex: Connections of 3 neurons with each other and with long passing fibers. \n\nIntraganglionic Nerve Ending (IGNE): Digital traces of neurites consist of complex intraganglionic nerve endings. The blue fiber has branched terminals, more likely the afferent nerve endings; the violet and cyan terminals also interweave into the fiber nest; the orange, pink and peach fibers and one process of the neuron cross the IGNE to make 1-2 conjunctions. \n",
34
- // "doi": "",
35
- // "heading": "Digital tracing for subject M11",
36
- // "id": "Sample 1",
37
- // "path": "files/derivative/sub-M11/sam-pCm11/digital-traces/pC PHPS XFP M11 20XZ 180425_180713_2_NL_20.xml",
38
- // "view": "View 1"
39
- // },
40
- // {
41
- // "annotation": "",
42
- // "description": "This digital trace demonstrates some types of wiring. A long process of the green neuron terminates in the intraganglionic nerve endings (IGNE) while in contact with a nerve fiber (cyan), soma of a neuron (peach) and processes of 3 neurons (magenta, yellow and red). Two neurons and one fiber are traced to an IGNE. ",
43
- // "doi": "",
44
- // "heading": "Digital tracing for subject M16",
45
- // "id": "Sample 2",
46
- // "path": "files/derivative/sub-M16/sam-pCm16/digital-traces/pC PHPS XFP M16 20XZ 180425_180524.xml",
47
- // "view": "View 2"
48
- // }
49
- // ],
50
- // "version": "0.1.0",
51
- // "views": [
52
- // {
53
- // "annotation": "--",
54
- // "description": "Digital tracing of neurons for subject M11.",
55
- // "id": "View 1",
56
- // "path": "files/derivative/Scaffolds/M11_view.json",
57
- // "sample": "Sample 1",
58
- // "thumbnail": "files/derivative/Scaffolds/M11_thumbnail.jpeg"
59
- // },
60
- // {
61
- // "annotation": "--",
62
- // "description": "Digital tracing of neurons for subject M16.",
63
- // "id": "View 2",
64
- // "path": "files/derivative/Scaffolds/M16_view.json",
65
- // "sample": "Sample 2",
66
- // "thumbnail": "files/derivative/Scaffolds/M16_thumbnail.jpeg"
67
- // }
68
- // ]
69
- // }
70
- export default {
71
- name: 'app',
72
- components: {
73
- SideBar
74
- },
75
- computed: {
76
- tabs: function(){
77
- let temp = [...this.tabArray]
78
- for(let i in this.tabArray){
79
- temp[i].contextCard = this.contextArray[i]
80
- }
81
- return temp
82
- }
83
- },
84
- data: function(){
85
- return {
86
- tabArray: [{title: 'Flatmap', id:1}],
87
- contextArray: [null,null,null],
88
- sideBarVisibility: true,
89
- envVars: {
90
- API_LOCATION: process.env.VUE_APP_API_LOCATION,
91
- ALGOLIA_KEY: process.env.VUE_APP_ALGOLIA_KEY,
92
- ALGOLIA_ID: process.env.VUE_APP_ALGOLIA_ID,
93
- ALGOLIA_INDEX: process.env.VUE_APP_ALGOLIA_INDEX,
94
- PENNSIEVE_API_LOCATION: process.env.VUE_APP_PENNSIEVE_API_LOCATION,
95
- BL_SERVER_URL: process.env.VUE_APP_BL_SERVER_URL,
96
- NL_LINK_PREFIX: process.env.VUE_APP_NL_LINK_PREFIX,
97
- ROOT_URL: process.env.VUE_APP_ROOT_URL,
98
- },
99
- activeId: 1,
100
- }
101
- },
102
- methods:{
103
- searchChanged: function(data){
104
- console.log(data);
105
- },
106
- tabClicked: function(id){
107
- this.activeId = id
108
- },
109
- action: function(val){
110
- console.log("action fired: ", val)
111
- },
112
- openSearch: function(){
113
- this.$refs.sideBar.openSearch([], 'http://purl.obolibrary.org/obo/UBERON_0001103')
114
- },
115
- singleFacets: function(){
116
- this.$refs.sideBar.addFilter({facet: 'Heart', term:'Anatomical structure', facetPropPath: 'anatomy.organ.name', AND: true})
117
- },
118
- addStomach: function(){
119
- this.$refs.sideBar.addFilter({facet: 'Stomach', term:'Anatomical structure', facetPropPath: 'anatomy.organ.name', AND: false})
120
- },
121
- addInvalidTerm: function(){
122
- this.$refs.sideBar.addFilter({facet: 'Invalid', term:'Anatomical structure', facetPropPath: 'anatomy.organ.name', AND: true})
123
- },
124
- multiFacets: function(){
125
- this.$refs.sideBar.openSearch([{facet: 'Male', term:'Sex', facetPropPath:'attributes.subject.sex.value'}, {facet: 'Heart', term:'Anatomical structure', facetPropPath: 'anatomy.organ.name'},
126
- {facet: 'Not correct', term:'Anatomical structure', facetPropPath: 'anatomy.organ.name'}], '')
127
- },
128
- keywordSearch: function(){
129
- this.$refs.sideBar.addFilter({type: 'Facet', label: undefined, facet: '3d model', facetPropPath: 'item.keywords.keyword', term: 'Keywords', AND: true})
130
- },
131
- markerFromFlatmap: function(){
132
- this.$refs.sideBar.openSearch([{facet: 'http://purl.obolibrary.org/obo/UBERON_0001103', term:'Keywords', facetPropPath:'item.keywords.keyword'}])
133
- },
134
- neuronSearch: function(){
135
- this.$refs.sideBar.openNeuronSearch('ilxtr:neuron-type-keast-10')
136
- },
137
- getFacets: async function(){
138
- let facets = await this.$refs.sideBar.getAlgoliaFacets()
139
- console.log('Algolia facets:', facets)
140
- }
141
- },
142
- mounted: function() {
143
- console.log("mounted app")
144
- EventBus.$on("contextUpdate", (payLoad) => {
145
- console.log("contextUpdate", payLoad)
146
- })
147
- },
148
- }
149
- </script>
150
-
151
- <style lang="scss">
152
- #app {
153
- height:100%;
154
- width: 100%;
155
- position:absolute;
156
- font-family: "Asap",sans-serif;
157
- }
158
- body {
159
- margin:0px;
160
- }
161
- .map-icon {
162
- color: $app-primary-color;
163
- }
164
- </style>
1
+ <template>
2
+ <div id="app">
3
+ <link rel="stylesheet"
4
+ href="https://fonts.googleapis.com/css?family=Asap:400,400i,500,600,700&display=swap">
5
+ Click arrow to open sidebar
6
+ <el-button @click="openSearch">search Uberon from refs</el-button>
7
+ <el-button @click="singleFacets">Add heart to Filter</el-button>
8
+ <el-button @click="addStomach">Add stomach to Filter</el-button>
9
+ <el-button @click="addInvalidTerm">Add invalid term to Filter</el-button>
10
+ <el-button @click="multiFacets">multiple facets</el-button>
11
+ <el-button @click="neuronSearch">open neuron search</el-button>
12
+ <el-button @click="keywordSearch">keyword search</el-button>
13
+ <el-button @click="getFacets">Get facets</el-button>
14
+ <SideBar :envVars="envVars" class="side-bar" ref="sideBar" :visible="sideBarVisibility"
15
+ :tabs="tabs" :activeId="activeId" @tabClicked="tabClicked"
16
+ @search-changed="searchChanged($event)" @actionClick="action"/>
17
+ </div>
18
+ </template>
19
+
20
+ <script>
21
+ /* eslint-disable no-alert, no-console */
22
+ // optionally import default styles
23
+ import SideBar from './components/SideBar'
24
+ import EventBus from './components/EventBus'
25
+
26
+ // let testContext = {
27
+ // "description": "3D digital tracings of the enteric plexus obtained from seven subjects (M11, M16, M162, M163, M164, M168) are mapped randomly on mouse proximal colon. The data depicts individual neural wiring patterns in enteric microcircuits, and revealed both neuron and fiber units wired in a complex organization.",
28
+ // "heading": "Digital tracings of enteric plexus",
29
+ // "id": "sparc.science.context_data",
30
+ // "samples": [
31
+ // {
32
+ // "annotation": "",
33
+ // "description": "Neuronal soma and fibers in a myenteric ganglion in this subject are annotated into the following groups to highlight their interactions:\n\nNeuron1,2,3 Connex: Connections between 3 neurons and cross-ganglionic fibers\n\nNeuron4_Connex: A small neuron contacts fibers passing the ganglion\n\nNeuron5: Multiple projections of a neuron in an myenteric ganglion\n\nNeuron5,3,7 Connex: Connections between 3 neurons, nerve fibers, IGNEx (complex type of intraganglionic nerve endings) and fibers in the circular muscles.\n\nNeuron8,9,10 Connex: Connections of 3 neurons with each other and with long passing fibers. \n\nIntraganglionic Nerve Ending (IGNE): Digital traces of neurites consist of complex intraganglionic nerve endings. The blue fiber has branched terminals, more likely the afferent nerve endings; the violet and cyan terminals also interweave into the fiber nest; the orange, pink and peach fibers and one process of the neuron cross the IGNE to make 1-2 conjunctions. \n",
34
+ // "doi": "",
35
+ // "heading": "Digital tracing for subject M11",
36
+ // "id": "Sample 1",
37
+ // "path": "files/derivative/sub-M11/sam-pCm11/digital-traces/pC PHPS XFP M11 20XZ 180425_180713_2_NL_20.xml",
38
+ // "view": "View 1"
39
+ // },
40
+ // {
41
+ // "annotation": "",
42
+ // "description": "This digital trace demonstrates some types of wiring. A long process of the green neuron terminates in the intraganglionic nerve endings (IGNE) while in contact with a nerve fiber (cyan), soma of a neuron (peach) and processes of 3 neurons (magenta, yellow and red). Two neurons and one fiber are traced to an IGNE. ",
43
+ // "doi": "",
44
+ // "heading": "Digital tracing for subject M16",
45
+ // "id": "Sample 2",
46
+ // "path": "files/derivative/sub-M16/sam-pCm16/digital-traces/pC PHPS XFP M16 20XZ 180425_180524.xml",
47
+ // "view": "View 2"
48
+ // }
49
+ // ],
50
+ // "version": "0.1.0",
51
+ // "views": [
52
+ // {
53
+ // "annotation": "--",
54
+ // "description": "Digital tracing of neurons for subject M11.",
55
+ // "id": "View 1",
56
+ // "path": "files/derivative/Scaffolds/M11_view.json",
57
+ // "sample": "Sample 1",
58
+ // "thumbnail": "files/derivative/Scaffolds/M11_thumbnail.jpeg"
59
+ // },
60
+ // {
61
+ // "annotation": "--",
62
+ // "description": "Digital tracing of neurons for subject M16.",
63
+ // "id": "View 2",
64
+ // "path": "files/derivative/Scaffolds/M16_view.json",
65
+ // "sample": "Sample 2",
66
+ // "thumbnail": "files/derivative/Scaffolds/M16_thumbnail.jpeg"
67
+ // }
68
+ // ]
69
+ // }
70
+ export default {
71
+ name: 'app',
72
+ components: {
73
+ SideBar
74
+ },
75
+ computed: {
76
+ tabs: function(){
77
+ let temp = [...this.tabArray]
78
+ for(let i in this.tabArray){
79
+ temp[i].contextCard = this.contextArray[i]
80
+ }
81
+ return temp
82
+ }
83
+ },
84
+ data: function(){
85
+ return {
86
+ tabArray: [{title: 'Flatmap', id:1}],
87
+ contextArray: [null,null,null],
88
+ sideBarVisibility: true,
89
+ envVars: {
90
+ API_LOCATION: process.env.VUE_APP_API_LOCATION,
91
+ ALGOLIA_KEY: process.env.VUE_APP_ALGOLIA_KEY,
92
+ ALGOLIA_ID: process.env.VUE_APP_ALGOLIA_ID,
93
+ ALGOLIA_INDEX: process.env.VUE_APP_ALGOLIA_INDEX,
94
+ PENNSIEVE_API_LOCATION: process.env.VUE_APP_PENNSIEVE_API_LOCATION,
95
+ BL_SERVER_URL: process.env.VUE_APP_BL_SERVER_URL,
96
+ NL_LINK_PREFIX: process.env.VUE_APP_NL_LINK_PREFIX,
97
+ ROOT_URL: process.env.VUE_APP_ROOT_URL,
98
+ },
99
+ activeId: 1,
100
+ }
101
+ },
102
+ methods:{
103
+ searchChanged: function(data){
104
+ console.log(data);
105
+ },
106
+ tabClicked: function(id){
107
+ this.activeId = id
108
+ },
109
+ action: function(val){
110
+ console.log("action fired: ", val)
111
+ },
112
+ openSearch: function(){
113
+ this.$refs.sideBar.openSearch([], 'http://purl.obolibrary.org/obo/UBERON_0001103')
114
+ },
115
+ singleFacets: function(){
116
+ this.$refs.sideBar.addFilter({facet: 'Heart', term:'Anatomical structure', facetPropPath: 'anatomy.organ.name', AND: true})
117
+ },
118
+ addStomach: function(){
119
+ this.$refs.sideBar.addFilter({facet: 'Stomach', term:'Anatomical structure', facetPropPath: 'anatomy.organ.name', AND: false})
120
+ },
121
+ addInvalidTerm: function(){
122
+ this.$refs.sideBar.addFilter({facet: 'Invalid', term:'Anatomical structure', facetPropPath: 'anatomy.organ.name', AND: true})
123
+ },
124
+ multiFacets: function(){
125
+ this.$refs.sideBar.openSearch([{facet: 'Male', term:'Sex', facetPropPath:'attributes.subject.sex.value'}, {facet: 'Heart', term:'Anatomical structure', facetPropPath: 'anatomy.organ.name'},
126
+ {facet: 'Not correct', term:'Anatomical structure', facetPropPath: 'anatomy.organ.name'}], '')
127
+ },
128
+ keywordSearch: function(){
129
+ this.$refs.sideBar.addFilter({type: 'Facet', label: undefined, facet: '3d model', facetPropPath: 'item.keywords.keyword', term: 'Keywords', AND: true})
130
+ },
131
+ markerFromFlatmap: function(){
132
+ this.$refs.sideBar.openSearch([{facet: 'http://purl.obolibrary.org/obo/UBERON_0001103', term:'Keywords', facetPropPath:'item.keywords.keyword'}])
133
+ },
134
+ neuronSearch: function(){
135
+ this.$refs.sideBar.openNeuronSearch('ilxtr:neuron-type-keast-10')
136
+ },
137
+ getFacets: async function(){
138
+ let facets = await this.$refs.sideBar.getAlgoliaFacets()
139
+ console.log('Algolia facets:', facets)
140
+ }
141
+ },
142
+ mounted: function() {
143
+ console.log("mounted app")
144
+ EventBus.$on("contextUpdate", (payLoad) => {
145
+ console.log("contextUpdate", payLoad)
146
+ })
147
+ },
148
+ }
149
+ </script>
150
+
151
+ <style lang="scss">
152
+ #app {
153
+ height:100%;
154
+ width: 100%;
155
+ position:absolute;
156
+ font-family: "Asap",sans-serif;
157
+ }
158
+ body {
159
+ margin:0px;
160
+ }
161
+ .map-icon {
162
+ color: $app-primary-color;
163
+ }
164
+ </style>