@abi-software/map-side-bar 2.17.0 → 2.17.1-demo.1
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 +1296 -315
- package/dist/map-side-bar.umd.cjs +65 -62
- package/dist/style.css +1 -1
- package/package.json +8 -2
- package/src/App.vue +12 -8
- package/src/assets/fonts.scss +3 -0
- package/src/assets/styles.scss +0 -2
- package/src/components/CellCard.vue +994 -0
- package/src/components/CellCardExplorer.vue +882 -0
- package/src/components/ConnectivityCard.vue +2 -2
- package/src/components/ConnectivityExplorer.vue +2 -2
- package/src/components/ConnectivityInfo.vue +3 -46
- package/src/components/SearchFilters.vue +10 -9
- package/src/components/SearchHistory.vue +3 -15
- package/src/components/SideBar.vue +108 -7
- package/src/components/Tabs.vue +15 -6
- package/src/components/icons/IconOpenExternal.vue +28 -0
- package/src/components/index.js +1 -0
- package/src/components.d.ts +3 -0
- package/src/main.js +1 -0
- package/src/utils/common.js +71 -0
- package/vite.config.js +6 -1
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abi-software/map-side-bar",
|
|
3
|
-
"version": "2.17.
|
|
3
|
+
"version": "2.17.1-demo.1",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"engines": {
|
|
6
|
-
"node": "
|
|
6
|
+
"node": "^24.20.0"
|
|
7
7
|
},
|
|
8
8
|
"repository": {
|
|
9
9
|
"type": "git",
|
|
@@ -91,5 +91,11 @@
|
|
|
91
91
|
"@rollup/rollup-darwin-arm64": "4.63.0",
|
|
92
92
|
"@rollup/rollup-linux-x64-gnu": "4.63.0",
|
|
93
93
|
"@rollup/rollup-win32-x64-msvc": "4.63.0"
|
|
94
|
+
},
|
|
95
|
+
"allowScripts": {
|
|
96
|
+
"@parcel/watcher@2.6.0": true,
|
|
97
|
+
"cypress@15.21.1": true,
|
|
98
|
+
"fsevents@2.3.3": true,
|
|
99
|
+
"esbuild@0.21.5": true
|
|
94
100
|
}
|
|
95
101
|
}
|
package/src/App.vue
CHANGED
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div id="app">
|
|
3
|
-
<link
|
|
4
|
-
rel="stylesheet"
|
|
5
|
-
href="https://fonts.googleapis.com/css?family=Asap:400,400i,500,600,700&display=swap"
|
|
6
|
-
/>
|
|
7
3
|
<div class="options-container">
|
|
8
4
|
<div>Click arrow to open sidebar</div>
|
|
9
5
|
<el-button @click="openSearch">search Uberon from refs</el-button>
|
|
@@ -19,6 +15,7 @@
|
|
|
19
15
|
<el-button @click="getFacets">Get facets</el-button>
|
|
20
16
|
<el-button @click="toggleCreateData">Create Data/Annotation</el-button>
|
|
21
17
|
<el-button @click="openConnectivitySearch()">Connectivity Search</el-button>
|
|
18
|
+
<el-button @click="showCellCardExplorer()">Show Cell Card Explorer</el-button>
|
|
22
19
|
</div>
|
|
23
20
|
<SideBar
|
|
24
21
|
:envVars="envVars"
|
|
@@ -30,6 +27,7 @@
|
|
|
30
27
|
:connectivityEntry="connectivityEntry"
|
|
31
28
|
:connectivityKnowledge="connectivityKnowledge"
|
|
32
29
|
:showVisibilityFilter="true"
|
|
30
|
+
:showCellCards="showCellCards"
|
|
33
31
|
@search-changed="searchChanged($event)"
|
|
34
32
|
@hover-changed="hoverChanged($event)"
|
|
35
33
|
@connectivity-hovered="onConnectivityHovered"
|
|
@@ -45,9 +43,7 @@
|
|
|
45
43
|
import SideBar from './components/SideBar.vue'
|
|
46
44
|
import EventBus from './components/EventBus.js'
|
|
47
45
|
import exampleConnectivityInput from './exampleConnectivityInput.js'
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
const capitalise = (str) => str.charAt(0).toUpperCase() + str.slice(1);
|
|
46
|
+
import { capitalise } from './utils/common.js'
|
|
51
47
|
|
|
52
48
|
const flatmapQuery = (flatmapApi, sql) => {
|
|
53
49
|
const data = { sql: sql };
|
|
@@ -136,6 +132,7 @@ export default {
|
|
|
136
132
|
BL_SERVER_URL: import.meta.env.VITE_APP_BL_SERVER_URL,
|
|
137
133
|
ROOT_URL: import.meta.env.VITE_APP_ROOT_URL,
|
|
138
134
|
FLATMAPAPI_LOCATION: import.meta.env.VITE_FLATMAPAPI_LOCATION,
|
|
135
|
+
CELL_CARDS_API: import.meta.env.VITE_APP_CELL_CARDS_API,
|
|
139
136
|
},
|
|
140
137
|
connectivityEntry: [],
|
|
141
138
|
createData: {
|
|
@@ -152,6 +149,7 @@ export default {
|
|
|
152
149
|
query: '',
|
|
153
150
|
filter: [],
|
|
154
151
|
target: [],
|
|
152
|
+
showCellCards: false,
|
|
155
153
|
}
|
|
156
154
|
},
|
|
157
155
|
methods: {
|
|
@@ -366,7 +364,12 @@ export default {
|
|
|
366
364
|
},
|
|
367
365
|
onConnectivityCollapseChange: function () {
|
|
368
366
|
this.connectivityEntry = [...exampleConnectivityInput]
|
|
369
|
-
}
|
|
367
|
+
},
|
|
368
|
+
showCellCardExplorer: function () {
|
|
369
|
+
this.showCellCards = true;
|
|
370
|
+
this.$refs.sideBar.tabClicked({ id: 4, type: 'cellCardExplorer' });
|
|
371
|
+
this.$refs.sideBar.setDrawerOpen(true);
|
|
372
|
+
},
|
|
370
373
|
},
|
|
371
374
|
mounted: async function () {
|
|
372
375
|
console.log('mounted app')
|
|
@@ -389,6 +392,7 @@ export default {
|
|
|
389
392
|
}
|
|
390
393
|
body {
|
|
391
394
|
margin: 0px;
|
|
395
|
+
font-family: $font-family;
|
|
392
396
|
}
|
|
393
397
|
.map-icon {
|
|
394
398
|
color: $app-primary-color;
|
package/src/assets/styles.scss
CHANGED