@abi-software/map-side-bar 2.14.5 → 2.14.6-demo.0

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.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abi-software/map-side-bar",
3
- "version": "2.14.5",
3
+ "version": "2.14.6-demo.0",
4
4
  "license": "Apache-2.0",
5
5
  "repository": {
6
6
  "type": "git",
package/src/App.vue CHANGED
@@ -19,6 +19,7 @@
19
19
  <el-button @click="getFacets">Get facets</el-button>
20
20
  <el-button @click="toggleCreateData">Create Data/Annotation</el-button>
21
21
  <el-button @click="openConnectivitySearch()">Connectivity Search</el-button>
22
+ <el-button @click="showCellCardExplorer()">Show Cell Card Explorer</el-button>
22
23
  </div>
23
24
  <SideBar
24
25
  :envVars="envVars"
@@ -30,6 +31,7 @@
30
31
  :connectivityEntry="connectivityEntry"
31
32
  :connectivityKnowledge="connectivityKnowledge"
32
33
  :showVisibilityFilter="true"
34
+ :showCellCards="showCellCards"
33
35
  @search-changed="searchChanged($event)"
34
36
  @hover-changed="hoverChanged($event)"
35
37
  @connectivity-hovered="onConnectivityHovered"
@@ -45,9 +47,7 @@
45
47
  import SideBar from './components/SideBar.vue'
46
48
  import EventBus from './components/EventBus.js'
47
49
  import exampleConnectivityInput from './exampleConnectivityInput.js'
48
-
49
-
50
- const capitalise = (str) => str.charAt(0).toUpperCase() + str.slice(1);
50
+ import { capitalise } from './utils/common.js'
51
51
 
52
52
  const flatmapQuery = (flatmapApi, sql) => {
53
53
  const data = { sql: sql };
@@ -136,6 +136,7 @@ export default {
136
136
  BL_SERVER_URL: import.meta.env.VITE_APP_BL_SERVER_URL,
137
137
  ROOT_URL: import.meta.env.VITE_APP_ROOT_URL,
138
138
  FLATMAPAPI_LOCATION: import.meta.env.VITE_FLATMAPAPI_LOCATION,
139
+ CELL_CARDS_API: import.meta.env.VITE_APP_CELL_CARDS_API,
139
140
  },
140
141
  connectivityEntry: [],
141
142
  createData: {
@@ -152,6 +153,7 @@ export default {
152
153
  query: '',
153
154
  filter: [],
154
155
  target: [],
156
+ showCellCards: false,
155
157
  }
156
158
  },
157
159
  methods: {
@@ -366,7 +368,12 @@ export default {
366
368
  },
367
369
  onConnectivityCollapseChange: function () {
368
370
  this.connectivityEntry = [...exampleConnectivityInput]
369
- }
371
+ },
372
+ showCellCardExplorer: function () {
373
+ this.showCellCards = true;
374
+ this.$refs.sideBar.tabClicked({ id: 4, type: 'cellCardExplorer' });
375
+ this.$refs.sideBar.setDrawerOpen(true);
376
+ },
370
377
  },
371
378
  mounted: async function () {
372
379
  console.log('mounted app')
@@ -0,0 +1,15 @@
1
+ /*
2
+ * Common styles for connectivity explorer components
3
+ */
4
+
5
+ .id-tag,
6
+ .icon-tag {
7
+ color: #555;
8
+ padding: 2px 4px;
9
+ font-size: .75rem !important;
10
+ }
11
+
12
+ .id-tag {
13
+ background: #e0e0e0;
14
+ border-radius: 4px;
15
+ }