@abi-software/map-side-bar 2.20.0 → 2.20.1-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.20.0",
3
+ "version": "2.20.1-demo.0",
4
4
  "license": "Apache-2.0",
5
5
  "engines": {
6
6
  "node": "^24.20.0"
package/src/App.vue CHANGED
@@ -15,6 +15,7 @@
15
15
  <el-button @click="getFacets">Get facets</el-button>
16
16
  <el-button @click="toggleCreateData">Create Data/Annotation</el-button>
17
17
  <el-button @click="openConnectivitySearch()">Connectivity Search</el-button>
18
+ <el-button @click="showCellCardExplorer()">Show Cell Card Explorer</el-button>
18
19
  </div>
19
20
  <SideBar
20
21
  :envVars="envVars"
@@ -26,6 +27,7 @@
26
27
  :connectivityEntry="connectivityEntry"
27
28
  :connectivityKnowledge="connectivityKnowledge"
28
29
  :showVisibilityFilter="true"
30
+ :showCellCards="showCellCards"
29
31
  @search-changed="searchChanged($event)"
30
32
  @hover-changed="hoverChanged($event)"
31
33
  @connectivity-hovered="onConnectivityHovered"
@@ -40,8 +42,7 @@
40
42
  import SideBar from './components/SideBar.vue';
41
43
  import EventBus from './components/EventBus.js';
42
44
  import exampleConnectivityInput from './exampleConnectivityInput.js';
43
-
44
- const capitalise = (str) => str.charAt(0).toUpperCase() + str.slice(1);
45
+ import { capitalise } from './utils/common.js';
45
46
 
46
47
  const flatmapQuery = (flatmapApi, sql) => {
47
48
  const data = { sql: sql };
@@ -134,6 +135,7 @@ export default {
134
135
  BL_SERVER_URL: import.meta.env.VITE_BL_SERVER_URL,
135
136
  ROOT_URL: import.meta.env.VITE_ROOT_URL,
136
137
  FLATMAPAPI_LOCATION: import.meta.env.VITE_FLATMAPAPI_LOCATION,
138
+ CELL_CARDS_API: import.meta.env.VITE_APP_CELL_CARDS_API,
137
139
  },
138
140
  connectivityEntry: [],
139
141
  createData: {
@@ -150,6 +152,7 @@ export default {
150
152
  query: '',
151
153
  filter: [],
152
154
  target: [],
155
+ showCellCards: false,
153
156
  };
154
157
  },
155
158
  methods: {
@@ -364,6 +367,11 @@ export default {
364
367
  onConnectivityCollapseChange: function () {
365
368
  this.connectivityEntry = [...exampleConnectivityInput];
366
369
  },
370
+ showCellCardExplorer: function () {
371
+ this.showCellCards = true;
372
+ this.$refs.sideBar.tabClicked({ id: 4, type: 'cellCardExplorer' });
373
+ this.$refs.sideBar.setDrawerOpen(true);
374
+ },
367
375
  },
368
376
  mounted: async function () {
369
377
  console.log('mounted app');