@abi-software/map-side-bar 2.13.0-acupoint.2 → 2.13.0-acupoint.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.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abi-software/map-side-bar",
3
- "version": "2.13.0-acupoint.2",
3
+ "version": "2.13.0-acupoint.3",
4
4
  "license": "Apache-2.0",
5
5
  "repository": {
6
6
  "type": "git",
@@ -163,9 +163,9 @@ export default {
163
163
  "term": "Visualized"
164
164
  },
165
165
  {
166
- "facetPropPath": "acupoints.implied",
166
+ "facetPropPath": "acupoints.onMRI",
167
167
  "facet": "Show all",
168
- "term": "Implied"
168
+ "term": "onMRI"
169
169
  },
170
170
  {
171
171
  "facetPropPath": "acupoints.userDefined",
@@ -191,18 +191,18 @@ export default {
191
191
  ],
192
192
  },
193
193
  {
194
- "key": "acupoints.implied",
195
- "label": "Implied",
194
+ "key": "acupoints.onMRI",
195
+ "label": "Spotted On MRI",
196
196
  "children": [
197
197
  {
198
- "key": "acupoints.implied.yes",
199
- "label": "Implied",
200
- "value": "Implied>Yes"
198
+ "key": "acupoints.onMRI.yes",
199
+ "label": "Spotted",
200
+ "value": "onMRI>Yes"
201
201
  },
202
202
  {
203
- "key": "acupoints.implied.no",
204
- "label": "Not implied",
205
- "value": "Implied>No"
203
+ "key": "acupoints.onMRI.no",
204
+ "label": "Not spotted",
205
+ "value": "onMRI>No"
206
206
  },
207
207
  ],
208
208
  },
@@ -285,11 +285,11 @@ export default {
285
285
  this.currentFilters['curated'] = 'Both'
286
286
  }
287
287
  }
288
- if (filter.facetPropPath === "acupoints.implied") {
289
- if (filter.facet === "Implied") {
290
- this.currentFilters['mri'] = 'Off'
291
- } else if (filter.facet === 'Not implied') {
288
+ if (filter.facetPropPath === "acupoints.onMRI") {
289
+ if (filter.facet === "Spotted") {
292
290
  this.currentFilters['mri'] = 'On'
291
+ } else if (filter.facet === 'Not spotted') {
292
+ this.currentFilters['mri'] = 'Off'
293
293
  } else {
294
294
  this.currentFilters['mri'] = 'Both'
295
295
  }
@@ -323,13 +323,6 @@ export default {
323
323
  });
324
324
 
325
325
  this.search( this.searchInput)
326
-
327
- //this.search();
328
- // this.$emit("search-changed", {
329
- // value: filters,
330
- // tabType: "connectivity",
331
- // type: "filter-update",
332
- // });
333
326
  },
334
327
  numberPerPageUpdate: function (val) {
335
328
  this.numberPerPage = val;
@@ -424,6 +417,10 @@ export default {
424
417
  list: this.results
425
418
  });
426
419
  },
420
+ openSearch: function (filters, searchTerm = '') {
421
+ this.searchInput = searchTerm
422
+ this.filterUpdate(filters)
423
+ },
427
424
  numberPerPageUpdate: function (val) {
428
425
  this.numberPerPage = val
429
426
  this.pageChange(1)
@@ -299,6 +299,15 @@ export default {
299
299
  toggleDrawer: function () {
300
300
  this.drawerOpen = !this.drawerOpen
301
301
  },
302
+ openAcupointsSearch: function (facets, query) {
303
+ this.drawerOpen = true
304
+ // Because refs are in v-for, nextTick is needed here
305
+ this.$nextTick(() => {
306
+ console.log("broken")
307
+ const acupointTabRef = this.getTabRef(undefined, 'acupoints', true);
308
+ acupointTabRef.openSearch(facets, query)
309
+ })
310
+ },
302
311
  openConnectivitySearch: function (facets, query) {
303
312
  this.drawerOpen = true;
304
313
  // Because refs are in v-for, nextTick is needed here
@@ -430,14 +439,6 @@ export default {
430
439
  updateConnectivityError: function (errorInfo) {
431
440
  EventBus.emit('connectivity-error', errorInfo);
432
441
  },
433
- openAcupointsSearch: function (term) {
434
- this.drawerOpen = true
435
- // Because refs are in v-for, nextTick is needed here
436
- this.$nextTick(() => {
437
- const tabRef = this.getTabRef(undefined, 'acupoints', true);
438
- tabRef.search(term);
439
- })
440
- },
441
442
  /**
442
443
  * Store available anatomy facets data for connectivity list component
443
444
  */