@abi-software/map-side-bar 1.1.2 → 1.1.5-beta-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/README.md +11 -2
- package/dist/map-side-bar.common.js +714 -322
- package/dist/map-side-bar.common.js.map +1 -1
- package/dist/map-side-bar.css +1 -1
- package/dist/map-side-bar.umd.js +714 -322
- package/dist/map-side-bar.umd.js.map +1 -1
- package/dist/map-side-bar.umd.min.js +1 -1
- package/dist/map-side-bar.umd.min.js.map +1 -1
- package/package-lock.json +384 -146
- package/package.json +3 -1
- package/public/index.html +1 -1
- package/src/App.vue +14 -4
- package/src/algolia/algolia.js +98 -0
- package/src/algolia/utils.js +52 -0
- package/src/components/DatasetCard.vue +93 -21
- package/src/components/SearchFilters.vue +158 -129
- package/src/components/SideBar.vue +11 -6
- package/src/components/SidebarContent.vue +80 -81
package/dist/map-side-bar.umd.js
CHANGED
|
@@ -138,17 +138,17 @@ module.exports = require("element-ui/lib/theme-chalk/select.css");
|
|
|
138
138
|
|
|
139
139
|
/***/ }),
|
|
140
140
|
|
|
141
|
-
/***/ "
|
|
142
|
-
/***/ (function(module, exports) {
|
|
141
|
+
/***/ "12bc":
|
|
142
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
143
143
|
|
|
144
|
-
|
|
144
|
+
// extracted by mini-css-extract-plugin
|
|
145
145
|
|
|
146
146
|
/***/ }),
|
|
147
147
|
|
|
148
|
-
/***/ "
|
|
149
|
-
/***/ (function(module, exports
|
|
148
|
+
/***/ "139f":
|
|
149
|
+
/***/ (function(module, exports) {
|
|
150
150
|
|
|
151
|
-
|
|
151
|
+
module.exports = require("core-js/modules/es.array.for-each");
|
|
152
152
|
|
|
153
153
|
/***/ }),
|
|
154
154
|
|
|
@@ -191,17 +191,6 @@ module.exports = require("element-ui/lib/theme-chalk/link.css");
|
|
|
191
191
|
|
|
192
192
|
/***/ }),
|
|
193
193
|
|
|
194
|
-
/***/ "2394":
|
|
195
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
196
|
-
|
|
197
|
-
"use strict";
|
|
198
|
-
/* 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_DatasetCard_vue_vue_type_style_index_0_id_0b100df4_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("dfc9");
|
|
199
|
-
/* 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_DatasetCard_vue_vue_type_style_index_0_id_0b100df4_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_DatasetCard_vue_vue_type_style_index_0_id_0b100df4_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__);
|
|
200
|
-
/* unused harmony reexport * */
|
|
201
|
-
/* 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_DatasetCard_vue_vue_type_style_index_0_id_0b100df4_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default.a);
|
|
202
|
-
|
|
203
|
-
/***/ }),
|
|
204
|
-
|
|
205
194
|
/***/ "26bc":
|
|
206
195
|
/***/ (function(module, exports) {
|
|
207
196
|
|
|
@@ -230,13 +219,6 @@ module.exports = require("element-ui/lib/theme-chalk/loading.css");
|
|
|
230
219
|
|
|
231
220
|
/***/ }),
|
|
232
221
|
|
|
233
|
-
/***/ "3263":
|
|
234
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
235
|
-
|
|
236
|
-
// extracted by mini-css-extract-plugin
|
|
237
|
-
|
|
238
|
-
/***/ }),
|
|
239
|
-
|
|
240
222
|
/***/ "36d7":
|
|
241
223
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
242
224
|
|
|
@@ -318,6 +300,13 @@ module.exports = require("core-js/modules/es.regexp.exec");
|
|
|
318
300
|
|
|
319
301
|
/***/ }),
|
|
320
302
|
|
|
303
|
+
/***/ "5835":
|
|
304
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
305
|
+
|
|
306
|
+
// extracted by mini-css-extract-plugin
|
|
307
|
+
|
|
308
|
+
/***/ }),
|
|
309
|
+
|
|
321
310
|
/***/ "5d8c":
|
|
322
311
|
/***/ (function(module, exports) {
|
|
323
312
|
|
|
@@ -339,17 +328,6 @@ module.exports = require("core-js/modules/es.symbol");
|
|
|
339
328
|
|
|
340
329
|
/***/ }),
|
|
341
330
|
|
|
342
|
-
/***/ "625c":
|
|
343
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
344
|
-
|
|
345
|
-
"use strict";
|
|
346
|
-
/* 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_SideBar_vue_vue_type_style_index_0_id_a53cebae_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("a2e0");
|
|
347
|
-
/* 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_SideBar_vue_vue_type_style_index_0_id_a53cebae_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_SideBar_vue_vue_type_style_index_0_id_a53cebae_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__);
|
|
348
|
-
/* unused harmony reexport * */
|
|
349
|
-
/* 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_SideBar_vue_vue_type_style_index_0_id_a53cebae_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default.a);
|
|
350
|
-
|
|
351
|
-
/***/ }),
|
|
352
|
-
|
|
353
331
|
/***/ "6579":
|
|
354
332
|
/***/ (function(module, exports) {
|
|
355
333
|
|
|
@@ -392,14 +370,10 @@ module.exports = require("element-ui/lib/theme-chalk/cascader.css");
|
|
|
392
370
|
|
|
393
371
|
/***/ }),
|
|
394
372
|
|
|
395
|
-
/***/ "
|
|
396
|
-
/***/ (function(module,
|
|
373
|
+
/***/ "6ed7":
|
|
374
|
+
/***/ (function(module, exports) {
|
|
397
375
|
|
|
398
|
-
|
|
399
|
-
/* 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_SearchFilters_vue_vue_type_style_index_0_id_260d83f6_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("1739");
|
|
400
|
-
/* 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_SearchFilters_vue_vue_type_style_index_0_id_260d83f6_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_SearchFilters_vue_vue_type_style_index_0_id_260d83f6_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__);
|
|
401
|
-
/* unused harmony reexport * */
|
|
402
|
-
/* 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_SearchFilters_vue_vue_type_style_index_0_id_260d83f6_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default.a);
|
|
376
|
+
module.exports = require("core-js/modules/es.array.sort");
|
|
403
377
|
|
|
404
378
|
/***/ }),
|
|
405
379
|
|
|
@@ -410,6 +384,13 @@ module.exports = require("core-js/modules/es.number.constructor");
|
|
|
410
384
|
|
|
411
385
|
/***/ }),
|
|
412
386
|
|
|
387
|
+
/***/ "7919":
|
|
388
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
389
|
+
|
|
390
|
+
// extracted by mini-css-extract-plugin
|
|
391
|
+
|
|
392
|
+
/***/ }),
|
|
393
|
+
|
|
413
394
|
/***/ "79d0":
|
|
414
395
|
/***/ (function(module, exports) {
|
|
415
396
|
|
|
@@ -459,6 +440,13 @@ module.exports = require("core-js/modules/es.object.to-string");
|
|
|
459
440
|
|
|
460
441
|
/***/ }),
|
|
461
442
|
|
|
443
|
+
/***/ "88eb":
|
|
444
|
+
/***/ (function(module, exports) {
|
|
445
|
+
|
|
446
|
+
module.exports = require("algoliasearch");
|
|
447
|
+
|
|
448
|
+
/***/ }),
|
|
449
|
+
|
|
462
450
|
/***/ "8bbf":
|
|
463
451
|
/***/ (function(module, exports) {
|
|
464
452
|
|
|
@@ -487,6 +475,13 @@ module.exports = require("core-js/modules/es.string.iterator");
|
|
|
487
475
|
|
|
488
476
|
/***/ }),
|
|
489
477
|
|
|
478
|
+
/***/ "9861":
|
|
479
|
+
/***/ (function(module, exports) {
|
|
480
|
+
|
|
481
|
+
module.exports = require("core-js/modules/es.map");
|
|
482
|
+
|
|
483
|
+
/***/ }),
|
|
484
|
+
|
|
490
485
|
/***/ "9a25":
|
|
491
486
|
/***/ (function(module, exports) {
|
|
492
487
|
|
|
@@ -494,17 +489,17 @@ module.exports = require("element-ui/lib/theme-chalk/base.css");
|
|
|
494
489
|
|
|
495
490
|
/***/ }),
|
|
496
491
|
|
|
497
|
-
/***/ "
|
|
498
|
-
/***/ (function(module, exports
|
|
492
|
+
/***/ "9a3c":
|
|
493
|
+
/***/ (function(module, exports) {
|
|
499
494
|
|
|
500
|
-
module.exports =
|
|
495
|
+
module.exports = require("core-js/modules/es.array.flat");
|
|
501
496
|
|
|
502
497
|
/***/ }),
|
|
503
498
|
|
|
504
|
-
/***/ "
|
|
499
|
+
/***/ "9b53":
|
|
505
500
|
/***/ (function(module, exports, __webpack_require__) {
|
|
506
501
|
|
|
507
|
-
|
|
502
|
+
module.exports = __webpack_require__.p + "img/missing-image.1878d8b8.svg";
|
|
508
503
|
|
|
509
504
|
/***/ }),
|
|
510
505
|
|
|
@@ -543,6 +538,17 @@ module.exports = require("element-ui/lib/icon");
|
|
|
543
538
|
|
|
544
539
|
/***/ }),
|
|
545
540
|
|
|
541
|
+
/***/ "bc5f":
|
|
542
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
543
|
+
|
|
544
|
+
"use strict";
|
|
545
|
+
/* 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_SideBar_vue_vue_type_style_index_0_id_3d831a8e_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("5835");
|
|
546
|
+
/* 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_SideBar_vue_vue_type_style_index_0_id_3d831a8e_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_SideBar_vue_vue_type_style_index_0_id_3d831a8e_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__);
|
|
547
|
+
/* unused harmony reexport * */
|
|
548
|
+
/* 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_SideBar_vue_vue_type_style_index_0_id_3d831a8e_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default.a);
|
|
549
|
+
|
|
550
|
+
/***/ }),
|
|
551
|
+
|
|
546
552
|
/***/ "bcd8":
|
|
547
553
|
/***/ (function(module, exports) {
|
|
548
554
|
|
|
@@ -557,6 +563,24 @@ module.exports = require("core-js/modules/web.dom-collections.for-each");
|
|
|
557
563
|
|
|
558
564
|
/***/ }),
|
|
559
565
|
|
|
566
|
+
/***/ "be47":
|
|
567
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
568
|
+
|
|
569
|
+
"use strict";
|
|
570
|
+
/* 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_SidebarContent_vue_vue_type_style_index_0_id_2e1db9a4_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("efa2");
|
|
571
|
+
/* 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_SidebarContent_vue_vue_type_style_index_0_id_2e1db9a4_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_SidebarContent_vue_vue_type_style_index_0_id_2e1db9a4_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__);
|
|
572
|
+
/* unused harmony reexport * */
|
|
573
|
+
/* 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_SidebarContent_vue_vue_type_style_index_0_id_2e1db9a4_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default.a);
|
|
574
|
+
|
|
575
|
+
/***/ }),
|
|
576
|
+
|
|
577
|
+
/***/ "be6e":
|
|
578
|
+
/***/ (function(module, exports) {
|
|
579
|
+
|
|
580
|
+
module.exports = require("core-js/modules/es.string.search");
|
|
581
|
+
|
|
582
|
+
/***/ }),
|
|
583
|
+
|
|
560
584
|
/***/ "bfab":
|
|
561
585
|
/***/ (function(module, exports) {
|
|
562
586
|
|
|
@@ -571,14 +595,21 @@ module.exports = require("element-ui/lib/option");
|
|
|
571
595
|
|
|
572
596
|
/***/ }),
|
|
573
597
|
|
|
574
|
-
/***/ "
|
|
598
|
+
/***/ "c3dd":
|
|
575
599
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
576
600
|
|
|
577
601
|
"use strict";
|
|
578
|
-
/* harmony import */ var
|
|
579
|
-
/* harmony import */ var
|
|
602
|
+
/* 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_DatasetCard_vue_vue_type_style_index_0_id_eaeba60a_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("7919");
|
|
603
|
+
/* 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_DatasetCard_vue_vue_type_style_index_0_id_eaeba60a_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_DatasetCard_vue_vue_type_style_index_0_id_eaeba60a_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__);
|
|
580
604
|
/* unused harmony reexport * */
|
|
581
|
-
/* unused harmony default export */ var _unused_webpack_default_export = (
|
|
605
|
+
/* 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_DatasetCard_vue_vue_type_style_index_0_id_eaeba60a_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default.a);
|
|
606
|
+
|
|
607
|
+
/***/ }),
|
|
608
|
+
|
|
609
|
+
/***/ "dc05":
|
|
610
|
+
/***/ (function(module, exports) {
|
|
611
|
+
|
|
612
|
+
module.exports = require("core-js/modules/es.array.last-index-of");
|
|
582
613
|
|
|
583
614
|
/***/ }),
|
|
584
615
|
|
|
@@ -589,10 +620,14 @@ module.exports = require("current-script-polyfill");
|
|
|
589
620
|
|
|
590
621
|
/***/ }),
|
|
591
622
|
|
|
592
|
-
/***/ "
|
|
593
|
-
/***/ (function(module,
|
|
623
|
+
/***/ "e026":
|
|
624
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
594
625
|
|
|
595
|
-
|
|
626
|
+
"use strict";
|
|
627
|
+
/* 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_SearchFilters_vue_vue_type_style_index_0_id_d4e05720_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("12bc");
|
|
628
|
+
/* 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_SearchFilters_vue_vue_type_style_index_0_id_d4e05720_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_SearchFilters_vue_vue_type_style_index_0_id_d4e05720_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__);
|
|
629
|
+
/* unused harmony reexport * */
|
|
630
|
+
/* 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_SearchFilters_vue_vue_type_style_index_0_id_d4e05720_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default.a);
|
|
596
631
|
|
|
597
632
|
/***/ }),
|
|
598
633
|
|
|
@@ -617,6 +652,20 @@ module.exports = require("core-js/modules/es.object.entries");
|
|
|
617
652
|
|
|
618
653
|
/***/ }),
|
|
619
654
|
|
|
655
|
+
/***/ "ee85":
|
|
656
|
+
/***/ (function(module, exports) {
|
|
657
|
+
|
|
658
|
+
module.exports = require("core-js/modules/es.array.unscopables.flat");
|
|
659
|
+
|
|
660
|
+
/***/ }),
|
|
661
|
+
|
|
662
|
+
/***/ "efa2":
|
|
663
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
664
|
+
|
|
665
|
+
// extracted by mini-css-extract-plugin
|
|
666
|
+
|
|
667
|
+
/***/ }),
|
|
668
|
+
|
|
620
669
|
/***/ "f705":
|
|
621
670
|
/***/ (function(module, exports) {
|
|
622
671
|
|
|
@@ -624,6 +673,13 @@ module.exports = require("core-js/modules/es.array.map");
|
|
|
624
673
|
|
|
625
674
|
/***/ }),
|
|
626
675
|
|
|
676
|
+
/***/ "f96d":
|
|
677
|
+
/***/ (function(module, exports) {
|
|
678
|
+
|
|
679
|
+
module.exports = require("core-js/modules/es.promise.finally");
|
|
680
|
+
|
|
681
|
+
/***/ }),
|
|
682
|
+
|
|
627
683
|
/***/ "fae3":
|
|
628
684
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
629
685
|
|
|
@@ -651,12 +707,12 @@ if (typeof window !== 'undefined') {
|
|
|
651
707
|
// Indicate to webpack that this file can be concatenated
|
|
652
708
|
/* harmony default export */ var setPublicPath = (null);
|
|
653
709
|
|
|
654
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
655
|
-
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{ref:"container"},[(!_vm.drawerOpen)?_c('div',{staticClass:"open-tab",on:{"click":_vm.toggleDrawer}},[_c('i',{staticClass:"el-icon-arrow-left"})]):_vm._e(),_c('el-drawer',{staticClass:"side-bar",attrs:{"custom-class":"my-drawer","visible":_vm.drawerOpen,"appendToBody":false,"modal-append-to-body":false,"size":"550","with-header":false,"wrapperClosable":false,"modal":false},on:{"update:visible":function($event){_vm.drawerOpen=$event}}},[_c('div',{staticClass:"box-card"},[(_vm.drawerOpen)?_c('div',{staticClass:"close-tab",on:{"click":_vm.close}},[_c('i',{staticClass:"el-icon-arrow-right"})]):_vm._e(),_c('div',{staticClass:"sidebar-container"},[(_vm.tabs.length > 1)?_c('tabs',{attrs:{"tabTitles":_vm.tabs,"activeId":_vm.activeId},on:{"titleClicked":_vm.tabClicked}}):_vm._e(),_vm._l((_vm.tabs),function(tab){return [_c('sidebar-content',{directives:[{name:"show",rawName:"v-show",value:(tab.id===_vm.activeId),expression:"tab.id===activeId"}],key:tab.id,ref:tab.id,refInFor:true,staticClass:"sidebar-content-container",attrs:{"contextCardEntry":tab.contextCard,"
|
|
710
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"52eab1bf-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/SideBar.vue?vue&type=template&id=3d831a8e&scoped=true&
|
|
711
|
+
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{ref:"container"},[(!_vm.drawerOpen)?_c('div',{staticClass:"open-tab",on:{"click":_vm.toggleDrawer}},[_c('i',{staticClass:"el-icon-arrow-left"})]):_vm._e(),_c('el-drawer',{staticClass:"side-bar",attrs:{"custom-class":"my-drawer","visible":_vm.drawerOpen,"appendToBody":false,"modal-append-to-body":false,"size":"550","with-header":false,"wrapperClosable":false,"modal":false},on:{"update:visible":function($event){_vm.drawerOpen=$event}}},[_c('div',{staticClass:"box-card"},[(_vm.drawerOpen)?_c('div',{staticClass:"close-tab",on:{"click":_vm.close}},[_c('i',{staticClass:"el-icon-arrow-right"})]):_vm._e(),_c('div',{staticClass:"sidebar-container"},[(_vm.tabs.length > 1)?_c('tabs',{attrs:{"tabTitles":_vm.tabs,"activeId":_vm.activeId},on:{"titleClicked":_vm.tabClicked}}):_vm._e(),_vm._l((_vm.tabs),function(tab){return [_c('sidebar-content',{directives:[{name:"show",rawName:"v-show",value:(tab.id===_vm.activeId),expression:"tab.id===activeId"}],key:tab.id,ref:tab.id,refInFor:true,staticClass:"sidebar-content-container",attrs:{"contextCardEntry":tab.contextCard,"envVars":_vm.envVars},on:{"search-changed":function($event){return _vm.searchChanged(tab.id, $event)}}})]})],2)])])],1)}
|
|
656
712
|
var staticRenderFns = []
|
|
657
713
|
|
|
658
714
|
|
|
659
|
-
// CONCATENATED MODULE: ./src/components/SideBar.vue?vue&type=template&id=
|
|
715
|
+
// CONCATENATED MODULE: ./src/components/SideBar.vue?vue&type=template&id=3d831a8e&scoped=true&
|
|
660
716
|
|
|
661
717
|
// EXTERNAL MODULE: external "core-js/modules/es.symbol"
|
|
662
718
|
var es_symbol_ = __webpack_require__("6049");
|
|
@@ -726,12 +782,12 @@ var en_default = /*#__PURE__*/__webpack_require__.n(en_);
|
|
|
726
782
|
var locale_ = __webpack_require__("7f9f");
|
|
727
783
|
var locale_default = /*#__PURE__*/__webpack_require__.n(locale_);
|
|
728
784
|
|
|
729
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
730
|
-
var
|
|
731
|
-
var
|
|
785
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"52eab1bf-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/SidebarContent.vue?vue&type=template&id=2e1db9a4&scoped=true&
|
|
786
|
+
var SidebarContentvue_type_template_id_2e1db9a4_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('el-card',{staticClass:"content-card",attrs:{"body-style":_vm.bodyStyle}},[_c('div',{staticClass:"header",attrs:{"slot":"header"},slot:"header"},[(_vm.contextCardEntry)?_c('context-card',{attrs:{"entry":_vm.contextCardEntry}}):_vm._e(),_c('el-input',{staticClass:"search-input",attrs:{"placeholder":"Search","clearable":""},on:{"clear":_vm.clearSearchClicked},nativeOn:{"keyup":function($event){return _vm.searchEvent($event)}},model:{value:(_vm.searchInput),callback:function ($$v) {_vm.searchInput=$$v},expression:"searchInput"}}),_c('el-button',{staticClass:"button",on:{"click":_vm.searchEvent}},[_vm._v("Search")])],1),_c('SearchFilters',{ref:"filtersRef",staticClass:"filters",attrs:{"entry":_vm.filterEntry,"envVars":_vm.envVars},on:{"filterResults":_vm.filterUpdate,"numberPerPage":_vm.numberPerPageUpdate,"loading":_vm.filtersLoading}}),_c('div',{directives:[{name:"loading",rawName:"v-loading",value:(_vm.loadingCards),expression:"loadingCards"}],ref:"content",staticClass:"content scrollbar"},[(_vm.results.length === 0 && !_vm.loadingCards && !_vm.sciCrunchError)?_c('div',{staticClass:"error-feedback"},[_vm._v("No results found - Please change your search / filter criteria.")]):_vm._e(),(_vm.sciCrunchError)?_c('div',{staticClass:"error-feedback"},[_vm._v(_vm._s(_vm.sciCrunchError))]):_vm._e(),_vm._l((_vm.results),function(o){return _c('div',{key:o.id,staticClass:"step-item"},[_c('DatasetCard',{attrs:{"entry":o,"envVars":_vm.envVars}})],1)}),_c('el-pagination',{staticClass:"pagination",attrs:{"current-page":_vm.page,"hide-on-single-page":"","large":"","layout":"prev, pager, next","page-size":_vm.numberPerPage,"total":_vm.numberOfHits},on:{"update:currentPage":function($event){_vm.page=$event},"update:current-page":function($event){_vm.page=$event},"current-change":_vm.pageChange}})],2)],1)}
|
|
787
|
+
var SidebarContentvue_type_template_id_2e1db9a4_scoped_true_staticRenderFns = []
|
|
732
788
|
|
|
733
789
|
|
|
734
|
-
// CONCATENATED MODULE: ./src/components/SidebarContent.vue?vue&type=template&id=
|
|
790
|
+
// CONCATENATED MODULE: ./src/components/SidebarContent.vue?vue&type=template&id=2e1db9a4&scoped=true&
|
|
735
791
|
|
|
736
792
|
// EXTERNAL MODULE: external "core-js/modules/es.symbol.description"
|
|
737
793
|
var es_symbol_description_ = __webpack_require__("51e9");
|
|
@@ -745,12 +801,12 @@ var es_array_map_ = __webpack_require__("f705");
|
|
|
745
801
|
// EXTERNAL MODULE: external "core-js/modules/es.function.name"
|
|
746
802
|
var es_function_name_ = __webpack_require__("bcd8");
|
|
747
803
|
|
|
748
|
-
// EXTERNAL MODULE: external "core-js/modules/es.object.entries"
|
|
749
|
-
var es_object_entries_ = __webpack_require__("ece9");
|
|
750
|
-
|
|
751
804
|
// EXTERNAL MODULE: external "core-js/modules/es.object.to-string"
|
|
752
805
|
var es_object_to_string_ = __webpack_require__("850c");
|
|
753
806
|
|
|
807
|
+
// EXTERNAL MODULE: external "core-js/modules/es.parse-int"
|
|
808
|
+
var es_parse_int_ = __webpack_require__("0b28");
|
|
809
|
+
|
|
754
810
|
// EXTERNAL MODULE: external "core-js/modules/es.promise"
|
|
755
811
|
var es_promise_ = __webpack_require__("8495");
|
|
756
812
|
|
|
@@ -766,6 +822,9 @@ var es_set_ = __webpack_require__("47ff");
|
|
|
766
822
|
// EXTERNAL MODULE: external "core-js/modules/es.string.iterator"
|
|
767
823
|
var es_string_iterator_ = __webpack_require__("907b");
|
|
768
824
|
|
|
825
|
+
// EXTERNAL MODULE: external "core-js/modules/es.string.search"
|
|
826
|
+
var es_string_search_ = __webpack_require__("be6e");
|
|
827
|
+
|
|
769
828
|
// EXTERNAL MODULE: external "core-js/modules/es.string.split"
|
|
770
829
|
var es_string_split_ = __webpack_require__("46fa");
|
|
771
830
|
|
|
@@ -892,12 +951,12 @@ var button_css_ = __webpack_require__("26bc");
|
|
|
892
951
|
var button_ = __webpack_require__("5d8c");
|
|
893
952
|
var button_default = /*#__PURE__*/__webpack_require__.n(button_);
|
|
894
953
|
|
|
895
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
896
|
-
var
|
|
897
|
-
var
|
|
954
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"52eab1bf-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/SearchFilters.vue?vue&type=template&id=d4e05720&scoped=true&
|
|
955
|
+
var SearchFiltersvue_type_template_id_d4e05720_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"filters"},[_c('SvgSpriteColor'),_c('transition',{attrs:{"name":"el-zoom-in-top"}},[_c('span',{directives:[{name:"show",rawName:"v-show",value:(_vm.showFilters),expression:"showFilters"}],staticClass:"search-filters transition-box"},[_c('custom-cascader',{ref:"cascader",staticClass:"cascader",attrs:{"placeholder":"","collapse-tags":true,"options":_vm.options,"props":_vm.props,"show-all-levels":false,"append-to-body":false},on:{"change":function($event){return _vm.cascadeEvent($event)},"expand-change":_vm.cascadeExpandChange,"tags-changed":_vm.tagsChangedCallback},model:{value:(_vm.cascadeSelected),callback:function ($$v) {_vm.cascadeSelected=$$v},expression:"cascadeSelected"}}),(_vm.showFiltersText)?_c('div',{staticClass:"filter-default-value"},[_c('svg-icon',{staticClass:"filter-icon-inside",attrs:{"icon":"noun-filter"}}),_vm._v("Apply Filters ")],1):_vm._e()],1)]),_c('el-select',{staticClass:"number-shown-select",attrs:{"placeholder":"10"},on:{"change":function($event){return _vm.numberShownChanged($event)}},model:{value:(_vm.numberShown),callback:function ($$v) {_vm.numberShown=$$v},expression:"numberShown"}},_vm._l((_vm.numberDatasetsShown),function(item){return _c('el-option',{key:item,attrs:{"label":item,"value":item}})}),1),_c('span',{staticClass:"dataset-results-feedback"},[_vm._v(_vm._s(this.numberOfResultsText))])],1)}
|
|
956
|
+
var SearchFiltersvue_type_template_id_d4e05720_scoped_true_staticRenderFns = []
|
|
898
957
|
|
|
899
958
|
|
|
900
|
-
// CONCATENATED MODULE: ./src/components/SearchFilters.vue?vue&type=template&id=
|
|
959
|
+
// CONCATENATED MODULE: ./src/components/SearchFilters.vue?vue&type=template&id=d4e05720&scoped=true&
|
|
901
960
|
|
|
902
961
|
// EXTERNAL MODULE: external "core-js/modules/es.array.includes"
|
|
903
962
|
var es_array_includes_ = __webpack_require__("ab7e");
|
|
@@ -905,11 +964,14 @@ var es_array_includes_ = __webpack_require__("ab7e");
|
|
|
905
964
|
// EXTERNAL MODULE: external "core-js/modules/es.array.slice"
|
|
906
965
|
var es_array_slice_ = __webpack_require__("6579");
|
|
907
966
|
|
|
967
|
+
// EXTERNAL MODULE: external "core-js/modules/es.array.sort"
|
|
968
|
+
var es_array_sort_ = __webpack_require__("6ed7");
|
|
969
|
+
|
|
908
970
|
// EXTERNAL MODULE: external "core-js/modules/es.array.splice"
|
|
909
971
|
var es_array_splice_ = __webpack_require__("7c81");
|
|
910
972
|
|
|
911
|
-
// EXTERNAL MODULE: external "core-js/modules/es.
|
|
912
|
-
var
|
|
973
|
+
// EXTERNAL MODULE: external "core-js/modules/es.promise.finally"
|
|
974
|
+
var es_promise_finally_ = __webpack_require__("f96d");
|
|
913
975
|
|
|
914
976
|
// EXTERNAL MODULE: external "core-js/modules/es.string.includes"
|
|
915
977
|
var es_string_includes_ = __webpack_require__("fd48");
|
|
@@ -1149,8 +1211,259 @@ var component = normalizeComponent(
|
|
|
1149
1211
|
// EXTERNAL MODULE: external "@abi-software/svg-sprite"
|
|
1150
1212
|
var svg_sprite_ = __webpack_require__("429c");
|
|
1151
1213
|
|
|
1152
|
-
//
|
|
1214
|
+
// EXTERNAL MODULE: external "core-js/modules/es.array.concat"
|
|
1215
|
+
var es_array_concat_ = __webpack_require__("18d2");
|
|
1216
|
+
|
|
1217
|
+
// EXTERNAL MODULE: external "core-js/modules/es.array.flat"
|
|
1218
|
+
var es_array_flat_ = __webpack_require__("9a3c");
|
|
1219
|
+
|
|
1220
|
+
// EXTERNAL MODULE: external "core-js/modules/es.array.unscopables.flat"
|
|
1221
|
+
var es_array_unscopables_flat_ = __webpack_require__("ee85");
|
|
1222
|
+
|
|
1223
|
+
// EXTERNAL MODULE: external "core-js/modules/es.map"
|
|
1224
|
+
var es_map_ = __webpack_require__("9861");
|
|
1225
|
+
|
|
1226
|
+
// EXTERNAL MODULE: external "core-js/modules/es.object.entries"
|
|
1227
|
+
var es_object_entries_ = __webpack_require__("ece9");
|
|
1228
|
+
|
|
1229
|
+
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js
|
|
1230
|
+
function _classCallCheck(instance, Constructor) {
|
|
1231
|
+
if (!(instance instanceof Constructor)) {
|
|
1232
|
+
throw new TypeError("Cannot call a class as a function");
|
|
1233
|
+
}
|
|
1234
|
+
}
|
|
1235
|
+
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/createClass.js
|
|
1236
|
+
function _defineProperties(target, props) {
|
|
1237
|
+
for (var i = 0; i < props.length; i++) {
|
|
1238
|
+
var descriptor = props[i];
|
|
1239
|
+
descriptor.enumerable = descriptor.enumerable || false;
|
|
1240
|
+
descriptor.configurable = true;
|
|
1241
|
+
if ("value" in descriptor) descriptor.writable = true;
|
|
1242
|
+
Object.defineProperty(target, descriptor.key, descriptor);
|
|
1243
|
+
}
|
|
1244
|
+
}
|
|
1245
|
+
|
|
1246
|
+
function _createClass(Constructor, protoProps, staticProps) {
|
|
1247
|
+
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
1248
|
+
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
1249
|
+
return Constructor;
|
|
1250
|
+
}
|
|
1251
|
+
// EXTERNAL MODULE: external "algoliasearch"
|
|
1252
|
+
var external_algoliasearch_ = __webpack_require__("88eb");
|
|
1253
|
+
var external_algoliasearch_default = /*#__PURE__*/__webpack_require__.n(external_algoliasearch_);
|
|
1254
|
+
|
|
1255
|
+
// CONCATENATED MODULE: ./src/algolia/algolia.js
|
|
1256
|
+
|
|
1257
|
+
|
|
1258
|
+
|
|
1259
|
+
|
|
1260
|
+
|
|
1261
|
+
|
|
1262
|
+
|
|
1263
|
+
|
|
1264
|
+
|
|
1265
|
+
|
|
1266
|
+
|
|
1267
|
+
|
|
1268
|
+
|
|
1269
|
+
|
|
1270
|
+
|
|
1271
|
+
|
|
1272
|
+
|
|
1273
|
+
|
|
1274
|
+
/* eslint-disable no-alert, no-console */
|
|
1275
|
+
// export `createAlgoliaClient` to use it in page components
|
|
1276
|
+
|
|
1277
|
+
var algolia_AlgoliaClient =
|
|
1278
|
+
/*#__PURE__*/
|
|
1279
|
+
function () {
|
|
1280
|
+
function AlgoliaClient(algoliaId, algoliaKey) {
|
|
1281
|
+
var PENNSIEVE_API_LOCATION = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'https://api.pennsieve.io';
|
|
1282
|
+
|
|
1283
|
+
_classCallCheck(this, AlgoliaClient);
|
|
1284
|
+
|
|
1285
|
+
this.client = external_algoliasearch_default()(algoliaId, algoliaKey);
|
|
1286
|
+
this.PENNSIEVE_API_LOCATION = PENNSIEVE_API_LOCATION;
|
|
1287
|
+
}
|
|
1288
|
+
|
|
1289
|
+
_createClass(AlgoliaClient, [{
|
|
1290
|
+
key: "initIndex",
|
|
1291
|
+
value: function initIndex(ALGOLIA_INDEX) {
|
|
1292
|
+
this.index = this.client.initIndex(ALGOLIA_INDEX);
|
|
1293
|
+
}
|
|
1294
|
+
}, {
|
|
1295
|
+
key: "getAlgoliaFacets",
|
|
1296
|
+
value: function getAlgoliaFacets(propPathMapping) {
|
|
1297
|
+
var map = new Map(Object.entries(propPathMapping));
|
|
1298
|
+
var facetPropPaths = Array.from(map.keys());
|
|
1299
|
+
var facetData = [];
|
|
1300
|
+
var facetId = 0;
|
|
1301
|
+
return this.index.search('', {
|
|
1302
|
+
sortFacetValuesBy: 'alpha',
|
|
1303
|
+
facets: facetPropPaths
|
|
1304
|
+
}).then(function (response) {
|
|
1305
|
+
facetPropPaths.map(function (facetPropPath) {
|
|
1306
|
+
var children = [];
|
|
1307
|
+
var responseFacets = response.facets;
|
|
1308
|
+
|
|
1309
|
+
if (responseFacets === undefined) {
|
|
1310
|
+
return;
|
|
1311
|
+
}
|
|
1312
|
+
|
|
1313
|
+
var responseFacetChildren = responseFacets[facetPropPath] == undefined ? {} : responseFacets[facetPropPath];
|
|
1314
|
+
Object.keys(responseFacetChildren).map(function (facet) {
|
|
1315
|
+
children.push({
|
|
1316
|
+
label: facet,
|
|
1317
|
+
id: facetId++,
|
|
1318
|
+
facetPropPath: facetPropPath
|
|
1319
|
+
});
|
|
1320
|
+
});
|
|
1321
|
+
|
|
1322
|
+
if (children.length > 0) {
|
|
1323
|
+
facetData.push({
|
|
1324
|
+
label: map.get(facetPropPath),
|
|
1325
|
+
id: facetId++,
|
|
1326
|
+
children: children,
|
|
1327
|
+
key: facetPropPath
|
|
1328
|
+
});
|
|
1329
|
+
}
|
|
1330
|
+
});
|
|
1331
|
+
return facetData;
|
|
1332
|
+
});
|
|
1333
|
+
} // Returns all DOIs of all versions for a given discover dataset
|
|
1334
|
+
|
|
1335
|
+
}, {
|
|
1336
|
+
key: "_discoverAllDois",
|
|
1337
|
+
value: function _discoverAllDois(discoverId) {
|
|
1338
|
+
var PENNSIEVE_API_LOCATION = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'https://api.pennsieve.io';
|
|
1339
|
+
return new Promise(function (resolve) {
|
|
1340
|
+
fetch("".concat(PENNSIEVE_API_LOCATION, "/discover/datasets/").concat(discoverId, "/versions")).then(function (r) {
|
|
1341
|
+
return r.json();
|
|
1342
|
+
}).then(function (dataset) {
|
|
1343
|
+
resolve(dataset.map(function (version) {
|
|
1344
|
+
return version.doi;
|
|
1345
|
+
}));
|
|
1346
|
+
});
|
|
1347
|
+
});
|
|
1348
|
+
} // Get all dois given a list of discoverIds
|
|
1349
|
+
|
|
1350
|
+
}, {
|
|
1351
|
+
key: "_expandDois",
|
|
1352
|
+
value: function _expandDois(discoverIds) {
|
|
1353
|
+
var _this = this;
|
|
1354
|
+
|
|
1355
|
+
var PENNSIEVE_API_LOCATION = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'https://api.pennsieve.io';
|
|
1356
|
+
return new Promise(function (resolve) {
|
|
1357
|
+
var promiseList = discoverIds.map(function (discoverId) {
|
|
1358
|
+
return _this._discoverAllDois(discoverId, PENNSIEVE_API_LOCATION);
|
|
1359
|
+
});
|
|
1360
|
+
Promise.all(promiseList).then(function (values) {
|
|
1361
|
+
resolve(values.flat());
|
|
1362
|
+
});
|
|
1363
|
+
});
|
|
1364
|
+
}
|
|
1365
|
+
/**
|
|
1366
|
+
* Get Search results
|
|
1367
|
+
* This is using fetch from the Algolia API
|
|
1368
|
+
*/
|
|
1369
|
+
|
|
1370
|
+
}, {
|
|
1371
|
+
key: "search",
|
|
1372
|
+
value: function search(filter) {
|
|
1373
|
+
var _this2 = this;
|
|
1374
|
+
|
|
1375
|
+
var query = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
|
|
1376
|
+
var hitsperPage = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 10;
|
|
1377
|
+
var page = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 1;
|
|
1378
|
+
return new Promise(function (resolve) {
|
|
1379
|
+
_this2.index.search(query, {
|
|
1380
|
+
facets: ['*'],
|
|
1381
|
+
hitsPerPage: hitsperPage,
|
|
1382
|
+
page: page - 1,
|
|
1383
|
+
filters: filter
|
|
1384
|
+
}).then(function (response) {
|
|
1385
|
+
var searchData = {
|
|
1386
|
+
items: response.hits,
|
|
1387
|
+
total: response.nbHits,
|
|
1388
|
+
discoverIds: response.hits.map(function (r) {
|
|
1389
|
+
return r.pennsieve.identifier;
|
|
1390
|
+
})
|
|
1391
|
+
};
|
|
1392
|
+
resolve(searchData);
|
|
1393
|
+
});
|
|
1394
|
+
});
|
|
1395
|
+
}
|
|
1396
|
+
}]);
|
|
1397
|
+
|
|
1398
|
+
return AlgoliaClient;
|
|
1399
|
+
}();
|
|
1400
|
+
// EXTERNAL MODULE: external "core-js/modules/es.array.last-index-of"
|
|
1401
|
+
var es_array_last_index_of_ = __webpack_require__("dc05");
|
|
1402
|
+
|
|
1403
|
+
// CONCATENATED MODULE: ./src/algolia/utils.js
|
|
1404
|
+
|
|
1405
|
+
|
|
1406
|
+
|
|
1407
|
+
|
|
1408
|
+
|
|
1409
|
+
|
|
1410
|
+
|
|
1411
|
+
|
|
1412
|
+
/* eslint-disable no-alert, no-console */
|
|
1413
|
+
// Mapping between display categories and their Algolia index property path
|
|
1414
|
+
// Used for populating the Dataset Search Results facet menu dynamically
|
|
1415
|
+
var facetPropPathMapping = {
|
|
1416
|
+
'anatomy.organ.name': 'Anatomical Structure',
|
|
1417
|
+
'organisms.primary.species.name': 'Species',
|
|
1418
|
+
'item.modalities.keyword': 'Experimental Approach',
|
|
1419
|
+
'attributes.subject.sex.value': 'Sex',
|
|
1420
|
+
'attributes.subject.ageCategory.value': 'Age Categories'
|
|
1421
|
+
};
|
|
1422
|
+
/* Returns filter for searching algolia. All facets of the same category are joined with OR,
|
|
1423
|
+
* and each of those results is then joined with an AND.
|
|
1424
|
+
* i.e. (color:blue OR color:red) AND (shape:circle OR shape:red) */
|
|
1425
|
+
|
|
1426
|
+
function getFilters() {
|
|
1427
|
+
var selectedFacetArray = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : undefined;
|
|
1428
|
+
|
|
1429
|
+
// return all datasets if no filter
|
|
1430
|
+
if (selectedFacetArray === undefined) {
|
|
1431
|
+
return 'NOT item.published.status:embargo';
|
|
1432
|
+
} // Switch the 'term' attribute to 'label' if 'label' does not exist
|
|
1433
|
+
|
|
1434
|
+
|
|
1435
|
+
selectedFacetArray.forEach(function (f) {
|
|
1436
|
+
return f.label = f.facet;
|
|
1437
|
+
});
|
|
1438
|
+
var facets = removeShowAllFacets(selectedFacetArray);
|
|
1439
|
+
var filters = "NOT item.published.status:embargo";
|
|
1440
|
+
filters = "(".concat(filters, ") AND ");
|
|
1441
|
+
var facetPropPaths = Object.keys(facetPropPathMapping);
|
|
1442
|
+
facetPropPaths.map(function (facetPropPath) {
|
|
1443
|
+
var facetsToOr = facets.filter(function (facet) {
|
|
1444
|
+
return facet.facetPropPath == facetPropPath;
|
|
1445
|
+
});
|
|
1446
|
+
var filter = "";
|
|
1447
|
+
facetsToOr.map(function (facet) {
|
|
1448
|
+
filter += "\"".concat(facetPropPath, "\":\"").concat(facet.label, "\" OR ");
|
|
1449
|
+
});
|
|
1450
|
+
|
|
1451
|
+
if (filter == "") {
|
|
1452
|
+
return;
|
|
1453
|
+
}
|
|
1454
|
+
|
|
1455
|
+
filter = "(".concat(filter.substring(0, filter.lastIndexOf(" OR ")), ")");
|
|
1456
|
+
filters += "".concat(filter, " AND ");
|
|
1457
|
+
});
|
|
1458
|
+
return filters.substring(0, filters.lastIndexOf(" AND "));
|
|
1459
|
+
}
|
|
1153
1460
|
|
|
1461
|
+
function removeShowAllFacets(facetArray) {
|
|
1462
|
+
return facetArray.filter(function (f) {
|
|
1463
|
+
return f.label !== 'Show all';
|
|
1464
|
+
});
|
|
1465
|
+
}
|
|
1466
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/SearchFilters.vue?vue&type=script&lang=js&
|
|
1154
1467
|
|
|
1155
1468
|
|
|
1156
1469
|
|
|
@@ -1211,6 +1524,12 @@ var svg_sprite_ = __webpack_require__("429c");
|
|
|
1211
1524
|
//
|
|
1212
1525
|
//
|
|
1213
1526
|
//
|
|
1527
|
+
//
|
|
1528
|
+
//
|
|
1529
|
+
//
|
|
1530
|
+
//
|
|
1531
|
+
//
|
|
1532
|
+
//
|
|
1214
1533
|
|
|
1215
1534
|
/* eslint-disable no-alert, no-console */
|
|
1216
1535
|
|
|
@@ -1219,6 +1538,8 @@ var svg_sprite_ = __webpack_require__("429c");
|
|
|
1219
1538
|
|
|
1220
1539
|
|
|
1221
1540
|
|
|
1541
|
+
|
|
1542
|
+
|
|
1222
1543
|
external_vue_default.a.component("svg-icon", svg_sprite_["SvgIcon"]);
|
|
1223
1544
|
locale_default.a.use(en_default.a);
|
|
1224
1545
|
external_vue_default.a.use(option_default.a);
|
|
@@ -1250,9 +1571,9 @@ var SearchFiltersvue_type_script_lang_js_convertReadableLabel = function convert
|
|
|
1250
1571
|
* the required viewing.
|
|
1251
1572
|
*/
|
|
1252
1573
|
entry: Object,
|
|
1253
|
-
|
|
1254
|
-
type:
|
|
1255
|
-
default:
|
|
1574
|
+
envVars: {
|
|
1575
|
+
type: Object,
|
|
1576
|
+
default: function _default() {}
|
|
1256
1577
|
}
|
|
1257
1578
|
},
|
|
1258
1579
|
data: function data() {
|
|
@@ -1294,65 +1615,31 @@ var SearchFiltersvue_type_script_lang_js_convertReadableLabel = function convert
|
|
|
1294
1615
|
var _this = this;
|
|
1295
1616
|
|
|
1296
1617
|
return new Promise(function (resolve) {
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
_this.options.push({
|
|
1302
|
-
value: _this.createCascaderItemValue(_this.facets[i].toLowerCase(), undefined),
|
|
1303
|
-
label: SearchFiltersvue_type_script_lang_js_convertReadableLabel(_this.facets[i]),
|
|
1304
|
-
children: []
|
|
1305
|
-
});
|
|
1306
|
-
|
|
1307
|
-
promiseList.push(_this.getFacet(_this.facets[i]).then(function (labels) {
|
|
1308
|
-
// Populate children of each facet with scicrunch's facets
|
|
1309
|
-
for (var j in labels) {
|
|
1310
|
-
_this.options[i].children.push({
|
|
1311
|
-
value: _this.createCascaderItemValue(_this.facets[i].toLowerCase(), labels[j].toLowerCase()),
|
|
1312
|
-
label: SearchFiltersvue_type_script_lang_js_convertReadableLabel(labels[j]) // Capitalisation is to match design specs
|
|
1313
|
-
|
|
1314
|
-
});
|
|
1315
|
-
}
|
|
1316
|
-
}));
|
|
1317
|
-
};
|
|
1618
|
+
// Algolia facet serach
|
|
1619
|
+
_this.algoliaClient.getAlgoliaFacets(facetPropPathMapping).then(function (data) {
|
|
1620
|
+
_this.facets = data;
|
|
1621
|
+
_this.options = data; // create top level of options in cascader
|
|
1318
1622
|
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
Promise.allSettled(promiseList).then(function () {
|
|
1324
|
-
resolve();
|
|
1325
|
-
});
|
|
1326
|
-
});
|
|
1327
|
-
},
|
|
1328
|
-
getFacet: function getFacet(facetLabel) {
|
|
1329
|
-
var _this2 = this;
|
|
1330
|
-
|
|
1331
|
-
if (facetLabel === "Datasets") {
|
|
1332
|
-
// The datasets facet doesn't exist on SciCrunch yet, so manually set it
|
|
1333
|
-
// for now.
|
|
1334
|
-
return new Promise(function (resolve) {
|
|
1335
|
-
resolve(_toConsumableArray(new Set(["Show all", "Scaffolds", "Simulations"])));
|
|
1336
|
-
});
|
|
1337
|
-
}
|
|
1623
|
+
_this.options.forEach(function (facet, i) {
|
|
1624
|
+
_this.options[i].label = SearchFiltersvue_type_script_lang_js_convertReadableLabel(facet.label);
|
|
1625
|
+
_this.options[i].value = _this.createCascaderItemValue(facet.key, undefined); // put "Show all" as first option
|
|
1338
1626
|
|
|
1339
|
-
|
|
1340
|
-
|
|
1627
|
+
_this.options[i].children.unshift({
|
|
1628
|
+
value: _this.createCascaderItemValue("Show all"),
|
|
1629
|
+
label: "Show all"
|
|
1630
|
+
}); // populate second level of options
|
|
1341
1631
|
|
|
1342
|
-
var facet = facetLabel.toLowerCase();
|
|
1343
1632
|
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1633
|
+
_this.options[i].children.forEach(function (facetItem, j) {
|
|
1634
|
+
_this.options[i].children[j].label = SearchFiltersvue_type_script_lang_js_convertReadableLabel(facetItem.label);
|
|
1635
|
+
_this.options[i].children[j].value = _this.createCascaderItemValue(facet.label, facetItem.label);
|
|
1636
|
+
});
|
|
1347
1637
|
});
|
|
1348
|
-
|
|
1638
|
+
}).finally(function () {
|
|
1639
|
+
resolve();
|
|
1349
1640
|
});
|
|
1350
1641
|
});
|
|
1351
1642
|
},
|
|
1352
|
-
// switchTermToRequest is used to remove the count for sending a request to scicrunch
|
|
1353
|
-
switchTermToRequest: function switchTermToRequest(term) {
|
|
1354
|
-
return term.split(" ")[0].toLowerCase();
|
|
1355
|
-
},
|
|
1356
1643
|
tagsChangedCallback: function tagsChangedCallback(presentTags) {
|
|
1357
1644
|
if (presentTags.length > 0) {
|
|
1358
1645
|
this.showFiltersText = false;
|
|
@@ -1360,31 +1647,35 @@ var SearchFiltersvue_type_script_lang_js_convertReadableLabel = function convert
|
|
|
1360
1647
|
this.showFiltersText = true;
|
|
1361
1648
|
}
|
|
1362
1649
|
},
|
|
1650
|
+
// cascadeEvent: initiate searches based off cascader changes
|
|
1363
1651
|
cascadeEvent: function cascadeEvent(event) {
|
|
1364
|
-
var filters = [];
|
|
1365
|
-
|
|
1366
1652
|
if (event) {
|
|
1367
1653
|
// Check for show all in selected cascade options
|
|
1368
|
-
event = this.showAllEventModifier(event);
|
|
1654
|
+
event = this.showAllEventModifier(event); // Move results from arrays to object
|
|
1655
|
+
|
|
1656
|
+
var filters = event.filter(function (selection) {
|
|
1657
|
+
return selection !== undefined;
|
|
1658
|
+
}).map(function (fs) {
|
|
1659
|
+
return {
|
|
1660
|
+
facetPropPath: fs[0],
|
|
1661
|
+
facet: fs[1].split("/")[1],
|
|
1662
|
+
term: fs[1].split("/")[0]
|
|
1663
|
+
};
|
|
1664
|
+
});
|
|
1665
|
+
this.$emit('loading', true); // let sidebarcontent wait for the requests
|
|
1369
1666
|
|
|
1370
|
-
|
|
1371
|
-
if (event[i] !== undefined) {
|
|
1372
|
-
var value = event[i][1];
|
|
1373
|
-
var data = value.split("/");
|
|
1374
|
-
var output = {};
|
|
1375
|
-
output.term = this.switchTermToRequest(data[0]);
|
|
1376
|
-
output.facet = data[1];
|
|
1377
|
-
filters.push(output);
|
|
1378
|
-
}
|
|
1379
|
-
}
|
|
1380
|
-
}
|
|
1667
|
+
this.$emit("filterResults", filters); // emit filters for apps above sidebar
|
|
1381
1668
|
|
|
1382
|
-
|
|
1383
|
-
this.setCascader(filters); //update our cascader v-model if we modified the event
|
|
1669
|
+
this.setCascader(filters); //update our cascader v-model if we modified the event
|
|
1384
1670
|
|
|
1385
|
-
|
|
1671
|
+
this.makeCascadeLabelsClickable();
|
|
1672
|
+
}
|
|
1386
1673
|
},
|
|
1674
|
+
// showAllEventModifier: Modifies a cascade event to unlick all selections in category if "show all" is clicked. Also unchecks "Show all" if any secection is clicked
|
|
1675
|
+
// *NOTE* Does NOT remove 'Show all' selections from showing in 'cascadeSelected'
|
|
1387
1676
|
showAllEventModifier: function showAllEventModifier(event) {
|
|
1677
|
+
var _this2 = this;
|
|
1678
|
+
|
|
1388
1679
|
// check if show all is in the cascader checked option list
|
|
1389
1680
|
var hasShowAll = event.map(function (ev) {
|
|
1390
1681
|
return ev ? ev[1].toLowerCase().includes("show all") : false;
|
|
@@ -1423,28 +1714,40 @@ var SearchFiltersvue_type_script_lang_js_convertReadableLabel = function convert
|
|
|
1423
1714
|
} else {
|
|
1424
1715
|
modifiedEvent.push.apply(modifiedEvent, _toConsumableArray(facetMaps[facet]));
|
|
1425
1716
|
}
|
|
1426
|
-
}
|
|
1717
|
+
} //Make sure the expanded item are sorted first.
|
|
1718
|
+
|
|
1427
1719
|
|
|
1428
|
-
return modifiedEvent
|
|
1720
|
+
return modifiedEvent.sort(function (a, b) {
|
|
1721
|
+
if (_this2.__expandItem__) {
|
|
1722
|
+
if (a[0] == _this2.__expandItem__) {
|
|
1723
|
+
if (b[0] == _this2.__expandItem__) {
|
|
1724
|
+
return 0;
|
|
1725
|
+
} else {
|
|
1726
|
+
return -1;
|
|
1727
|
+
}
|
|
1728
|
+
} else if (b[0] == _this2.__expandItem__) {
|
|
1729
|
+
if (a[0] == _this2.__expandItem__) {
|
|
1730
|
+
return 0;
|
|
1731
|
+
} else {
|
|
1732
|
+
return 1;
|
|
1733
|
+
}
|
|
1734
|
+
} else {
|
|
1735
|
+
return 0;
|
|
1736
|
+
}
|
|
1737
|
+
} else return 0;
|
|
1738
|
+
});
|
|
1429
1739
|
}
|
|
1430
1740
|
|
|
1431
1741
|
return event;
|
|
1432
1742
|
},
|
|
1433
|
-
cascadeExpandChange: function cascadeExpandChange() {
|
|
1743
|
+
cascadeExpandChange: function cascadeExpandChange(event) {
|
|
1744
|
+
//work around as the expand item may change on modifying the cascade props
|
|
1745
|
+
this.__expandItem__ = event;
|
|
1434
1746
|
this.makeCascadeLabelsClickable();
|
|
1435
1747
|
},
|
|
1436
1748
|
numberShownChanged: function numberShownChanged(event) {
|
|
1437
1749
|
this.$emit("numberPerPage", parseInt(event));
|
|
1438
1750
|
},
|
|
1439
|
-
callSciCrunch: function callSciCrunch(apiLocation, endpoint, term) {
|
|
1440
|
-
return new Promise(function (resolve) {
|
|
1441
|
-
fetch(apiLocation + endpoint + term).then(function (response) {
|
|
1442
|
-
return response.json();
|
|
1443
|
-
}).then(function (data) {
|
|
1444
|
-
resolve(data);
|
|
1445
|
-
});
|
|
1446
|
-
});
|
|
1447
|
-
},
|
|
1448
1751
|
updatePreviousShowAllChecked: function updatePreviousShowAllChecked(options) {
|
|
1449
1752
|
var _this3 = this;
|
|
1450
1753
|
|
|
@@ -1457,18 +1760,46 @@ var SearchFiltersvue_type_script_lang_js_convertReadableLabel = function convert
|
|
|
1457
1760
|
if (element[1].toLowerCase().includes("show all")) _this3.previousShowAllChecked[element[0]] = true;
|
|
1458
1761
|
});
|
|
1459
1762
|
},
|
|
1763
|
+
// setCascader: Clears previous selections and takes in an array of facets to select: filterFacets
|
|
1764
|
+
// facets are in the form:
|
|
1765
|
+
// {
|
|
1766
|
+
// facetPropPath: 'anatomy.organ.name',
|
|
1767
|
+
// term: 'Sex',
|
|
1768
|
+
// facet: 'Male'
|
|
1769
|
+
// }
|
|
1460
1770
|
setCascader: function setCascader(filterFacets) {
|
|
1461
1771
|
var _this4 = this;
|
|
1462
1772
|
|
|
1463
1773
|
//Do not set the value unless it is ready
|
|
1464
|
-
if (this.cascaderIsReady) {
|
|
1465
|
-
this.cascadeSelected =
|
|
1466
|
-
|
|
1467
|
-
_this4.cascadeSelected.push([e.term.toLowerCase(), _this4.createCascaderItemValue(e.term.toLowerCase(), e.facet.toLowerCase())]);
|
|
1774
|
+
if (this.cascaderIsReady && filterFacets && filterFacets.length != 0) {
|
|
1775
|
+
this.cascadeSelected = filterFacets.map(function (e) {
|
|
1776
|
+
return [e.facetPropPath, _this4.createCascaderItemValue(capitalise(e.term), e.facet)];
|
|
1468
1777
|
});
|
|
1469
1778
|
this.updatePreviousShowAllChecked(this.cascadeSelected);
|
|
1470
1779
|
}
|
|
1471
1780
|
},
|
|
1781
|
+
addFilter: function addFilter(filter) {
|
|
1782
|
+
//Do not set the value unless it is ready
|
|
1783
|
+
if (this.cascaderIsReady && filter) {
|
|
1784
|
+
this.cascadeSelected.filter(function (f) {
|
|
1785
|
+
return f.term != filter.term;
|
|
1786
|
+
});
|
|
1787
|
+
this.cascadeSelected.push([filter.facetPropPath, this.createCascaderItemValue(filter.term, filter.facet)]);
|
|
1788
|
+
}
|
|
1789
|
+
},
|
|
1790
|
+
initiateSearch: function initiateSearch() {
|
|
1791
|
+
this.cascadeEvent(this.cascadeSelected);
|
|
1792
|
+
},
|
|
1793
|
+
// checkShowAllBoxes: Checks each 'Show all' cascade option by using the setCascader function
|
|
1794
|
+
checkShowAllBoxes: function checkShowAllBoxes() {
|
|
1795
|
+
this.setCascader(this.options.map(function (option) {
|
|
1796
|
+
return {
|
|
1797
|
+
facetPropPath: option.value,
|
|
1798
|
+
term: option.label,
|
|
1799
|
+
facet: 'Show all'
|
|
1800
|
+
};
|
|
1801
|
+
}));
|
|
1802
|
+
},
|
|
1472
1803
|
makeCascadeLabelsClickable: function makeCascadeLabelsClickable() {
|
|
1473
1804
|
var _this5 = this;
|
|
1474
1805
|
|
|
@@ -1490,16 +1821,16 @@ var SearchFiltersvue_type_script_lang_js_convertReadableLabel = function convert
|
|
|
1490
1821
|
});
|
|
1491
1822
|
}
|
|
1492
1823
|
},
|
|
1493
|
-
created: function created() {
|
|
1494
|
-
//Create non-reactive local variables
|
|
1495
|
-
this.facetEndpoint = "get-facets/";
|
|
1496
|
-
},
|
|
1497
1824
|
mounted: function mounted() {
|
|
1498
1825
|
var _this6 = this;
|
|
1499
1826
|
|
|
1827
|
+
this.algoliaClient = new algolia_AlgoliaClient(this.envVars.ALGOLIA_ID, this.envVars.ALGOLIA_KEY, this.envVars.PENNSIEVE_API_LOCATION);
|
|
1828
|
+
this.algoliaClient.initIndex(this.envVars.ALGOLIA_INDEX);
|
|
1500
1829
|
this.populateCascader().then(function () {
|
|
1501
1830
|
_this6.cascaderIsReady = true;
|
|
1502
1831
|
|
|
1832
|
+
_this6.checkShowAllBoxes();
|
|
1833
|
+
|
|
1503
1834
|
_this6.setCascader(_this6.entry.filterFacets);
|
|
1504
1835
|
|
|
1505
1836
|
_this6.makeCascadeLabelsClickable();
|
|
@@ -1508,8 +1839,8 @@ var SearchFiltersvue_type_script_lang_js_convertReadableLabel = function convert
|
|
|
1508
1839
|
});
|
|
1509
1840
|
// CONCATENATED MODULE: ./src/components/SearchFilters.vue?vue&type=script&lang=js&
|
|
1510
1841
|
/* harmony default export */ var components_SearchFiltersvue_type_script_lang_js_ = (SearchFiltersvue_type_script_lang_js_);
|
|
1511
|
-
// EXTERNAL MODULE: ./src/components/SearchFilters.vue?vue&type=style&index=0&id=
|
|
1512
|
-
var
|
|
1842
|
+
// EXTERNAL MODULE: ./src/components/SearchFilters.vue?vue&type=style&index=0&id=d4e05720&scoped=true&lang=css&
|
|
1843
|
+
var SearchFiltersvue_type_style_index_0_id_d4e05720_scoped_true_lang_css_ = __webpack_require__("e026");
|
|
1513
1844
|
|
|
1514
1845
|
// CONCATENATED MODULE: ./src/components/SearchFilters.vue
|
|
1515
1846
|
|
|
@@ -1522,25 +1853,22 @@ var SearchFiltersvue_type_style_index_0_id_260d83f6_scoped_true_lang_css_ = __we
|
|
|
1522
1853
|
|
|
1523
1854
|
var SearchFilters_component = normalizeComponent(
|
|
1524
1855
|
components_SearchFiltersvue_type_script_lang_js_,
|
|
1525
|
-
|
|
1526
|
-
|
|
1856
|
+
SearchFiltersvue_type_template_id_d4e05720_scoped_true_render,
|
|
1857
|
+
SearchFiltersvue_type_template_id_d4e05720_scoped_true_staticRenderFns,
|
|
1527
1858
|
false,
|
|
1528
1859
|
null,
|
|
1529
|
-
"
|
|
1860
|
+
"d4e05720",
|
|
1530
1861
|
null
|
|
1531
1862
|
|
|
1532
1863
|
)
|
|
1533
1864
|
|
|
1534
1865
|
/* harmony default export */ var SearchFilters = (SearchFilters_component.exports);
|
|
1535
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
1536
|
-
var
|
|
1537
|
-
var
|
|
1866
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"52eab1bf-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/DatasetCard.vue?vue&type=template&id=eaeba60a&scoped=true&
|
|
1867
|
+
var DatasetCardvue_type_template_id_eaeba60a_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{ref:"container",staticClass:"dataset-card-container"},[_c('div',{ref:"card",class:_vm.expanded ? 'dataset-card-expanded' : 'dataset-card'},[_c('div',{staticClass:"seperator-path"}),_c('div',{staticClass:"card"},[_c('span',{staticClass:"card-left"},[_c('img',{staticClass:"banner-img",attrs:{"svg-inline":"","src":_vm.thumbnail},on:{"click":_vm.openDataset}})]),_c('div',{staticClass:"card-right"},[_c('div',{staticClass:"title",on:{"click":_vm.cardClicked}},[_vm._v(_vm._s(_vm.entry.name))]),_c('div',{staticClass:"details"},[_vm._v(_vm._s(_vm.contributors)+" "+_vm._s(_vm.entry.publishDate ? ("(" + _vm.publishYear + ")") : ''))]),_c('div',{staticClass:"details"},[_vm._v(_vm._s(_vm.samples))]),_c('div',{staticClass:"details"},[_vm._v("id: "+_vm._s(_vm.discoverId))]),_c('div',[(!_vm.entry.simulation)?_c('el-button',{staticClass:"button",attrs:{"size":"mini","icon":"el-icon-coin"},on:{"click":_vm.openDataset}},[_vm._v("View dataset")]):_vm._e()],1),_c('div',[(_vm.entry.scaffolds)?_c('el-button',{staticClass:"button",attrs:{"size":"mini","icon":"el-icon-view"},on:{"click":_vm.openScaffold}},[_vm._v("View scaffold")]):_vm._e()],1),_c('div',[(_vm.hasCSVFile)?_c('el-button',{staticClass:"button",attrs:{"size":"mini","icon":"el-icon-view"},on:{"click":_vm.openPlot}},[_vm._v("View plot")]):_vm._e()],1),_c('div',[(_vm.entry.simulation)?_c('el-button',{staticClass:"button",attrs:{"size":"mini","icon":"el-icon-view"},on:{"click":_vm.openRepository}},[_vm._v("View repository")]):_vm._e()],1),_c('div',[(_vm.entry.simulation)?_c('el-button',{staticClass:"button",attrs:{"size":"mini","icon":"el-icon-view"},on:{"click":_vm.openSimulation}},[_vm._v("View simulation")]):_vm._e()],1),_c('div',[(_vm.entry.segmentation)?_c('el-button',{staticClass:"button",attrs:{"size":"mini","icon":"el-icon-view"},on:{"click":_vm.openSegmentation}},[_vm._v("View segmentation")]):_vm._e()],1),_c('div',[(_vm.biolucidaData)?_c('el-button',{staticClass:"button",attrs:{"size":"mini","icon":"el-icon-view"},on:{"click":_vm.openImage}},[_vm._v("View image")]):_vm._e()],1)])]),((_vm.cardOverflow && !_vm.expanded))?_c('p',{staticClass:"read-more"},[_c('el-button',{staticClass:"read-more-button",on:{"click":_vm.expand}},[_vm._v("Read more...")])],1):_vm._e()])])}
|
|
1868
|
+
var DatasetCardvue_type_template_id_eaeba60a_scoped_true_staticRenderFns = []
|
|
1538
1869
|
|
|
1539
1870
|
|
|
1540
|
-
// CONCATENATED MODULE: ./src/components/DatasetCard.vue?vue&type=template&id=
|
|
1541
|
-
|
|
1542
|
-
// EXTERNAL MODULE: external "core-js/modules/es.array.concat"
|
|
1543
|
-
var es_array_concat_ = __webpack_require__("18d2");
|
|
1871
|
+
// CONCATENATED MODULE: ./src/components/DatasetCard.vue?vue&type=template&id=eaeba60a&scoped=true&
|
|
1544
1872
|
|
|
1545
1873
|
// EXTERNAL MODULE: external "core-js/modules/es.string.replace"
|
|
1546
1874
|
var es_string_replace_ = __webpack_require__("bfab");
|
|
@@ -1640,6 +1968,13 @@ var EventBus = new external_vue_default.a();
|
|
|
1640
1968
|
//
|
|
1641
1969
|
//
|
|
1642
1970
|
//
|
|
1971
|
+
//
|
|
1972
|
+
//
|
|
1973
|
+
//
|
|
1974
|
+
//
|
|
1975
|
+
//
|
|
1976
|
+
//
|
|
1977
|
+
//
|
|
1643
1978
|
|
|
1644
1979
|
/* eslint-disable no-alert, no-console */
|
|
1645
1980
|
|
|
@@ -1666,9 +2001,9 @@ var DatasetCardvue_type_script_lang_js_capitalise = function capitalise(string)
|
|
|
1666
2001
|
* the required viewing.
|
|
1667
2002
|
*/
|
|
1668
2003
|
entry: Object,
|
|
1669
|
-
|
|
1670
|
-
type:
|
|
1671
|
-
default:
|
|
2004
|
+
envVars: {
|
|
2005
|
+
type: Object,
|
|
2006
|
+
default: function _default() {}
|
|
1672
2007
|
}
|
|
1673
2008
|
},
|
|
1674
2009
|
data: function data() {
|
|
@@ -1677,7 +2012,8 @@ var DatasetCardvue_type_script_lang_js_capitalise = function capitalise(string)
|
|
|
1677
2012
|
dataLocation: this.entry.doi,
|
|
1678
2013
|
discoverId: undefined,
|
|
1679
2014
|
cardOverflow: false,
|
|
1680
|
-
expanded: false
|
|
2015
|
+
expanded: false,
|
|
2016
|
+
biolucidaData: undefined
|
|
1681
2017
|
};
|
|
1682
2018
|
},
|
|
1683
2019
|
computed: {
|
|
@@ -1702,18 +2038,30 @@ var DatasetCardvue_type_script_lang_js_capitalise = function capitalise(string)
|
|
|
1702
2038
|
samples: function samples() {
|
|
1703
2039
|
var text = "";
|
|
1704
2040
|
|
|
1705
|
-
if (this.entry.numberSamples === 1) {
|
|
1706
|
-
text = this.entry.numberSamples + " sample";
|
|
1707
|
-
} else if (this.entry.numberSamples > 1) {
|
|
1708
|
-
text = this.entry.numberSamples + " samples";
|
|
1709
|
-
}
|
|
1710
|
-
|
|
1711
2041
|
if (this.entry.species) {
|
|
1712
2042
|
if (species_map[this.entry.species[0].toLowerCase()]) {
|
|
1713
|
-
text
|
|
2043
|
+
text = "".concat(species_map[this.entry.species[0].toLowerCase()]);
|
|
1714
2044
|
} else {
|
|
1715
|
-
text
|
|
2045
|
+
text = "".concat(this.entry.species);
|
|
2046
|
+
}
|
|
2047
|
+
}
|
|
2048
|
+
|
|
2049
|
+
if (this.entry.numberSamples > 0) {
|
|
2050
|
+
text += " (";
|
|
2051
|
+
|
|
2052
|
+
if (this.entry.numberSamples === 1) {
|
|
2053
|
+
text += "".concat(this.entry.numberSamples, " sample");
|
|
2054
|
+
} else if (this.entry.numberSamples > 1) {
|
|
2055
|
+
text += "".concat(this.entry.numberSamples, " samples");
|
|
2056
|
+
}
|
|
2057
|
+
|
|
2058
|
+
if (this.entry.numberSubjects === 1) {
|
|
2059
|
+
text += " from ".concat(this.entry.numberSubjects, " subject");
|
|
2060
|
+
} else if (this.entry.numberSamples > 1) {
|
|
2061
|
+
text += " from ".concat(this.entry.numberSubjects, " subjects");
|
|
1716
2062
|
}
|
|
2063
|
+
|
|
2064
|
+
text += ")";
|
|
1717
2065
|
}
|
|
1718
2066
|
|
|
1719
2067
|
return text;
|
|
@@ -1758,7 +2106,7 @@ var DatasetCardvue_type_script_lang_js_capitalise = function capitalise(string)
|
|
|
1758
2106
|
window.open(this.dataLocation, '_blank');
|
|
1759
2107
|
},
|
|
1760
2108
|
openRepository: function openRepository() {
|
|
1761
|
-
var apiLocation = this.
|
|
2109
|
+
var apiLocation = this.envVars.API_LOCATION;
|
|
1762
2110
|
this.entry.additionalLinks.forEach(function (el) {
|
|
1763
2111
|
if (el.description == "Repository") {
|
|
1764
2112
|
var xmlhttp = new XMLHttpRequest();
|
|
@@ -1810,13 +2158,61 @@ var DatasetCardvue_type_script_lang_js_capitalise = function capitalise(string)
|
|
|
1810
2158
|
};
|
|
1811
2159
|
components_EventBus.$emit("PopoverActionClick", action);
|
|
1812
2160
|
},
|
|
2161
|
+
openSegmentation: function openSegmentation() {
|
|
2162
|
+
if (this.entry.segmentation && this.entry.segmentation[0]) {
|
|
2163
|
+
var segmentation = this.entry.segmentation[0];
|
|
2164
|
+
var filePath = segmentation.dataset.path;
|
|
2165
|
+
var datasetId = this.discoverId;
|
|
2166
|
+
var datasetVersion = this.version;
|
|
2167
|
+
var prefix = 'https://sparc.biolucida.net:8081';
|
|
2168
|
+
var resource = {
|
|
2169
|
+
share_link: "".concat(prefix, "/dataviewer?datasetId=").concat(datasetId, "&version=").concat(datasetVersion, "&path=").concat(filePath)
|
|
2170
|
+
};
|
|
2171
|
+
var action = {
|
|
2172
|
+
label: DatasetCardvue_type_script_lang_js_capitalise(this.label),
|
|
2173
|
+
resource: resource,
|
|
2174
|
+
dataset: this.dataLocation,
|
|
2175
|
+
datasetId: this.discoverId,
|
|
2176
|
+
title: "View segmentation",
|
|
2177
|
+
name: this.entry.name,
|
|
2178
|
+
description: this.entry.description,
|
|
2179
|
+
type: "Segmentation"
|
|
2180
|
+
};
|
|
2181
|
+
components_EventBus.$emit("PopoverActionClick", action);
|
|
2182
|
+
}
|
|
2183
|
+
},
|
|
2184
|
+
openImage: function openImage() {
|
|
2185
|
+
if (this.biolucidaData) {
|
|
2186
|
+
var biolucidaData = this.biolucidaData;
|
|
2187
|
+
|
|
2188
|
+
if ('dataset_images' in biolucidaData) {
|
|
2189
|
+
var image = biolucidaData['dataset_images'][0];
|
|
2190
|
+
var resource = {
|
|
2191
|
+
share_link: image.share_link,
|
|
2192
|
+
id: image.image_id,
|
|
2193
|
+
itemId: image.sourcepkg_id
|
|
2194
|
+
};
|
|
2195
|
+
var action = {
|
|
2196
|
+
label: DatasetCardvue_type_script_lang_js_capitalise(this.label),
|
|
2197
|
+
resource: resource,
|
|
2198
|
+
dataset: this.dataLocation,
|
|
2199
|
+
datasetId: this.discoverId,
|
|
2200
|
+
title: "View image",
|
|
2201
|
+
name: this.entry.name,
|
|
2202
|
+
description: this.entry.description,
|
|
2203
|
+
type: "Biolucida"
|
|
2204
|
+
};
|
|
2205
|
+
components_EventBus.$emit("PopoverActionClick", action);
|
|
2206
|
+
}
|
|
2207
|
+
}
|
|
2208
|
+
},
|
|
1813
2209
|
getScaffoldPath: function getScaffoldPath(discoverId, version, scaffoldPath) {
|
|
1814
2210
|
var id = discoverId;
|
|
1815
|
-
var path = "".concat(this.
|
|
2211
|
+
var path = "".concat(this.envVars.API_LOCATION, "s3-resource/").concat(id, "/").concat(version, "/files/").concat(scaffoldPath);
|
|
1816
2212
|
return path;
|
|
1817
2213
|
},
|
|
1818
2214
|
getFileFromPath: function getFileFromPath(discoverId, version, path) {
|
|
1819
|
-
return "".concat(this.
|
|
2215
|
+
return "".concat(this.envVars.API_LOCATION, "s3-resource/").concat(discoverId, "/").concat(version, "/files/").concat(path);
|
|
1820
2216
|
},
|
|
1821
2217
|
isOverflown: function isOverflown(el) {
|
|
1822
2218
|
return el.clientHeight < el.scrollHeight;
|
|
@@ -1842,6 +2238,8 @@ var DatasetCardvue_type_script_lang_js_capitalise = function capitalise(string)
|
|
|
1842
2238
|
_this.discoverId = data.id;
|
|
1843
2239
|
_this.version = data.version;
|
|
1844
2240
|
_this.dataLocation = "https://sparc.science/datasets/".concat(data.id, "?type=dataset");
|
|
2241
|
+
|
|
2242
|
+
_this.getBiolucidaInfo(_this.discoverId);
|
|
1845
2243
|
}).catch(function () {
|
|
1846
2244
|
//set defaults if we hit an error
|
|
1847
2245
|
_this.thumbnail = __webpack_require__("9b53");
|
|
@@ -1850,6 +2248,18 @@ var DatasetCardvue_type_script_lang_js_capitalise = function capitalise(string)
|
|
|
1850
2248
|
},
|
|
1851
2249
|
lastName: function lastName(fullName) {
|
|
1852
2250
|
return fullName.split(',')[0];
|
|
2251
|
+
},
|
|
2252
|
+
getBiolucidaInfo: function getBiolucidaInfo(id) {
|
|
2253
|
+
var _this2 = this;
|
|
2254
|
+
|
|
2255
|
+
var apiLocation = this.envVars.API_LOCATION;
|
|
2256
|
+
var endpoint = apiLocation + "image_search/" + id; // Add parameters if we are sent them
|
|
2257
|
+
|
|
2258
|
+
fetch(endpoint).then(function (response) {
|
|
2259
|
+
return response.json();
|
|
2260
|
+
}).then(function (data) {
|
|
2261
|
+
if (data.status == "success") _this2.biolucidaData = data;
|
|
2262
|
+
});
|
|
1853
2263
|
}
|
|
1854
2264
|
},
|
|
1855
2265
|
mounted: function mounted() {
|
|
@@ -1869,8 +2279,8 @@ var DatasetCardvue_type_script_lang_js_capitalise = function capitalise(string)
|
|
|
1869
2279
|
});
|
|
1870
2280
|
// CONCATENATED MODULE: ./src/components/DatasetCard.vue?vue&type=script&lang=js&
|
|
1871
2281
|
/* harmony default export */ var components_DatasetCardvue_type_script_lang_js_ = (DatasetCardvue_type_script_lang_js_);
|
|
1872
|
-
// EXTERNAL MODULE: ./src/components/DatasetCard.vue?vue&type=style&index=0&id=
|
|
1873
|
-
var
|
|
2282
|
+
// EXTERNAL MODULE: ./src/components/DatasetCard.vue?vue&type=style&index=0&id=eaeba60a&scoped=true&lang=css&
|
|
2283
|
+
var DatasetCardvue_type_style_index_0_id_eaeba60a_scoped_true_lang_css_ = __webpack_require__("c3dd");
|
|
1874
2284
|
|
|
1875
2285
|
// CONCATENATED MODULE: ./src/components/DatasetCard.vue
|
|
1876
2286
|
|
|
@@ -1883,17 +2293,17 @@ var DatasetCardvue_type_style_index_0_id_0b100df4_scoped_true_lang_css_ = __webp
|
|
|
1883
2293
|
|
|
1884
2294
|
var DatasetCard_component = normalizeComponent(
|
|
1885
2295
|
components_DatasetCardvue_type_script_lang_js_,
|
|
1886
|
-
|
|
1887
|
-
|
|
2296
|
+
DatasetCardvue_type_template_id_eaeba60a_scoped_true_render,
|
|
2297
|
+
DatasetCardvue_type_template_id_eaeba60a_scoped_true_staticRenderFns,
|
|
1888
2298
|
false,
|
|
1889
2299
|
null,
|
|
1890
|
-
"
|
|
2300
|
+
"eaeba60a",
|
|
1891
2301
|
null
|
|
1892
2302
|
|
|
1893
2303
|
)
|
|
1894
2304
|
|
|
1895
2305
|
/* harmony default export */ var DatasetCard = (DatasetCard_component.exports);
|
|
1896
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
2306
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"52eab1bf-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=17e861eb&scoped=true&
|
|
1897
2307
|
var ContextCardvue_type_template_id_17e861eb_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.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"})]),_c('el-card',{directives:[{name:"show",rawName:"v-show",value:(_vm.showDetails),expression:"showDetails"}],staticClass:"context-card card",attrs:{"body-style":{ padding: '0px', 'background-color': 'white', display: 'flex', width: '516px'}}},[_c('img',{staticClass:"context-image card-left",attrs:{"src":_vm.entry.bannerImage}}),_c('div',{staticClass:"card-right"},[_c('div',{staticClass:"title"},[_vm._v(_vm._s(_vm.entry.title))]),_c('div',[_vm._v(_vm._s(_vm.entry.description))]),_vm._l((_vm.entry.keys),function(key){return [_c('br',{key:key.text}),_c('span',{key:key.text + 1},[_c('img',{staticStyle:{"height":"20px"},attrs:{"src":key.image}}),_vm._v(" "+_vm._s(key.text))])]})],2)])],1)}
|
|
1898
2308
|
var ContextCardvue_type_template_id_17e861eb_scoped_true_staticRenderFns = []
|
|
1899
2309
|
|
|
@@ -2046,6 +2456,7 @@ var ContextCard_component = normalizeComponent(
|
|
|
2046
2456
|
|
|
2047
2457
|
|
|
2048
2458
|
|
|
2459
|
+
|
|
2049
2460
|
|
|
2050
2461
|
|
|
2051
2462
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
|
|
@@ -2098,6 +2509,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
2098
2509
|
//
|
|
2099
2510
|
//
|
|
2100
2511
|
//
|
|
2512
|
+
//
|
|
2101
2513
|
|
|
2102
2514
|
/* eslint-disable no-alert, no-console */
|
|
2103
2515
|
|
|
@@ -2106,6 +2518,8 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
2106
2518
|
|
|
2107
2519
|
|
|
2108
2520
|
|
|
2521
|
+
|
|
2522
|
+
|
|
2109
2523
|
locale_default.a.use(en_default.a);
|
|
2110
2524
|
external_vue_default.a.use(button_default.a);
|
|
2111
2525
|
external_vue_default.a.use(card_default.a);
|
|
@@ -2170,7 +2584,6 @@ var initial_state = {
|
|
|
2170
2584
|
results: [],
|
|
2171
2585
|
numberOfHits: 0,
|
|
2172
2586
|
filter: [],
|
|
2173
|
-
filterFacets: undefined,
|
|
2174
2587
|
loadingCards: false,
|
|
2175
2588
|
numberPerPage: 10,
|
|
2176
2589
|
page: 1,
|
|
@@ -2205,9 +2618,9 @@ var initial_state = {
|
|
|
2205
2618
|
type: Object,
|
|
2206
2619
|
default: undefined
|
|
2207
2620
|
},
|
|
2208
|
-
|
|
2209
|
-
type:
|
|
2210
|
-
default:
|
|
2621
|
+
envVars: {
|
|
2622
|
+
type: Object,
|
|
2623
|
+
default: function _default() {}
|
|
2211
2624
|
},
|
|
2212
2625
|
firstSearch: {
|
|
2213
2626
|
type: String,
|
|
@@ -2228,82 +2641,102 @@ var initial_state = {
|
|
|
2228
2641
|
filterEntry: function filterEntry() {
|
|
2229
2642
|
return {
|
|
2230
2643
|
numberOfHits: this.numberOfHits,
|
|
2231
|
-
filterFacets: this.
|
|
2644
|
+
filterFacets: this.filter
|
|
2232
2645
|
};
|
|
2233
2646
|
}
|
|
2234
2647
|
},
|
|
2235
2648
|
methods: {
|
|
2236
|
-
openSearch: function openSearch(
|
|
2237
|
-
var
|
|
2238
|
-
var endpoint = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : undefined;
|
|
2239
|
-
var params = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : undefined;
|
|
2649
|
+
openSearch: function openSearch(filter) {
|
|
2650
|
+
var search = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
|
|
2240
2651
|
this.searchInput = search;
|
|
2241
2652
|
this.resetPageNavigation();
|
|
2242
|
-
this.
|
|
2653
|
+
this.searchAlgolia(filter, search);
|
|
2243
2654
|
|
|
2244
2655
|
if (filter) {
|
|
2245
|
-
this.
|
|
2246
|
-
this.$refs.filtersRef.setCascader(this.
|
|
2656
|
+
this.filter = _toConsumableArray(filter);
|
|
2657
|
+
this.$refs.filtersRef.setCascader(this.filter);
|
|
2658
|
+
}
|
|
2659
|
+
},
|
|
2660
|
+
addFilter: function addFilter(filter) {
|
|
2661
|
+
this.resetPageNavigation();
|
|
2662
|
+
|
|
2663
|
+
if (filter) {
|
|
2664
|
+
this.$refs.filtersRef.addFilter(filter);
|
|
2665
|
+
this.$refs.filtersRef.initiateSearch();
|
|
2247
2666
|
}
|
|
2248
2667
|
},
|
|
2249
2668
|
clearSearchClicked: function clearSearchClicked() {
|
|
2250
2669
|
this.searchInput = "";
|
|
2251
2670
|
this.resetPageNavigation();
|
|
2252
|
-
this.
|
|
2671
|
+
this.searchAlgolia(this.filters, this.searchInput);
|
|
2253
2672
|
},
|
|
2254
2673
|
searchEvent: function searchEvent() {
|
|
2255
2674
|
var event = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
|
|
2256
2675
|
|
|
2257
2676
|
if (event.keyCode === 13 || event instanceof MouseEvent) {
|
|
2258
2677
|
this.resetPageNavigation();
|
|
2259
|
-
this.
|
|
2678
|
+
this.searchAlgolia(this.filters, this.searchInput);
|
|
2260
2679
|
}
|
|
2261
2680
|
},
|
|
2262
|
-
filterUpdate: function filterUpdate(
|
|
2681
|
+
filterUpdate: function filterUpdate(filters) {
|
|
2682
|
+
this.filters = _toConsumableArray(filters);
|
|
2263
2683
|
this.resetPageNavigation();
|
|
2264
|
-
this.
|
|
2265
|
-
this.filter = _toConsumableArray(filter);
|
|
2684
|
+
this.searchAlgolia(filters, this.searchInput);
|
|
2266
2685
|
this.$emit("search-changed", {
|
|
2267
2686
|
value: this.filter,
|
|
2268
2687
|
type: "filter-update"
|
|
2269
2688
|
});
|
|
2270
2689
|
},
|
|
2690
|
+
searchAlgolia: function searchAlgolia(filters) {
|
|
2691
|
+
var _this = this;
|
|
2692
|
+
|
|
2693
|
+
var query = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
|
|
2694
|
+
// Algolia search
|
|
2695
|
+
this.algoliaClient.search(getFilters(filters), query, this.numberPerPage, this.page).then(function (searchData) {
|
|
2696
|
+
_this.numberOfHits = searchData.total;
|
|
2697
|
+
_this.discoverIds = searchData.discoverIds;
|
|
2698
|
+
_this.results = searchData.items;
|
|
2699
|
+
|
|
2700
|
+
_this.searchSciCrunch({
|
|
2701
|
+
'discoverIds': _this.discoverIds
|
|
2702
|
+
});
|
|
2703
|
+
});
|
|
2704
|
+
},
|
|
2705
|
+
filtersLoading: function filtersLoading(val) {
|
|
2706
|
+
this.loadingCards = val;
|
|
2707
|
+
},
|
|
2271
2708
|
numberPerPageUpdate: function numberPerPageUpdate(val) {
|
|
2272
2709
|
this.numberPerPage = val;
|
|
2273
2710
|
this.pageChange(1);
|
|
2274
2711
|
},
|
|
2275
2712
|
pageChange: function pageChange(page) {
|
|
2276
2713
|
this.start = (page - 1) * this.numberPerPage;
|
|
2277
|
-
this.
|
|
2714
|
+
this.page = page;
|
|
2715
|
+
this.searchAlgolia(this.filters, this.searchInput, this.numberPerPage, this.page);
|
|
2278
2716
|
},
|
|
2279
|
-
searchSciCrunch: function searchSciCrunch(
|
|
2280
|
-
var
|
|
2717
|
+
searchSciCrunch: function searchSciCrunch(params) {
|
|
2718
|
+
var _this2 = this;
|
|
2281
2719
|
|
|
2282
|
-
var filter = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : undefined;
|
|
2283
|
-
var searchEndpoint = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : undefined;
|
|
2284
|
-
var params = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : undefined;
|
|
2285
2720
|
this.loadingCards = true;
|
|
2286
2721
|
this.results = [];
|
|
2287
2722
|
this.disableCards();
|
|
2288
|
-
if (!searchEndpoint) searchEndpoint = this.searchEndpoint;
|
|
2289
|
-
if (!params) params = this.createParams(filter, this.start, this.numberPerPage);
|
|
2290
2723
|
this.$emit("search-changed", {
|
|
2291
|
-
value:
|
|
2724
|
+
value: this.searchInput,
|
|
2292
2725
|
type: "query-update"
|
|
2293
2726
|
});
|
|
2294
|
-
this.callSciCrunch(this.
|
|
2727
|
+
this.callSciCrunch(this.envVars.API_LOCATION, params).then(function (result) {
|
|
2295
2728
|
//Only process if the search term is the same as the last search term.
|
|
2296
2729
|
//This avoid old search being displayed.
|
|
2297
|
-
|
|
2730
|
+
_this2.sciCrunchError = false;
|
|
2298
2731
|
|
|
2299
|
-
|
|
2732
|
+
_this2.resultsProcessing(result);
|
|
2300
2733
|
|
|
2301
|
-
|
|
2302
|
-
|
|
2734
|
+
_this2.$refs.content.style["overflow-y"] = "scroll";
|
|
2735
|
+
_this2.loadingCards = false;
|
|
2303
2736
|
}).catch(function (result) {
|
|
2304
2737
|
if (result.name !== 'AbortError') {
|
|
2305
|
-
|
|
2306
|
-
|
|
2738
|
+
_this2.loadingCards = false;
|
|
2739
|
+
_this2.sciCrunchError = result.message;
|
|
2307
2740
|
}
|
|
2308
2741
|
});
|
|
2309
2742
|
},
|
|
@@ -2320,39 +2753,11 @@ var initial_state = {
|
|
|
2320
2753
|
this.start = 0;
|
|
2321
2754
|
this.page = 1;
|
|
2322
2755
|
},
|
|
2323
|
-
createParams: function createParams(filter, start, size) {
|
|
2324
|
-
//Deconstruct list of fitlers to list of term
|
|
2325
|
-
//and facet.
|
|
2326
|
-
var params = {};
|
|
2327
|
-
var term = [];
|
|
2328
|
-
var facet = [];
|
|
2329
|
-
var f = undefined;
|
|
2330
|
-
|
|
2331
|
-
if (filter !== undefined) {
|
|
2332
|
-
f = filter;
|
|
2333
|
-
} else {
|
|
2334
|
-
f = this.filter;
|
|
2335
|
-
}
|
|
2336
|
-
|
|
2337
|
-
if (f) f.forEach(function (e) {
|
|
2338
|
-
//Do not ask for any "show all" request
|
|
2339
|
-
if (e.facet !== "show all") {
|
|
2340
|
-
term.push(e.term);
|
|
2341
|
-
facet.push(e.facet);
|
|
2342
|
-
}
|
|
2343
|
-
});
|
|
2344
|
-
params.term = term;
|
|
2345
|
-
params.facet = facet;
|
|
2346
|
-
params.start = start;
|
|
2347
|
-
params.size = size;
|
|
2348
|
-
return params;
|
|
2349
|
-
},
|
|
2350
2756
|
resultsProcessing: function resultsProcessing(data) {
|
|
2351
|
-
var
|
|
2757
|
+
var _this3 = this;
|
|
2352
2758
|
|
|
2353
2759
|
this.lastSearch = this.searchInput;
|
|
2354
2760
|
this.results = [];
|
|
2355
|
-
var id = 0;
|
|
2356
2761
|
this.numberOfHits = data.numberOfHits;
|
|
2357
2762
|
|
|
2358
2763
|
if (data.results.length === 0) {
|
|
@@ -2361,14 +2766,17 @@ var initial_state = {
|
|
|
2361
2766
|
|
|
2362
2767
|
data.results.forEach(function (element) {
|
|
2363
2768
|
// this.results.push(element) below should be once backend is ready
|
|
2364
|
-
|
|
2769
|
+
var datasetInfo = {
|
|
2365
2770
|
name: element.name,
|
|
2366
2771
|
description: element.description,
|
|
2367
2772
|
contributors: element.contributors,
|
|
2368
|
-
numberSamples:
|
|
2773
|
+
numberSamples: element.sampleSize ? parseInt(element.sampleSize) : 0,
|
|
2774
|
+
numberSubjects: element.subjectSize ? parseInt(element.subjectSize) : 0,
|
|
2369
2775
|
updated: element.updated[0].timestamp.split("T")[0],
|
|
2370
2776
|
url: element.uri[0],
|
|
2371
|
-
datasetId: element.
|
|
2777
|
+
datasetId: element.dataset_identifier,
|
|
2778
|
+
datasetRevision: element.dataset_revision,
|
|
2779
|
+
datasetVersion: element.dataset_version,
|
|
2372
2780
|
organs: element.organs && element.organs.length > 0 ? _toConsumableArray(new Set(element.organs.map(function (v) {
|
|
2373
2781
|
return v.name;
|
|
2374
2782
|
}))) : undefined,
|
|
@@ -2377,16 +2785,16 @@ var initial_state = {
|
|
|
2377
2785
|
}))) : undefined : undefined,
|
|
2378
2786
|
// This processing only includes each gender once into 'sexes'
|
|
2379
2787
|
csvFiles: element.csvFiles,
|
|
2380
|
-
id: id,
|
|
2381
2788
|
doi: element.doi,
|
|
2382
2789
|
publishDate: element.publishDate,
|
|
2383
2790
|
scaffolds: element['abi-scaffold-metadata-file'] ? element['abi-scaffold-metadata-file'] : undefined,
|
|
2384
2791
|
additionalLinks: element.additionalLinks,
|
|
2792
|
+
segmentation: element['mbf-segmentation'],
|
|
2385
2793
|
simulation: element.additionalLinks ? element.additionalLinks[0].description == 'Repository' : false,
|
|
2386
2794
|
s3uri: element.s3uri
|
|
2387
|
-
}
|
|
2795
|
+
};
|
|
2388
2796
|
|
|
2389
|
-
|
|
2797
|
+
_this3.results.push(datasetInfo);
|
|
2390
2798
|
});
|
|
2391
2799
|
},
|
|
2392
2800
|
createfilterParams: function createfilterParams(params) {
|
|
@@ -2408,25 +2816,20 @@ var initial_state = {
|
|
|
2408
2816
|
|
|
2409
2817
|
return p.toString();
|
|
2410
2818
|
},
|
|
2411
|
-
callSciCrunch: function callSciCrunch(apiLocation
|
|
2412
|
-
var
|
|
2819
|
+
callSciCrunch: function callSciCrunch(apiLocation) {
|
|
2820
|
+
var _this4 = this;
|
|
2413
2821
|
|
|
2414
|
-
var params = arguments.length >
|
|
2822
|
+
var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
2415
2823
|
return new Promise(function (resolve, reject) {
|
|
2416
2824
|
// the following controller will abort current search
|
|
2417
2825
|
// if a new one has been started
|
|
2418
|
-
if (
|
|
2419
|
-
|
|
2420
|
-
var signal =
|
|
2421
|
-
var endpoint = apiLocation + searchEndpoint; // Add parameters if we are sent them
|
|
2826
|
+
if (_this4._controller) _this4._controller.abort();
|
|
2827
|
+
_this4._controller = new AbortController();
|
|
2828
|
+
var signal = _this4._controller.signal; // Add parameters if we are sent them
|
|
2422
2829
|
|
|
2423
|
-
|
|
2424
|
-
endpoint = endpoint + search + "/?" + _this3.createfilterParams(params);
|
|
2425
|
-
} else {
|
|
2426
|
-
endpoint = endpoint + "?" + _this3.createfilterParams(params);
|
|
2427
|
-
}
|
|
2830
|
+
var fullEndpoint = _this4.envVars.API_LOCATION + _this4.searchEndpoint + "?" + _this4.createfilterParams(params);
|
|
2428
2831
|
|
|
2429
|
-
fetch(
|
|
2832
|
+
fetch(fullEndpoint, {
|
|
2430
2833
|
signal: signal
|
|
2431
2834
|
}).then(handleErrors).then(function (response) {
|
|
2432
2835
|
return response.json();
|
|
@@ -2439,46 +2842,26 @@ var initial_state = {
|
|
|
2439
2842
|
}
|
|
2440
2843
|
},
|
|
2441
2844
|
mounted: function mounted() {
|
|
2442
|
-
//
|
|
2845
|
+
// initialise algolia
|
|
2846
|
+
this.algoliaClient = new algolia_AlgoliaClient(this.envVars.ALGOLIA_ID, this.envVars.ALGOLIA_KEY, this.envVars.PENNSIEVE_API_LOCATION);
|
|
2847
|
+
this.algoliaClient.initIndex(this.envVars.ALGOLIA_INDEX);
|
|
2848
|
+
console.log('Algolia initialised in sidebar'); // temporarily disable flatmap search since there are no datasets
|
|
2849
|
+
|
|
2443
2850
|
if (this.firstSearch === "Flatmap" || this.firstSearch === "flatmap") {
|
|
2444
|
-
this.openSearch(''
|
|
2445
|
-
facet: "show all",
|
|
2446
|
-
term: 'organ'
|
|
2447
|
-
}, {
|
|
2448
|
-
facet: "show all",
|
|
2449
|
-
term: 'species'
|
|
2450
|
-
}, {
|
|
2451
|
-
facet: "show all",
|
|
2452
|
-
term: 'gender'
|
|
2453
|
-
}, {
|
|
2454
|
-
facet: "show all",
|
|
2455
|
-
term: 'datasets'
|
|
2456
|
-
}]);
|
|
2851
|
+
this.openSearch(undefined, '');
|
|
2457
2852
|
} else {
|
|
2458
|
-
this.openSearch(
|
|
2459
|
-
facet: "show all",
|
|
2460
|
-
term: 'organ'
|
|
2461
|
-
}, {
|
|
2462
|
-
facet: "show all",
|
|
2463
|
-
term: 'species'
|
|
2464
|
-
}, {
|
|
2465
|
-
facet: "show all",
|
|
2466
|
-
term: 'gender'
|
|
2467
|
-
}, {
|
|
2468
|
-
facet: "show all",
|
|
2469
|
-
term: 'datasets'
|
|
2470
|
-
}]);
|
|
2853
|
+
this.openSearch(undefined, '');
|
|
2471
2854
|
}
|
|
2472
2855
|
},
|
|
2473
2856
|
created: function created() {
|
|
2474
2857
|
//Create non-reactive local variables
|
|
2475
|
-
this.searchEndpoint = "
|
|
2858
|
+
this.searchEndpoint = "dataset_info/using_multiple_discoverIds/";
|
|
2476
2859
|
}
|
|
2477
2860
|
});
|
|
2478
2861
|
// CONCATENATED MODULE: ./src/components/SidebarContent.vue?vue&type=script&lang=js&
|
|
2479
2862
|
/* harmony default export */ var components_SidebarContentvue_type_script_lang_js_ = (SidebarContentvue_type_script_lang_js_);
|
|
2480
|
-
// EXTERNAL MODULE: ./src/components/SidebarContent.vue?vue&type=style&index=0&id=
|
|
2481
|
-
var
|
|
2863
|
+
// EXTERNAL MODULE: ./src/components/SidebarContent.vue?vue&type=style&index=0&id=2e1db9a4&scoped=true&lang=css&
|
|
2864
|
+
var SidebarContentvue_type_style_index_0_id_2e1db9a4_scoped_true_lang_css_ = __webpack_require__("be47");
|
|
2482
2865
|
|
|
2483
2866
|
// CONCATENATED MODULE: ./src/components/SidebarContent.vue
|
|
2484
2867
|
|
|
@@ -2491,17 +2874,17 @@ var SidebarContentvue_type_style_index_0_id_638ba01f_scoped_true_lang_css_ = __w
|
|
|
2491
2874
|
|
|
2492
2875
|
var SidebarContent_component = normalizeComponent(
|
|
2493
2876
|
components_SidebarContentvue_type_script_lang_js_,
|
|
2494
|
-
|
|
2495
|
-
|
|
2877
|
+
SidebarContentvue_type_template_id_2e1db9a4_scoped_true_render,
|
|
2878
|
+
SidebarContentvue_type_template_id_2e1db9a4_scoped_true_staticRenderFns,
|
|
2496
2879
|
false,
|
|
2497
2880
|
null,
|
|
2498
|
-
"
|
|
2881
|
+
"2e1db9a4",
|
|
2499
2882
|
null
|
|
2500
2883
|
|
|
2501
2884
|
)
|
|
2502
2885
|
|
|
2503
2886
|
/* harmony default export */ var SidebarContent = (SidebarContent_component.exports);
|
|
2504
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
2887
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"52eab1bf-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/Tabs.vue?vue&type=template&id=5d1b9484&scoped=true&
|
|
2505
2888
|
var Tabsvue_type_template_id_5d1b9484_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"tab-container"},_vm._l((_vm.tabTitles),function(title){return _c('div',{key:title.id,staticClass:"title"},[_c('div',{staticClass:"title-text-table",class:{ highlightText : (title.id==_vm.activeId) },on:{"click":function($event){return _vm.titleClicked(title.id)}}},[_c('div',{staticClass:"title-text"},[_vm._v(" "+_vm._s(title.title)+" ")])])])}),0)}
|
|
2506
2889
|
var Tabsvue_type_template_id_5d1b9484_scoped_true_staticRenderFns = []
|
|
2507
2890
|
|
|
@@ -2672,9 +3055,9 @@ var SideBarvue_type_script_lang_js_initial_state = {
|
|
|
2672
3055
|
return SideBarvue_type_script_lang_js_initial_state;
|
|
2673
3056
|
}
|
|
2674
3057
|
},
|
|
2675
|
-
|
|
2676
|
-
type:
|
|
2677
|
-
default:
|
|
3058
|
+
envVars: {
|
|
3059
|
+
type: Object,
|
|
3060
|
+
default: function _default() {}
|
|
2678
3061
|
},
|
|
2679
3062
|
tabs: {
|
|
2680
3063
|
type: Array,
|
|
@@ -2709,22 +3092,31 @@ var SideBarvue_type_script_lang_js_initial_state = {
|
|
|
2709
3092
|
toggleDrawer: function toggleDrawer() {
|
|
2710
3093
|
this.drawerOpen = !this.drawerOpen;
|
|
2711
3094
|
},
|
|
2712
|
-
openSearch: function openSearch(
|
|
3095
|
+
openSearch: function openSearch(facets, query) {
|
|
2713
3096
|
var _this = this;
|
|
2714
3097
|
|
|
2715
3098
|
this.drawerOpen = true; // Because refs are in v-for, nextTick is needed here
|
|
2716
3099
|
|
|
2717
3100
|
external_vue_default.a.nextTick(function () {
|
|
2718
|
-
_this.$refs[_this.activeId][0].openSearch(
|
|
3101
|
+
_this.$refs[_this.activeId][0].openSearch(facets, query);
|
|
2719
3102
|
});
|
|
2720
3103
|
},
|
|
2721
|
-
|
|
3104
|
+
addFilter: function addFilter(filter) {
|
|
2722
3105
|
var _this2 = this;
|
|
2723
3106
|
|
|
2724
3107
|
this.drawerOpen = true; // Because refs are in v-for, nextTick is needed here
|
|
2725
3108
|
|
|
2726
3109
|
external_vue_default.a.nextTick(function () {
|
|
2727
|
-
_this2.$refs[_this2.activeId][0].
|
|
3110
|
+
_this2.$refs[_this2.activeId][0].addFilter(filter);
|
|
3111
|
+
});
|
|
3112
|
+
},
|
|
3113
|
+
openNeuronSearch: function openNeuronSearch(neuron) {
|
|
3114
|
+
var _this3 = this;
|
|
3115
|
+
|
|
3116
|
+
this.drawerOpen = true; // Because refs are in v-for, nextTick is needed here
|
|
3117
|
+
|
|
3118
|
+
external_vue_default.a.nextTick(function () {
|
|
3119
|
+
_this3.$refs[_this3.activeId][0].openSearch('', undefined, 'scicrunch-query-string/', {
|
|
2728
3120
|
'field': '*organ.curie',
|
|
2729
3121
|
'curie': neuron
|
|
2730
3122
|
});
|
|
@@ -2738,17 +3130,17 @@ var SideBarvue_type_script_lang_js_initial_state = {
|
|
|
2738
3130
|
this.drawerOpen = this.openAtStart;
|
|
2739
3131
|
},
|
|
2740
3132
|
mounted: function mounted() {
|
|
2741
|
-
var
|
|
3133
|
+
var _this4 = this;
|
|
2742
3134
|
|
|
2743
3135
|
components_EventBus.$on("PopoverActionClick", function (payLoad) {
|
|
2744
|
-
|
|
3136
|
+
_this4.$emit("actionClick", payLoad);
|
|
2745
3137
|
});
|
|
2746
3138
|
}
|
|
2747
3139
|
});
|
|
2748
3140
|
// CONCATENATED MODULE: ./src/components/SideBar.vue?vue&type=script&lang=js&
|
|
2749
3141
|
/* harmony default export */ var components_SideBarvue_type_script_lang_js_ = (SideBarvue_type_script_lang_js_);
|
|
2750
|
-
// EXTERNAL MODULE: ./src/components/SideBar.vue?vue&type=style&index=0&id=
|
|
2751
|
-
var
|
|
3142
|
+
// EXTERNAL MODULE: ./src/components/SideBar.vue?vue&type=style&index=0&id=3d831a8e&scoped=true&lang=css&
|
|
3143
|
+
var SideBarvue_type_style_index_0_id_3d831a8e_scoped_true_lang_css_ = __webpack_require__("bc5f");
|
|
2752
3144
|
|
|
2753
3145
|
// CONCATENATED MODULE: ./src/components/SideBar.vue
|
|
2754
3146
|
|
|
@@ -2765,7 +3157,7 @@ var SideBar_component = normalizeComponent(
|
|
|
2765
3157
|
staticRenderFns,
|
|
2766
3158
|
false,
|
|
2767
3159
|
null,
|
|
2768
|
-
"
|
|
3160
|
+
"3d831a8e",
|
|
2769
3161
|
null
|
|
2770
3162
|
|
|
2771
3163
|
)
|