@abi-software/map-side-bar 1.3.14 → 1.3.17

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.
@@ -224,6 +224,13 @@ module.exports = require("@abi-software/gallery");
224
224
 
225
225
  /***/ }),
226
226
 
227
+ /***/ "3c4b":
228
+ /***/ (function(module, exports, __webpack_require__) {
229
+
230
+ // extracted by mini-css-extract-plugin
231
+
232
+ /***/ }),
233
+
227
234
  /***/ "3e88":
228
235
  /***/ (function(module, exports) {
229
236
 
@@ -607,6 +614,17 @@ module.exports = require("element-ui/lib/icon");
607
614
 
608
615
  /***/ }),
609
616
 
617
+ /***/ "b464":
618
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
619
+
620
+ "use strict";
621
+ /* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_vue_cli_service_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_ContextCard_vue_vue_type_style_index_0_id_39be962d_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("3c4b");
622
+ /* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_vue_cli_service_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_ContextCard_vue_vue_type_style_index_0_id_39be962d_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_vue_cli_service_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_ContextCard_vue_vue_type_style_index_0_id_39be962d_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__);
623
+ /* unused harmony reexport * */
624
+ /* unused harmony default export */ var _unused_webpack_default_export = (_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_vue_cli_service_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_ContextCard_vue_vue_type_style_index_0_id_39be962d_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default.a);
625
+
626
+ /***/ }),
627
+
610
628
  /***/ "b629":
611
629
  /***/ (function(module, exports, __webpack_require__) {
612
630
 
@@ -656,13 +674,6 @@ module.exports = require("element-ui/lib/option");
656
674
 
657
675
  /***/ }),
658
676
 
659
- /***/ "c57c":
660
- /***/ (function(module, exports, __webpack_require__) {
661
-
662
- // extracted by mini-css-extract-plugin
663
-
664
- /***/ }),
665
-
666
677
  /***/ "cbfe":
667
678
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
668
679
 
@@ -731,17 +742,6 @@ module.exports = require("core-js/modules/es.object.entries");
731
742
 
732
743
  /***/ }),
733
744
 
734
- /***/ "ee3a":
735
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
736
-
737
- "use strict";
738
- /* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_vue_cli_service_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_ContextCard_vue_vue_type_style_index_0_id_6d57ce81_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("c57c");
739
- /* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_vue_cli_service_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_ContextCard_vue_vue_type_style_index_0_id_6d57ce81_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_vue_cli_service_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_ContextCard_vue_vue_type_style_index_0_id_6d57ce81_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__);
740
- /* unused harmony reexport * */
741
- /* unused harmony default export */ var _unused_webpack_default_export = (_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_vue_cli_service_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_ContextCard_vue_vue_type_style_index_0_id_6d57ce81_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default.a);
742
-
743
- /***/ }),
744
-
745
745
  /***/ "ee85":
746
746
  /***/ (function(module, exports) {
747
747
 
@@ -1351,177 +1351,6 @@ function _createClass(Constructor, protoProps, staticProps) {
1351
1351
  var external_algoliasearch_ = __webpack_require__("88eb");
1352
1352
  var external_algoliasearch_default = /*#__PURE__*/__webpack_require__.n(external_algoliasearch_);
1353
1353
 
1354
- // CONCATENATED MODULE: ./src/algolia/markerZoomLevels.js
1355
- // Set zoom values for micro and mesoscopic
1356
- var microscopic = 7;
1357
- var mesoscopic = 5; // Set what level each uberon shows at
1358
-
1359
- /* harmony default export */ var markerZoomLevels = ([{
1360
- "id": "UBERON:0000948",
1361
- "name": "heart",
1362
- "showAtZoom": 1
1363
- }, {
1364
- "id": "UBERON:0001759",
1365
- "name": "vagus nerve",
1366
- "showAtZoom": 1
1367
- }, {
1368
- "id": "UBERON:0001155",
1369
- "name": "colon",
1370
- "showAtZoom": 1
1371
- }, {
1372
- "id": "UBERON:0000945",
1373
- "name": "stomach",
1374
- "showAtZoom": 1
1375
- }, {
1376
- "id": "UBERON:0001013",
1377
- "name": "adipose tissue",
1378
- "showAtZoom": 1
1379
- }, {
1380
- "id": "UBERON:0001255",
1381
- "name": "urinary bladder",
1382
- "showAtZoom": 1
1383
- }, {
1384
- "id": "UBERON:0001348",
1385
- "name": "brown adipose tissue",
1386
- "showAtZoom": 6
1387
- }, {
1388
- "id": "UBERON:0002008",
1389
- "name": "cardiac nerve plexus",
1390
- "showAtZoom": 1
1391
- }, {
1392
- "id": "UBERON:0002240",
1393
- "name": "spinal cord",
1394
- "showAtZoom": 1
1395
- }, {
1396
- "id": "UBERON:0002005",
1397
- "name": "Enteric Nervous System",
1398
- "showAtZoom": 4
1399
- }, {
1400
- "id": "UBERON:0013702",
1401
- "name": "body proper",
1402
- "showAtZoom": 1
1403
- }, {
1404
- "id": "UBERON:0002298",
1405
- "name": "brainstem",
1406
- "showAtZoom": 1
1407
- }, {
1408
- "id": "UBERON:0002439",
1409
- "name": "myenteric nerve plexus",
1410
- "showAtZoom": 6
1411
- }, {
1412
- "id": "UBERON:0000010",
1413
- "name": "peripheral nervous system",
1414
- "showAtZoom": 6
1415
- }, {
1416
- "id": "UBERON:0002048",
1417
- "name": "lung",
1418
- "showAtZoom": 1
1419
- }, {
1420
- "id": "UBERON:0002410",
1421
- "name": "autonomic nervous system",
1422
- "showAtZoom": 6
1423
- }, {
1424
- "id": "UBERON:0002441",
1425
- "name": "cervicothoracic ganglion",
1426
- "showAtZoom": 6
1427
- }, {
1428
- "id": "UBERON:0005363",
1429
- "name": "inferior vagus X ganglion",
1430
- "showAtZoom": 6
1431
- }, {
1432
- "id": "UBERON:0001264",
1433
- "name": "pancreas",
1434
- "showAtZoom": 1
1435
- }, {
1436
- "id": "UBERON:0001884",
1437
- "name": "phrenic nerve",
1438
- "showAtZoom": 6
1439
- }, {
1440
- "id": "UBERON:0002059",
1441
- "name": "submandibular ganglion",
1442
- "showAtZoom": 7
1443
- }, {
1444
- "id": "UBERON:0001347",
1445
- "name": "white adipose tissue",
1446
- "showAtZoom": 6
1447
- }, {
1448
- "id": "UBERON:0001556",
1449
- "name": "lower urinary tract",
1450
- "showAtZoom": 1
1451
- }, {
1452
- "id": "UBERON:0002262",
1453
- "name": "celiac ganglion",
1454
- "showAtZoom": 5
1455
- }, {
1456
- "id": "UBERON:0000955",
1457
- "name": "Brain",
1458
- "showAtZoom": 1
1459
- }, {
1460
- "id": "UBERON:0000160",
1461
- "name": "intestine",
1462
- "showAtZoom": 1
1463
- }, {
1464
- "id": "UBERON:0001322",
1465
- "name": "sciatic nerve",
1466
- "showAtZoom": 1
1467
- }, {
1468
- "id": "UBERON:0001649",
1469
- "name": "glossopharyngeal nerve",
1470
- "showAtZoom": 6
1471
- }, {
1472
- "id": "UBERON:0002063",
1473
- "name": "sinus venosus",
1474
- "showAtZoom": 6
1475
- }, {
1476
- "id": "UBERON:0002107",
1477
- "name": "liver",
1478
- "showAtZoom": 1
1479
- }, {
1480
- "id": "UBERON:0002113",
1481
- "name": "kidney",
1482
- "showAtZoom": 1
1483
- }, {
1484
- "id": "UBERON:0002481",
1485
- "name": "bone tissue",
1486
- "showAtZoom": 1
1487
- }, {
1488
- "id": "UBERON:0004907",
1489
- "name": "lower digestive tract",
1490
- "showAtZoom": 4
1491
- }, {
1492
- "id": "UBERON:0000044",
1493
- "name": "Dorsal root ganglion",
1494
- "showAtZoom": 5
1495
- }, // New levels from Keeran
1496
- {
1497
- "id": "UBERON:0001736",
1498
- "name": "Submandibular gland",
1499
- "showAtZoom": microscopic
1500
- }, {
1501
- "id": "UBERON:0001103",
1502
- "name": "Diaphragm",
1503
- "showAtZoom": mesoscopic
1504
- }, {
1505
- "id": "UBERON:0001160",
1506
- "name": "Fundus of stomach",
1507
- "showAtZoom": mesoscopic
1508
- }, {
1509
- "id": "UBERON:0000955",
1510
- "name": "Brain",
1511
- "showAtZoom": mesoscopic
1512
- }, {
1513
- "id": "UBERON:0003708",
1514
- "name": "Carotid sinus",
1515
- "showAtZoom": microscopic
1516
- }, {
1517
- "id": "UBERON:0002079",
1518
- "name": "Left cardiac atrium",
1519
- "showAtZoom": mesoscopic
1520
- }, {
1521
- "id": "ILX:0485722",
1522
- "name": "Nodose ganglion",
1523
- "showAtZoom": microscopic
1524
- }]);
1525
1354
  // CONCATENATED MODULE: ./src/algolia/algolia.js
1526
1355
 
1527
1356
 
@@ -1562,7 +1391,6 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
1562
1391
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
1563
1392
 
1564
1393
  /* eslint-disable no-alert, no-console */
1565
-
1566
1394
  // export `createAlgoliaClient` to use it in page components
1567
1395
 
1568
1396
  var algolia_AlgoliaClient =
@@ -1714,11 +1542,9 @@ function () {
1714
1542
 
1715
1543
  if (hit.anatomy && hit.anatomy.organ) {
1716
1544
  hit.anatomy.organ.forEach(function (anatomy) {
1717
- markerZoomLevels.forEach(function (marker) {
1718
- if (anatomy.name.toLowerCase() === marker.name.toLowerCase()) {
1719
- foundKeyWords.push(marker.id);
1720
- }
1721
- });
1545
+ if (anatomy.curie) {
1546
+ foundKeyWords.push(anatomy.curie);
1547
+ }
1722
1548
  });
1723
1549
  }
1724
1550
  });
@@ -1787,7 +1613,7 @@ function () {
1787
1613
  page: page - 1,
1788
1614
  filters: filter,
1789
1615
  attributesToHighlight: [],
1790
- attributesToRetrieve: ['item.keywords.keyword', 'anatomy.organ.name']
1616
+ attributesToRetrieve: ['item.keywords.keyword', 'anatomy.organ.name', 'anatomy.organ.curie']
1791
1617
  }).then(function (response) {
1792
1618
  var anatomyAsUberons = _this4._processAnatomy(response.hits);
1793
1619
 
@@ -1881,7 +1707,6 @@ function getFilters() {
1881
1707
 
1882
1708
  filters = filters.split('()AND ').join(''); // Handle case where there where no OR facets
1883
1709
  });
1884
- console.log('filter string: ', filters.substring(0, filters.lastIndexOf(" AND ")));
1885
1710
  return filters.substring(0, filters.lastIndexOf(" AND "));
1886
1711
  }
1887
1712
 
@@ -3376,12 +3201,12 @@ var DatasetCard_component = normalizeComponent(
3376
3201
  )
3377
3202
 
3378
3203
  /* harmony default export */ var DatasetCard = (DatasetCard_component.exports);
3379
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"474bd094-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/ContextCard.vue?vue&type=template&id=6d57ce81&scoped=true&
3380
- var ContextCardvue_type_template_id_6d57ce81_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{ref:"container",staticClass:"context-card-container"},[_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.showContextCard),expression:"showContextCard"}]},[_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.showDetails),expression:"showDetails"}],staticClass:"hide",on:{"click":function($event){_vm.showDetails = !_vm.showDetails}}},[_vm._v("Hide information"),_c('i',{staticClass:"el-icon-arrow-up"})]),_c('div',{directives:[{name:"show",rawName:"v-show",value:(!_vm.showDetails),expression:"!showDetails"}],staticClass:"hide",on:{"click":function($event){_vm.showDetails = !_vm.showDetails}}},[_vm._v("Show information"),_c('i',{staticClass:"el-icon-arrow-down"})]),(_vm.showDetails && Object.keys(_vm.contextData).length !== 0)?_c('el-card',{directives:[{name:"loading",rawName:"v-loading",value:(_vm.loading),expression:"loading"}],staticClass:"context-card"},[_c('div',{staticClass:"card-left"},[_c('img',{staticClass:"context-image",attrs:{"src":_vm.entry.banner}})]),_c('div',{staticClass:"card-right scrollbar"},[_c('div',{staticClass:"title"},[_vm._v(_vm._s(_vm.contextData.heading))]),_c('div',{domProps:{"innerHTML":_vm._s(_vm.contextData.description)}}),_c('br'),_vm._v(" sample under views: "+_vm._s(_vm.samplesUnderViews)+" "),(_vm.contextData.views && _vm.contextData.views.length > 0)?_c('div',{staticClass:"subtitle"},[_vm._v("Scaffold Views")]):_vm._e(),_vm._l((_vm.contextData.views),function(view,i){return [_c('div',{key:i+'_1',staticClass:"context-card-view",on:{"click":function($event){return _vm.openViewFile(view)}}},[_c('img',{staticClass:"view-image",attrs:{"src":_vm.getFileFromPath(view.thumbnail)}}),_c('div',{staticClass:"view-description"},[_vm._v(_vm._s(view.description))])]),_c('div',{key:i,staticClass:"padding"})]}),_c('div',{staticStyle:{"margin-bottom":"16px"}}),(_vm.contextData.samples && _vm.contextData.samples.length > 0)?_c('div',{staticClass:"subtitle"},[_vm._v("Samples on Scaffold")]):_vm._e(),_vm._l((_vm.contextData.samples),function(sample,i){return [_c('span',{key:i+'_3',staticClass:"context-card-item cursor-pointer",on:{"click":function($event){return _vm.toggleSampleDetails(i)}}},[_c('div',{key:i+'_6',staticStyle:{"display":"flex"}},[(sample.color)?_c('div',{staticClass:"color-box",style:('background-color:'+ sample.color)}):(sample.thumbnail)?_c('img',{staticClass:"key-image",attrs:{"src":_vm.getFileFromPath(sample.thumbnail)}}):_vm._e(),_vm._v(" "+_vm._s(sample.heading)+" "),_c('i',{staticClass:"el-icon-warning-outline info"})])]),(_vm.sampleDetails[i])?_c('div',{key:i+'_4',domProps:{"innerHTML":_vm._s(sample.description)}}):_vm._e(),(_vm.sampleDetails[i])?_c('a',{key:i+'_5',attrs:{"href":_vm.generateFileLink(sample.path),"target":"_blank"}},[_vm._v("View Source")]):_vm._e(),_c('div',{key:i+'_2',staticClass:"padding"})]})],2)]):_vm._e()],1)])}
3381
- var ContextCardvue_type_template_id_6d57ce81_scoped_true_staticRenderFns = []
3204
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"474bd094-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/ContextCard.vue?vue&type=template&id=39be962d&scoped=true&
3205
+ var ContextCardvue_type_template_id_39be962d_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{ref:"container",staticClass:"context-card-container"},[_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.showContextCard),expression:"showContextCard"}]},[_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.showDetails),expression:"showDetails"}],staticClass:"hide",on:{"click":function($event){_vm.showDetails = !_vm.showDetails}}},[_vm._v("Hide information"),_c('i',{staticClass:"el-icon-arrow-up"})]),_c('div',{directives:[{name:"show",rawName:"v-show",value:(!_vm.showDetails),expression:"!showDetails"}],staticClass:"hide",on:{"click":function($event){_vm.showDetails = !_vm.showDetails}}},[_vm._v("Show information"),_c('i',{staticClass:"el-icon-arrow-down"})]),(_vm.showDetails && Object.keys(_vm.contextData).length !== 0)?_c('el-card',{directives:[{name:"loading",rawName:"v-loading",value:(_vm.loading),expression:"loading"}],staticClass:"context-card"},[_c('div',{staticClass:"card-left"},[_c('img',{staticClass:"context-image",attrs:{"src":_vm.entry.banner}})]),_c('div',{staticClass:"card-right scrollbar"},[_c('div',{staticClass:"title"},[_vm._v(_vm._s(_vm.contextData.heading))]),_c('div',{domProps:{"innerHTML":_vm._s(_vm.contextData.description)}}),_c('br'),(!_vm.samplesUnderViews)?[(_vm.contextData.views && _vm.contextData.views.length > 0)?_c('div',{staticClass:"subtitle"},[_vm._v("Scaffold Views")]):_vm._e(),_vm._l((_vm.contextData.views),function(view,i){return [_c('div',{key:i+'_1',staticClass:"context-card-view",on:{"click":function($event){return _vm.openViewFile(view)}}},[_c('img',{staticClass:"view-image",attrs:{"src":_vm.getFileFromPath(view.thumbnail)}}),_c('div',{staticClass:"view-description"},[_vm._v(_vm._s(view.description))])]),_c('div',{key:i,staticClass:"padding"})]}),_c('div',{staticStyle:{"margin-bottom":"16px"}}),(_vm.contextData.samples && _vm.contextData.samples.length > 0)?_c('div',{staticClass:"subtitle"},[_vm._v("Samples on Scaffold")]):_vm._e(),_vm._l((_vm.contextData.samples),function(sample,i){return [_c('span',{key:i+'_3',staticClass:"context-card-item cursor-pointer",on:{"click":function($event){return _vm.toggleSampleDetails(i)}}},[_c('div',{key:i+'_6',staticStyle:{"display":"flex"}},[(sample.color)?_c('div',{staticClass:"color-box",style:('background-color:'+ sample.color)}):(sample.thumbnail)?_c('img',{staticClass:"key-image",attrs:{"src":_vm.getFileFromPath(sample.thumbnail)}}):_vm._e(),_vm._v(" "+_vm._s(sample.heading)+" "),_c('i',{staticClass:"el-icon-warning-outline info"})])]),(_vm.sampleDetails[i])?_c('div',{key:i+'_4',domProps:{"innerHTML":_vm._s(sample.description)}}):_vm._e(),(_vm.sampleDetails[i])?_c('a',{key:i+'_5',attrs:{"href":_vm.generateFileLink(sample.path),"target":"_blank"}},[_vm._v("View Source")]):_vm._e(),_c('div',{key:i+'_2',staticClass:"padding"})]})]:[(_vm.contextData.views && _vm.contextData.views.length > 0)?_c('div',{staticClass:"subtitle"},[_vm._v("Scaffold Views")]):_vm._e(),_vm._l((_vm.contextData.views),function(view,i){return [_c('span',{key:i+'_1',staticClass:"context-card-view",on:{"click":function($event){return _vm.viewClicked(view, i)}}},[_c('img',{staticClass:"view-image",attrs:{"src":_vm.getFileFromPath(view.thumbnail)}}),_c('div',{staticClass:"view-description"},[_vm._v(_vm._s(view.description)),_c('i',{staticClass:"el-icon-warning-outline info"})])]),(_vm.sampleDetails[i])?_c('div',{key:i+'_2',domProps:{"innerHTML":_vm._s(_vm.samplesMatching(view.id).description)}}):_vm._e(),(_vm.sampleDetails[i])?_c('a',{key:i+'_5',attrs:{"href":_vm.generateFileLink(_vm.samplesMatching(view.id).path),"target":"_blank"}},[_vm._v("View Source")]):_vm._e(),_c('div',{key:i,staticClass:"padding"}),(_vm.sampleDetails[i])?_c('div',{key:i+'_6',staticClass:"padding"}):_vm._e()]})]],2)]):_vm._e()],1)])}
3206
+ var ContextCardvue_type_template_id_39be962d_scoped_true_staticRenderFns = []
3382
3207
 
3383
3208
 
3384
- // CONCATENATED MODULE: ./src/components/ContextCard.vue?vue&type=template&id=6d57ce81&scoped=true&
3209
+ // CONCATENATED MODULE: ./src/components/ContextCard.vue?vue&type=template&id=39be962d&scoped=true&
3385
3210
 
3386
3211
  // EXTERNAL MODULE: external "element-ui/lib/theme-chalk/link.css"
3387
3212
  var link_css_ = __webpack_require__("230a");
@@ -3493,8 +3318,6 @@ var link_default = /*#__PURE__*/__webpack_require__.n(link_);
3493
3318
 
3494
3319
 
3495
3320
 
3496
-
3497
-
3498
3321
 
3499
3322
 
3500
3323
 
@@ -3542,6 +3365,26 @@ var link_default = /*#__PURE__*/__webpack_require__.n(link_);
3542
3365
  //
3543
3366
  //
3544
3367
  //
3368
+ //
3369
+ //
3370
+ //
3371
+ //
3372
+ //
3373
+ //
3374
+ //
3375
+ //
3376
+ //
3377
+ //
3378
+ //
3379
+ //
3380
+ //
3381
+ //
3382
+ //
3383
+ //
3384
+ //
3385
+ //
3386
+ //
3387
+ //
3545
3388
 
3546
3389
  /* eslint-disable no-alert, no-console */
3547
3390
 
@@ -3595,26 +3438,41 @@ external_vue_default.a.use(input_default.a);
3595
3438
  computed: {
3596
3439
  samplesUnderViews: function samplesUnderViews() {
3597
3440
  if (this.contextData) {
3598
- var viewDescriptions = this.contextData.views.map(function (v) {
3599
- return v.description;
3600
- });
3601
- var samplesHeadings = this.contextData.samples.map(function (s) {
3602
- return s.heading;
3603
- }); // get matching values
3441
+ if (this.contextData.samplesUnderViews) {
3442
+ return true;
3443
+ } else {
3444
+ var viewId = this.contextData.views.map(function (v) {
3445
+ return v.id;
3446
+ });
3447
+ var samplesView = this.contextData.samples.map(function (s) {
3448
+ return s.view;
3449
+ }); // get matching values
3604
3450
 
3605
- var matching = viewDescriptions.filter(function (v) {
3606
- return samplesHeadings.includes(v);
3607
- }); // check all arrays have the same length (which means all values are in all three)
3451
+ var matching = viewId.filter(function (v) {
3452
+ return samplesView.includes(v);
3453
+ }); // check all arrays have the same length (which means all values are in all three)
3608
3454
 
3609
- if (viewDescriptions.length === matching.length && matching.length === samplesHeadings.length) {
3610
- return true;
3611
- }
3612
- }
3455
+ if (viewId.length === matching.length && matching.length === samplesView.length) {
3456
+ return true;
3457
+ }
3613
3458
 
3614
- return false;
3459
+ return false;
3460
+ }
3461
+ } else return false;
3615
3462
  }
3616
3463
  },
3617
3464
  methods: {
3465
+ samplesMatching: function samplesMatching(viewId) {
3466
+ if (this.contextData && this.contextData.samples) {
3467
+ return this.contextData.samples.filter(function (s) {
3468
+ return s.view == viewId;
3469
+ })[0];
3470
+ } else return [];
3471
+ },
3472
+ viewClicked: function viewClicked(view, i) {
3473
+ this.openViewFile(view);
3474
+ this.toggleSampleDetails(i);
3475
+ },
3618
3476
  getContextFile: function getContextFile(contextFileUrl) {
3619
3477
  var _this = this;
3620
3478
 
@@ -3673,8 +3531,8 @@ external_vue_default.a.use(input_default.a);
3673
3531
  });
3674
3532
  // CONCATENATED MODULE: ./src/components/ContextCard.vue?vue&type=script&lang=js&
3675
3533
  /* harmony default export */ var components_ContextCardvue_type_script_lang_js_ = (ContextCardvue_type_script_lang_js_);
3676
- // EXTERNAL MODULE: ./src/components/ContextCard.vue?vue&type=style&index=0&id=6d57ce81&scoped=true&lang=css&
3677
- var ContextCardvue_type_style_index_0_id_6d57ce81_scoped_true_lang_css_ = __webpack_require__("ee3a");
3534
+ // EXTERNAL MODULE: ./src/components/ContextCard.vue?vue&type=style&index=0&id=39be962d&scoped=true&lang=css&
3535
+ var ContextCardvue_type_style_index_0_id_39be962d_scoped_true_lang_css_ = __webpack_require__("b464");
3678
3536
 
3679
3537
  // CONCATENATED MODULE: ./src/components/ContextCard.vue
3680
3538
 
@@ -3687,11 +3545,11 @@ var ContextCardvue_type_style_index_0_id_6d57ce81_scoped_true_lang_css_ = __webp
3687
3545
 
3688
3546
  var ContextCard_component = normalizeComponent(
3689
3547
  components_ContextCardvue_type_script_lang_js_,
3690
- ContextCardvue_type_template_id_6d57ce81_scoped_true_render,
3691
- ContextCardvue_type_template_id_6d57ce81_scoped_true_staticRenderFns,
3548
+ ContextCardvue_type_template_id_39be962d_scoped_true_render,
3549
+ ContextCardvue_type_template_id_39be962d_scoped_true_staticRenderFns,
3692
3550
  false,
3693
3551
  null,
3694
- "6d57ce81",
3552
+ "39be962d",
3695
3553
  null
3696
3554
 
3697
3555
  )