@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
|
@@ -129,17 +129,17 @@ module.exports = require("element-ui/lib/theme-chalk/select.css");
|
|
|
129
129
|
|
|
130
130
|
/***/ }),
|
|
131
131
|
|
|
132
|
-
/***/ "
|
|
133
|
-
/***/ (function(module, exports) {
|
|
132
|
+
/***/ "12bc":
|
|
133
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
134
134
|
|
|
135
|
-
|
|
135
|
+
// extracted by mini-css-extract-plugin
|
|
136
136
|
|
|
137
137
|
/***/ }),
|
|
138
138
|
|
|
139
|
-
/***/ "
|
|
140
|
-
/***/ (function(module, exports
|
|
139
|
+
/***/ "139f":
|
|
140
|
+
/***/ (function(module, exports) {
|
|
141
141
|
|
|
142
|
-
|
|
142
|
+
module.exports = require("core-js/modules/es.array.for-each");
|
|
143
143
|
|
|
144
144
|
/***/ }),
|
|
145
145
|
|
|
@@ -182,17 +182,6 @@ module.exports = require("element-ui/lib/theme-chalk/link.css");
|
|
|
182
182
|
|
|
183
183
|
/***/ }),
|
|
184
184
|
|
|
185
|
-
/***/ "2394":
|
|
186
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
187
|
-
|
|
188
|
-
"use strict";
|
|
189
|
-
/* 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");
|
|
190
|
-
/* 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__);
|
|
191
|
-
/* unused harmony reexport * */
|
|
192
|
-
/* 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);
|
|
193
|
-
|
|
194
|
-
/***/ }),
|
|
195
|
-
|
|
196
185
|
/***/ "26bc":
|
|
197
186
|
/***/ (function(module, exports) {
|
|
198
187
|
|
|
@@ -221,13 +210,6 @@ module.exports = require("element-ui/lib/theme-chalk/loading.css");
|
|
|
221
210
|
|
|
222
211
|
/***/ }),
|
|
223
212
|
|
|
224
|
-
/***/ "3263":
|
|
225
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
226
|
-
|
|
227
|
-
// extracted by mini-css-extract-plugin
|
|
228
|
-
|
|
229
|
-
/***/ }),
|
|
230
|
-
|
|
231
213
|
/***/ "36d7":
|
|
232
214
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
233
215
|
|
|
@@ -309,6 +291,13 @@ module.exports = require("core-js/modules/es.regexp.exec");
|
|
|
309
291
|
|
|
310
292
|
/***/ }),
|
|
311
293
|
|
|
294
|
+
/***/ "5835":
|
|
295
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
296
|
+
|
|
297
|
+
// extracted by mini-css-extract-plugin
|
|
298
|
+
|
|
299
|
+
/***/ }),
|
|
300
|
+
|
|
312
301
|
/***/ "5d8c":
|
|
313
302
|
/***/ (function(module, exports) {
|
|
314
303
|
|
|
@@ -330,17 +319,6 @@ module.exports = require("core-js/modules/es.symbol");
|
|
|
330
319
|
|
|
331
320
|
/***/ }),
|
|
332
321
|
|
|
333
|
-
/***/ "625c":
|
|
334
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
335
|
-
|
|
336
|
-
"use strict";
|
|
337
|
-
/* 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");
|
|
338
|
-
/* 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__);
|
|
339
|
-
/* unused harmony reexport * */
|
|
340
|
-
/* 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);
|
|
341
|
-
|
|
342
|
-
/***/ }),
|
|
343
|
-
|
|
344
322
|
/***/ "6579":
|
|
345
323
|
/***/ (function(module, exports) {
|
|
346
324
|
|
|
@@ -383,14 +361,10 @@ module.exports = require("element-ui/lib/theme-chalk/cascader.css");
|
|
|
383
361
|
|
|
384
362
|
/***/ }),
|
|
385
363
|
|
|
386
|
-
/***/ "
|
|
387
|
-
/***/ (function(module,
|
|
364
|
+
/***/ "6ed7":
|
|
365
|
+
/***/ (function(module, exports) {
|
|
388
366
|
|
|
389
|
-
|
|
390
|
-
/* 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");
|
|
391
|
-
/* 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__);
|
|
392
|
-
/* unused harmony reexport * */
|
|
393
|
-
/* 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);
|
|
367
|
+
module.exports = require("core-js/modules/es.array.sort");
|
|
394
368
|
|
|
395
369
|
/***/ }),
|
|
396
370
|
|
|
@@ -401,6 +375,13 @@ module.exports = require("core-js/modules/es.number.constructor");
|
|
|
401
375
|
|
|
402
376
|
/***/ }),
|
|
403
377
|
|
|
378
|
+
/***/ "7919":
|
|
379
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
380
|
+
|
|
381
|
+
// extracted by mini-css-extract-plugin
|
|
382
|
+
|
|
383
|
+
/***/ }),
|
|
384
|
+
|
|
404
385
|
/***/ "79d0":
|
|
405
386
|
/***/ (function(module, exports) {
|
|
406
387
|
|
|
@@ -450,6 +431,13 @@ module.exports = require("core-js/modules/es.object.to-string");
|
|
|
450
431
|
|
|
451
432
|
/***/ }),
|
|
452
433
|
|
|
434
|
+
/***/ "88eb":
|
|
435
|
+
/***/ (function(module, exports) {
|
|
436
|
+
|
|
437
|
+
module.exports = require("algoliasearch");
|
|
438
|
+
|
|
439
|
+
/***/ }),
|
|
440
|
+
|
|
453
441
|
/***/ "8bbf":
|
|
454
442
|
/***/ (function(module, exports) {
|
|
455
443
|
|
|
@@ -478,6 +466,13 @@ module.exports = require("core-js/modules/es.string.iterator");
|
|
|
478
466
|
|
|
479
467
|
/***/ }),
|
|
480
468
|
|
|
469
|
+
/***/ "9861":
|
|
470
|
+
/***/ (function(module, exports) {
|
|
471
|
+
|
|
472
|
+
module.exports = require("core-js/modules/es.map");
|
|
473
|
+
|
|
474
|
+
/***/ }),
|
|
475
|
+
|
|
481
476
|
/***/ "9a25":
|
|
482
477
|
/***/ (function(module, exports) {
|
|
483
478
|
|
|
@@ -485,17 +480,17 @@ module.exports = require("element-ui/lib/theme-chalk/base.css");
|
|
|
485
480
|
|
|
486
481
|
/***/ }),
|
|
487
482
|
|
|
488
|
-
/***/ "
|
|
489
|
-
/***/ (function(module, exports
|
|
483
|
+
/***/ "9a3c":
|
|
484
|
+
/***/ (function(module, exports) {
|
|
490
485
|
|
|
491
|
-
module.exports =
|
|
486
|
+
module.exports = require("core-js/modules/es.array.flat");
|
|
492
487
|
|
|
493
488
|
/***/ }),
|
|
494
489
|
|
|
495
|
-
/***/ "
|
|
490
|
+
/***/ "9b53":
|
|
496
491
|
/***/ (function(module, exports, __webpack_require__) {
|
|
497
492
|
|
|
498
|
-
|
|
493
|
+
module.exports = __webpack_require__.p + "img/missing-image.1878d8b8.svg";
|
|
499
494
|
|
|
500
495
|
/***/ }),
|
|
501
496
|
|
|
@@ -534,6 +529,17 @@ module.exports = require("element-ui/lib/icon");
|
|
|
534
529
|
|
|
535
530
|
/***/ }),
|
|
536
531
|
|
|
532
|
+
/***/ "bc5f":
|
|
533
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
534
|
+
|
|
535
|
+
"use strict";
|
|
536
|
+
/* 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");
|
|
537
|
+
/* 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__);
|
|
538
|
+
/* unused harmony reexport * */
|
|
539
|
+
/* 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);
|
|
540
|
+
|
|
541
|
+
/***/ }),
|
|
542
|
+
|
|
537
543
|
/***/ "bcd8":
|
|
538
544
|
/***/ (function(module, exports) {
|
|
539
545
|
|
|
@@ -548,6 +554,24 @@ module.exports = require("core-js/modules/web.dom-collections.for-each");
|
|
|
548
554
|
|
|
549
555
|
/***/ }),
|
|
550
556
|
|
|
557
|
+
/***/ "be47":
|
|
558
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
559
|
+
|
|
560
|
+
"use strict";
|
|
561
|
+
/* 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");
|
|
562
|
+
/* 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__);
|
|
563
|
+
/* unused harmony reexport * */
|
|
564
|
+
/* 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);
|
|
565
|
+
|
|
566
|
+
/***/ }),
|
|
567
|
+
|
|
568
|
+
/***/ "be6e":
|
|
569
|
+
/***/ (function(module, exports) {
|
|
570
|
+
|
|
571
|
+
module.exports = require("core-js/modules/es.string.search");
|
|
572
|
+
|
|
573
|
+
/***/ }),
|
|
574
|
+
|
|
551
575
|
/***/ "bfab":
|
|
552
576
|
/***/ (function(module, exports) {
|
|
553
577
|
|
|
@@ -562,14 +586,21 @@ module.exports = require("element-ui/lib/option");
|
|
|
562
586
|
|
|
563
587
|
/***/ }),
|
|
564
588
|
|
|
565
|
-
/***/ "
|
|
589
|
+
/***/ "c3dd":
|
|
566
590
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
567
591
|
|
|
568
592
|
"use strict";
|
|
569
|
-
/* harmony import */ var
|
|
570
|
-
/* harmony import */ var
|
|
593
|
+
/* 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");
|
|
594
|
+
/* 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__);
|
|
571
595
|
/* unused harmony reexport * */
|
|
572
|
-
/* unused harmony default export */ var _unused_webpack_default_export = (
|
|
596
|
+
/* 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);
|
|
597
|
+
|
|
598
|
+
/***/ }),
|
|
599
|
+
|
|
600
|
+
/***/ "dc05":
|
|
601
|
+
/***/ (function(module, exports) {
|
|
602
|
+
|
|
603
|
+
module.exports = require("core-js/modules/es.array.last-index-of");
|
|
573
604
|
|
|
574
605
|
/***/ }),
|
|
575
606
|
|
|
@@ -580,10 +611,14 @@ module.exports = require("current-script-polyfill");
|
|
|
580
611
|
|
|
581
612
|
/***/ }),
|
|
582
613
|
|
|
583
|
-
/***/ "
|
|
584
|
-
/***/ (function(module,
|
|
614
|
+
/***/ "e026":
|
|
615
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
585
616
|
|
|
586
|
-
|
|
617
|
+
"use strict";
|
|
618
|
+
/* 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");
|
|
619
|
+
/* 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__);
|
|
620
|
+
/* unused harmony reexport * */
|
|
621
|
+
/* 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);
|
|
587
622
|
|
|
588
623
|
/***/ }),
|
|
589
624
|
|
|
@@ -608,6 +643,20 @@ module.exports = require("core-js/modules/es.object.entries");
|
|
|
608
643
|
|
|
609
644
|
/***/ }),
|
|
610
645
|
|
|
646
|
+
/***/ "ee85":
|
|
647
|
+
/***/ (function(module, exports) {
|
|
648
|
+
|
|
649
|
+
module.exports = require("core-js/modules/es.array.unscopables.flat");
|
|
650
|
+
|
|
651
|
+
/***/ }),
|
|
652
|
+
|
|
653
|
+
/***/ "efa2":
|
|
654
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
655
|
+
|
|
656
|
+
// extracted by mini-css-extract-plugin
|
|
657
|
+
|
|
658
|
+
/***/ }),
|
|
659
|
+
|
|
611
660
|
/***/ "f705":
|
|
612
661
|
/***/ (function(module, exports) {
|
|
613
662
|
|
|
@@ -615,6 +664,13 @@ module.exports = require("core-js/modules/es.array.map");
|
|
|
615
664
|
|
|
616
665
|
/***/ }),
|
|
617
666
|
|
|
667
|
+
/***/ "f96d":
|
|
668
|
+
/***/ (function(module, exports) {
|
|
669
|
+
|
|
670
|
+
module.exports = require("core-js/modules/es.promise.finally");
|
|
671
|
+
|
|
672
|
+
/***/ }),
|
|
673
|
+
|
|
618
674
|
/***/ "fae3":
|
|
619
675
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
620
676
|
|
|
@@ -642,12 +698,12 @@ if (typeof window !== 'undefined') {
|
|
|
642
698
|
// Indicate to webpack that this file can be concatenated
|
|
643
699
|
/* harmony default export */ var setPublicPath = (null);
|
|
644
700
|
|
|
645
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
646
|
-
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,"
|
|
701
|
+
// 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&
|
|
702
|
+
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)}
|
|
647
703
|
var staticRenderFns = []
|
|
648
704
|
|
|
649
705
|
|
|
650
|
-
// CONCATENATED MODULE: ./src/components/SideBar.vue?vue&type=template&id=
|
|
706
|
+
// CONCATENATED MODULE: ./src/components/SideBar.vue?vue&type=template&id=3d831a8e&scoped=true&
|
|
651
707
|
|
|
652
708
|
// EXTERNAL MODULE: external "core-js/modules/es.symbol"
|
|
653
709
|
var es_symbol_ = __webpack_require__("6049");
|
|
@@ -717,12 +773,12 @@ var en_default = /*#__PURE__*/__webpack_require__.n(en_);
|
|
|
717
773
|
var locale_ = __webpack_require__("7f9f");
|
|
718
774
|
var locale_default = /*#__PURE__*/__webpack_require__.n(locale_);
|
|
719
775
|
|
|
720
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
721
|
-
var
|
|
722
|
-
var
|
|
776
|
+
// 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&
|
|
777
|
+
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)}
|
|
778
|
+
var SidebarContentvue_type_template_id_2e1db9a4_scoped_true_staticRenderFns = []
|
|
723
779
|
|
|
724
780
|
|
|
725
|
-
// CONCATENATED MODULE: ./src/components/SidebarContent.vue?vue&type=template&id=
|
|
781
|
+
// CONCATENATED MODULE: ./src/components/SidebarContent.vue?vue&type=template&id=2e1db9a4&scoped=true&
|
|
726
782
|
|
|
727
783
|
// EXTERNAL MODULE: external "core-js/modules/es.symbol.description"
|
|
728
784
|
var es_symbol_description_ = __webpack_require__("51e9");
|
|
@@ -736,12 +792,12 @@ var es_array_map_ = __webpack_require__("f705");
|
|
|
736
792
|
// EXTERNAL MODULE: external "core-js/modules/es.function.name"
|
|
737
793
|
var es_function_name_ = __webpack_require__("bcd8");
|
|
738
794
|
|
|
739
|
-
// EXTERNAL MODULE: external "core-js/modules/es.object.entries"
|
|
740
|
-
var es_object_entries_ = __webpack_require__("ece9");
|
|
741
|
-
|
|
742
795
|
// EXTERNAL MODULE: external "core-js/modules/es.object.to-string"
|
|
743
796
|
var es_object_to_string_ = __webpack_require__("850c");
|
|
744
797
|
|
|
798
|
+
// EXTERNAL MODULE: external "core-js/modules/es.parse-int"
|
|
799
|
+
var es_parse_int_ = __webpack_require__("0b28");
|
|
800
|
+
|
|
745
801
|
// EXTERNAL MODULE: external "core-js/modules/es.promise"
|
|
746
802
|
var es_promise_ = __webpack_require__("8495");
|
|
747
803
|
|
|
@@ -757,6 +813,9 @@ var es_set_ = __webpack_require__("47ff");
|
|
|
757
813
|
// EXTERNAL MODULE: external "core-js/modules/es.string.iterator"
|
|
758
814
|
var es_string_iterator_ = __webpack_require__("907b");
|
|
759
815
|
|
|
816
|
+
// EXTERNAL MODULE: external "core-js/modules/es.string.search"
|
|
817
|
+
var es_string_search_ = __webpack_require__("be6e");
|
|
818
|
+
|
|
760
819
|
// EXTERNAL MODULE: external "core-js/modules/es.string.split"
|
|
761
820
|
var es_string_split_ = __webpack_require__("46fa");
|
|
762
821
|
|
|
@@ -883,12 +942,12 @@ var button_css_ = __webpack_require__("26bc");
|
|
|
883
942
|
var button_ = __webpack_require__("5d8c");
|
|
884
943
|
var button_default = /*#__PURE__*/__webpack_require__.n(button_);
|
|
885
944
|
|
|
886
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
887
|
-
var
|
|
888
|
-
var
|
|
945
|
+
// 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&
|
|
946
|
+
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)}
|
|
947
|
+
var SearchFiltersvue_type_template_id_d4e05720_scoped_true_staticRenderFns = []
|
|
889
948
|
|
|
890
949
|
|
|
891
|
-
// CONCATENATED MODULE: ./src/components/SearchFilters.vue?vue&type=template&id=
|
|
950
|
+
// CONCATENATED MODULE: ./src/components/SearchFilters.vue?vue&type=template&id=d4e05720&scoped=true&
|
|
892
951
|
|
|
893
952
|
// EXTERNAL MODULE: external "core-js/modules/es.array.includes"
|
|
894
953
|
var es_array_includes_ = __webpack_require__("ab7e");
|
|
@@ -896,11 +955,14 @@ var es_array_includes_ = __webpack_require__("ab7e");
|
|
|
896
955
|
// EXTERNAL MODULE: external "core-js/modules/es.array.slice"
|
|
897
956
|
var es_array_slice_ = __webpack_require__("6579");
|
|
898
957
|
|
|
958
|
+
// EXTERNAL MODULE: external "core-js/modules/es.array.sort"
|
|
959
|
+
var es_array_sort_ = __webpack_require__("6ed7");
|
|
960
|
+
|
|
899
961
|
// EXTERNAL MODULE: external "core-js/modules/es.array.splice"
|
|
900
962
|
var es_array_splice_ = __webpack_require__("7c81");
|
|
901
963
|
|
|
902
|
-
// EXTERNAL MODULE: external "core-js/modules/es.
|
|
903
|
-
var
|
|
964
|
+
// EXTERNAL MODULE: external "core-js/modules/es.promise.finally"
|
|
965
|
+
var es_promise_finally_ = __webpack_require__("f96d");
|
|
904
966
|
|
|
905
967
|
// EXTERNAL MODULE: external "core-js/modules/es.string.includes"
|
|
906
968
|
var es_string_includes_ = __webpack_require__("fd48");
|
|
@@ -1140,8 +1202,259 @@ var component = normalizeComponent(
|
|
|
1140
1202
|
// EXTERNAL MODULE: external "@abi-software/svg-sprite"
|
|
1141
1203
|
var svg_sprite_ = __webpack_require__("429c");
|
|
1142
1204
|
|
|
1143
|
-
//
|
|
1205
|
+
// EXTERNAL MODULE: external "core-js/modules/es.array.concat"
|
|
1206
|
+
var es_array_concat_ = __webpack_require__("18d2");
|
|
1207
|
+
|
|
1208
|
+
// EXTERNAL MODULE: external "core-js/modules/es.array.flat"
|
|
1209
|
+
var es_array_flat_ = __webpack_require__("9a3c");
|
|
1210
|
+
|
|
1211
|
+
// EXTERNAL MODULE: external "core-js/modules/es.array.unscopables.flat"
|
|
1212
|
+
var es_array_unscopables_flat_ = __webpack_require__("ee85");
|
|
1213
|
+
|
|
1214
|
+
// EXTERNAL MODULE: external "core-js/modules/es.map"
|
|
1215
|
+
var es_map_ = __webpack_require__("9861");
|
|
1216
|
+
|
|
1217
|
+
// EXTERNAL MODULE: external "core-js/modules/es.object.entries"
|
|
1218
|
+
var es_object_entries_ = __webpack_require__("ece9");
|
|
1219
|
+
|
|
1220
|
+
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js
|
|
1221
|
+
function _classCallCheck(instance, Constructor) {
|
|
1222
|
+
if (!(instance instanceof Constructor)) {
|
|
1223
|
+
throw new TypeError("Cannot call a class as a function");
|
|
1224
|
+
}
|
|
1225
|
+
}
|
|
1226
|
+
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/createClass.js
|
|
1227
|
+
function _defineProperties(target, props) {
|
|
1228
|
+
for (var i = 0; i < props.length; i++) {
|
|
1229
|
+
var descriptor = props[i];
|
|
1230
|
+
descriptor.enumerable = descriptor.enumerable || false;
|
|
1231
|
+
descriptor.configurable = true;
|
|
1232
|
+
if ("value" in descriptor) descriptor.writable = true;
|
|
1233
|
+
Object.defineProperty(target, descriptor.key, descriptor);
|
|
1234
|
+
}
|
|
1235
|
+
}
|
|
1236
|
+
|
|
1237
|
+
function _createClass(Constructor, protoProps, staticProps) {
|
|
1238
|
+
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
1239
|
+
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
1240
|
+
return Constructor;
|
|
1241
|
+
}
|
|
1242
|
+
// EXTERNAL MODULE: external "algoliasearch"
|
|
1243
|
+
var external_algoliasearch_ = __webpack_require__("88eb");
|
|
1244
|
+
var external_algoliasearch_default = /*#__PURE__*/__webpack_require__.n(external_algoliasearch_);
|
|
1245
|
+
|
|
1246
|
+
// CONCATENATED MODULE: ./src/algolia/algolia.js
|
|
1247
|
+
|
|
1248
|
+
|
|
1249
|
+
|
|
1250
|
+
|
|
1251
|
+
|
|
1252
|
+
|
|
1253
|
+
|
|
1254
|
+
|
|
1255
|
+
|
|
1256
|
+
|
|
1257
|
+
|
|
1258
|
+
|
|
1259
|
+
|
|
1260
|
+
|
|
1261
|
+
|
|
1262
|
+
|
|
1263
|
+
|
|
1264
|
+
|
|
1265
|
+
/* eslint-disable no-alert, no-console */
|
|
1266
|
+
// export `createAlgoliaClient` to use it in page components
|
|
1267
|
+
|
|
1268
|
+
var algolia_AlgoliaClient =
|
|
1269
|
+
/*#__PURE__*/
|
|
1270
|
+
function () {
|
|
1271
|
+
function AlgoliaClient(algoliaId, algoliaKey) {
|
|
1272
|
+
var PENNSIEVE_API_LOCATION = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'https://api.pennsieve.io';
|
|
1273
|
+
|
|
1274
|
+
_classCallCheck(this, AlgoliaClient);
|
|
1275
|
+
|
|
1276
|
+
this.client = external_algoliasearch_default()(algoliaId, algoliaKey);
|
|
1277
|
+
this.PENNSIEVE_API_LOCATION = PENNSIEVE_API_LOCATION;
|
|
1278
|
+
}
|
|
1279
|
+
|
|
1280
|
+
_createClass(AlgoliaClient, [{
|
|
1281
|
+
key: "initIndex",
|
|
1282
|
+
value: function initIndex(ALGOLIA_INDEX) {
|
|
1283
|
+
this.index = this.client.initIndex(ALGOLIA_INDEX);
|
|
1284
|
+
}
|
|
1285
|
+
}, {
|
|
1286
|
+
key: "getAlgoliaFacets",
|
|
1287
|
+
value: function getAlgoliaFacets(propPathMapping) {
|
|
1288
|
+
var map = new Map(Object.entries(propPathMapping));
|
|
1289
|
+
var facetPropPaths = Array.from(map.keys());
|
|
1290
|
+
var facetData = [];
|
|
1291
|
+
var facetId = 0;
|
|
1292
|
+
return this.index.search('', {
|
|
1293
|
+
sortFacetValuesBy: 'alpha',
|
|
1294
|
+
facets: facetPropPaths
|
|
1295
|
+
}).then(function (response) {
|
|
1296
|
+
facetPropPaths.map(function (facetPropPath) {
|
|
1297
|
+
var children = [];
|
|
1298
|
+
var responseFacets = response.facets;
|
|
1299
|
+
|
|
1300
|
+
if (responseFacets === undefined) {
|
|
1301
|
+
return;
|
|
1302
|
+
}
|
|
1303
|
+
|
|
1304
|
+
var responseFacetChildren = responseFacets[facetPropPath] == undefined ? {} : responseFacets[facetPropPath];
|
|
1305
|
+
Object.keys(responseFacetChildren).map(function (facet) {
|
|
1306
|
+
children.push({
|
|
1307
|
+
label: facet,
|
|
1308
|
+
id: facetId++,
|
|
1309
|
+
facetPropPath: facetPropPath
|
|
1310
|
+
});
|
|
1311
|
+
});
|
|
1312
|
+
|
|
1313
|
+
if (children.length > 0) {
|
|
1314
|
+
facetData.push({
|
|
1315
|
+
label: map.get(facetPropPath),
|
|
1316
|
+
id: facetId++,
|
|
1317
|
+
children: children,
|
|
1318
|
+
key: facetPropPath
|
|
1319
|
+
});
|
|
1320
|
+
}
|
|
1321
|
+
});
|
|
1322
|
+
return facetData;
|
|
1323
|
+
});
|
|
1324
|
+
} // Returns all DOIs of all versions for a given discover dataset
|
|
1325
|
+
|
|
1326
|
+
}, {
|
|
1327
|
+
key: "_discoverAllDois",
|
|
1328
|
+
value: function _discoverAllDois(discoverId) {
|
|
1329
|
+
var PENNSIEVE_API_LOCATION = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'https://api.pennsieve.io';
|
|
1330
|
+
return new Promise(function (resolve) {
|
|
1331
|
+
fetch("".concat(PENNSIEVE_API_LOCATION, "/discover/datasets/").concat(discoverId, "/versions")).then(function (r) {
|
|
1332
|
+
return r.json();
|
|
1333
|
+
}).then(function (dataset) {
|
|
1334
|
+
resolve(dataset.map(function (version) {
|
|
1335
|
+
return version.doi;
|
|
1336
|
+
}));
|
|
1337
|
+
});
|
|
1338
|
+
});
|
|
1339
|
+
} // Get all dois given a list of discoverIds
|
|
1340
|
+
|
|
1341
|
+
}, {
|
|
1342
|
+
key: "_expandDois",
|
|
1343
|
+
value: function _expandDois(discoverIds) {
|
|
1344
|
+
var _this = this;
|
|
1345
|
+
|
|
1346
|
+
var PENNSIEVE_API_LOCATION = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'https://api.pennsieve.io';
|
|
1347
|
+
return new Promise(function (resolve) {
|
|
1348
|
+
var promiseList = discoverIds.map(function (discoverId) {
|
|
1349
|
+
return _this._discoverAllDois(discoverId, PENNSIEVE_API_LOCATION);
|
|
1350
|
+
});
|
|
1351
|
+
Promise.all(promiseList).then(function (values) {
|
|
1352
|
+
resolve(values.flat());
|
|
1353
|
+
});
|
|
1354
|
+
});
|
|
1355
|
+
}
|
|
1356
|
+
/**
|
|
1357
|
+
* Get Search results
|
|
1358
|
+
* This is using fetch from the Algolia API
|
|
1359
|
+
*/
|
|
1360
|
+
|
|
1361
|
+
}, {
|
|
1362
|
+
key: "search",
|
|
1363
|
+
value: function search(filter) {
|
|
1364
|
+
var _this2 = this;
|
|
1365
|
+
|
|
1366
|
+
var query = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
|
|
1367
|
+
var hitsperPage = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 10;
|
|
1368
|
+
var page = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 1;
|
|
1369
|
+
return new Promise(function (resolve) {
|
|
1370
|
+
_this2.index.search(query, {
|
|
1371
|
+
facets: ['*'],
|
|
1372
|
+
hitsPerPage: hitsperPage,
|
|
1373
|
+
page: page - 1,
|
|
1374
|
+
filters: filter
|
|
1375
|
+
}).then(function (response) {
|
|
1376
|
+
var searchData = {
|
|
1377
|
+
items: response.hits,
|
|
1378
|
+
total: response.nbHits,
|
|
1379
|
+
discoverIds: response.hits.map(function (r) {
|
|
1380
|
+
return r.pennsieve.identifier;
|
|
1381
|
+
})
|
|
1382
|
+
};
|
|
1383
|
+
resolve(searchData);
|
|
1384
|
+
});
|
|
1385
|
+
});
|
|
1386
|
+
}
|
|
1387
|
+
}]);
|
|
1388
|
+
|
|
1389
|
+
return AlgoliaClient;
|
|
1390
|
+
}();
|
|
1391
|
+
// EXTERNAL MODULE: external "core-js/modules/es.array.last-index-of"
|
|
1392
|
+
var es_array_last_index_of_ = __webpack_require__("dc05");
|
|
1393
|
+
|
|
1394
|
+
// CONCATENATED MODULE: ./src/algolia/utils.js
|
|
1395
|
+
|
|
1396
|
+
|
|
1397
|
+
|
|
1398
|
+
|
|
1399
|
+
|
|
1400
|
+
|
|
1401
|
+
|
|
1402
|
+
|
|
1403
|
+
/* eslint-disable no-alert, no-console */
|
|
1404
|
+
// Mapping between display categories and their Algolia index property path
|
|
1405
|
+
// Used for populating the Dataset Search Results facet menu dynamically
|
|
1406
|
+
var facetPropPathMapping = {
|
|
1407
|
+
'anatomy.organ.name': 'Anatomical Structure',
|
|
1408
|
+
'organisms.primary.species.name': 'Species',
|
|
1409
|
+
'item.modalities.keyword': 'Experimental Approach',
|
|
1410
|
+
'attributes.subject.sex.value': 'Sex',
|
|
1411
|
+
'attributes.subject.ageCategory.value': 'Age Categories'
|
|
1412
|
+
};
|
|
1413
|
+
/* Returns filter for searching algolia. All facets of the same category are joined with OR,
|
|
1414
|
+
* and each of those results is then joined with an AND.
|
|
1415
|
+
* i.e. (color:blue OR color:red) AND (shape:circle OR shape:red) */
|
|
1416
|
+
|
|
1417
|
+
function getFilters() {
|
|
1418
|
+
var selectedFacetArray = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : undefined;
|
|
1419
|
+
|
|
1420
|
+
// return all datasets if no filter
|
|
1421
|
+
if (selectedFacetArray === undefined) {
|
|
1422
|
+
return 'NOT item.published.status:embargo';
|
|
1423
|
+
} // Switch the 'term' attribute to 'label' if 'label' does not exist
|
|
1424
|
+
|
|
1425
|
+
|
|
1426
|
+
selectedFacetArray.forEach(function (f) {
|
|
1427
|
+
return f.label = f.facet;
|
|
1428
|
+
});
|
|
1429
|
+
var facets = removeShowAllFacets(selectedFacetArray);
|
|
1430
|
+
var filters = "NOT item.published.status:embargo";
|
|
1431
|
+
filters = "(".concat(filters, ") AND ");
|
|
1432
|
+
var facetPropPaths = Object.keys(facetPropPathMapping);
|
|
1433
|
+
facetPropPaths.map(function (facetPropPath) {
|
|
1434
|
+
var facetsToOr = facets.filter(function (facet) {
|
|
1435
|
+
return facet.facetPropPath == facetPropPath;
|
|
1436
|
+
});
|
|
1437
|
+
var filter = "";
|
|
1438
|
+
facetsToOr.map(function (facet) {
|
|
1439
|
+
filter += "\"".concat(facetPropPath, "\":\"").concat(facet.label, "\" OR ");
|
|
1440
|
+
});
|
|
1441
|
+
|
|
1442
|
+
if (filter == "") {
|
|
1443
|
+
return;
|
|
1444
|
+
}
|
|
1445
|
+
|
|
1446
|
+
filter = "(".concat(filter.substring(0, filter.lastIndexOf(" OR ")), ")");
|
|
1447
|
+
filters += "".concat(filter, " AND ");
|
|
1448
|
+
});
|
|
1449
|
+
return filters.substring(0, filters.lastIndexOf(" AND "));
|
|
1450
|
+
}
|
|
1144
1451
|
|
|
1452
|
+
function removeShowAllFacets(facetArray) {
|
|
1453
|
+
return facetArray.filter(function (f) {
|
|
1454
|
+
return f.label !== 'Show all';
|
|
1455
|
+
});
|
|
1456
|
+
}
|
|
1457
|
+
// 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&
|
|
1145
1458
|
|
|
1146
1459
|
|
|
1147
1460
|
|
|
@@ -1202,6 +1515,12 @@ var svg_sprite_ = __webpack_require__("429c");
|
|
|
1202
1515
|
//
|
|
1203
1516
|
//
|
|
1204
1517
|
//
|
|
1518
|
+
//
|
|
1519
|
+
//
|
|
1520
|
+
//
|
|
1521
|
+
//
|
|
1522
|
+
//
|
|
1523
|
+
//
|
|
1205
1524
|
|
|
1206
1525
|
/* eslint-disable no-alert, no-console */
|
|
1207
1526
|
|
|
@@ -1210,6 +1529,8 @@ var svg_sprite_ = __webpack_require__("429c");
|
|
|
1210
1529
|
|
|
1211
1530
|
|
|
1212
1531
|
|
|
1532
|
+
|
|
1533
|
+
|
|
1213
1534
|
external_vue_default.a.component("svg-icon", svg_sprite_["SvgIcon"]);
|
|
1214
1535
|
locale_default.a.use(en_default.a);
|
|
1215
1536
|
external_vue_default.a.use(option_default.a);
|
|
@@ -1241,9 +1562,9 @@ var SearchFiltersvue_type_script_lang_js_convertReadableLabel = function convert
|
|
|
1241
1562
|
* the required viewing.
|
|
1242
1563
|
*/
|
|
1243
1564
|
entry: Object,
|
|
1244
|
-
|
|
1245
|
-
type:
|
|
1246
|
-
default:
|
|
1565
|
+
envVars: {
|
|
1566
|
+
type: Object,
|
|
1567
|
+
default: function _default() {}
|
|
1247
1568
|
}
|
|
1248
1569
|
},
|
|
1249
1570
|
data: function data() {
|
|
@@ -1285,65 +1606,31 @@ var SearchFiltersvue_type_script_lang_js_convertReadableLabel = function convert
|
|
|
1285
1606
|
var _this = this;
|
|
1286
1607
|
|
|
1287
1608
|
return new Promise(function (resolve) {
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
_this.options.push({
|
|
1293
|
-
value: _this.createCascaderItemValue(_this.facets[i].toLowerCase(), undefined),
|
|
1294
|
-
label: SearchFiltersvue_type_script_lang_js_convertReadableLabel(_this.facets[i]),
|
|
1295
|
-
children: []
|
|
1296
|
-
});
|
|
1297
|
-
|
|
1298
|
-
promiseList.push(_this.getFacet(_this.facets[i]).then(function (labels) {
|
|
1299
|
-
// Populate children of each facet with scicrunch's facets
|
|
1300
|
-
for (var j in labels) {
|
|
1301
|
-
_this.options[i].children.push({
|
|
1302
|
-
value: _this.createCascaderItemValue(_this.facets[i].toLowerCase(), labels[j].toLowerCase()),
|
|
1303
|
-
label: SearchFiltersvue_type_script_lang_js_convertReadableLabel(labels[j]) // Capitalisation is to match design specs
|
|
1304
|
-
|
|
1305
|
-
});
|
|
1306
|
-
}
|
|
1307
|
-
}));
|
|
1308
|
-
};
|
|
1609
|
+
// Algolia facet serach
|
|
1610
|
+
_this.algoliaClient.getAlgoliaFacets(facetPropPathMapping).then(function (data) {
|
|
1611
|
+
_this.facets = data;
|
|
1612
|
+
_this.options = data; // create top level of options in cascader
|
|
1309
1613
|
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
Promise.allSettled(promiseList).then(function () {
|
|
1315
|
-
resolve();
|
|
1316
|
-
});
|
|
1317
|
-
});
|
|
1318
|
-
},
|
|
1319
|
-
getFacet: function getFacet(facetLabel) {
|
|
1320
|
-
var _this2 = this;
|
|
1321
|
-
|
|
1322
|
-
if (facetLabel === "Datasets") {
|
|
1323
|
-
// The datasets facet doesn't exist on SciCrunch yet, so manually set it
|
|
1324
|
-
// for now.
|
|
1325
|
-
return new Promise(function (resolve) {
|
|
1326
|
-
resolve(_toConsumableArray(new Set(["Show all", "Scaffolds", "Simulations"])));
|
|
1327
|
-
});
|
|
1328
|
-
}
|
|
1614
|
+
_this.options.forEach(function (facet, i) {
|
|
1615
|
+
_this.options[i].label = SearchFiltersvue_type_script_lang_js_convertReadableLabel(facet.label);
|
|
1616
|
+
_this.options[i].value = _this.createCascaderItemValue(facet.key, undefined); // put "Show all" as first option
|
|
1329
1617
|
|
|
1330
|
-
|
|
1331
|
-
|
|
1618
|
+
_this.options[i].children.unshift({
|
|
1619
|
+
value: _this.createCascaderItemValue("Show all"),
|
|
1620
|
+
label: "Show all"
|
|
1621
|
+
}); // populate second level of options
|
|
1332
1622
|
|
|
1333
|
-
var facet = facetLabel.toLowerCase();
|
|
1334
1623
|
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1624
|
+
_this.options[i].children.forEach(function (facetItem, j) {
|
|
1625
|
+
_this.options[i].children[j].label = SearchFiltersvue_type_script_lang_js_convertReadableLabel(facetItem.label);
|
|
1626
|
+
_this.options[i].children[j].value = _this.createCascaderItemValue(facet.label, facetItem.label);
|
|
1627
|
+
});
|
|
1338
1628
|
});
|
|
1339
|
-
|
|
1629
|
+
}).finally(function () {
|
|
1630
|
+
resolve();
|
|
1340
1631
|
});
|
|
1341
1632
|
});
|
|
1342
1633
|
},
|
|
1343
|
-
// switchTermToRequest is used to remove the count for sending a request to scicrunch
|
|
1344
|
-
switchTermToRequest: function switchTermToRequest(term) {
|
|
1345
|
-
return term.split(" ")[0].toLowerCase();
|
|
1346
|
-
},
|
|
1347
1634
|
tagsChangedCallback: function tagsChangedCallback(presentTags) {
|
|
1348
1635
|
if (presentTags.length > 0) {
|
|
1349
1636
|
this.showFiltersText = false;
|
|
@@ -1351,31 +1638,35 @@ var SearchFiltersvue_type_script_lang_js_convertReadableLabel = function convert
|
|
|
1351
1638
|
this.showFiltersText = true;
|
|
1352
1639
|
}
|
|
1353
1640
|
},
|
|
1641
|
+
// cascadeEvent: initiate searches based off cascader changes
|
|
1354
1642
|
cascadeEvent: function cascadeEvent(event) {
|
|
1355
|
-
var filters = [];
|
|
1356
|
-
|
|
1357
1643
|
if (event) {
|
|
1358
1644
|
// Check for show all in selected cascade options
|
|
1359
|
-
event = this.showAllEventModifier(event);
|
|
1645
|
+
event = this.showAllEventModifier(event); // Move results from arrays to object
|
|
1646
|
+
|
|
1647
|
+
var filters = event.filter(function (selection) {
|
|
1648
|
+
return selection !== undefined;
|
|
1649
|
+
}).map(function (fs) {
|
|
1650
|
+
return {
|
|
1651
|
+
facetPropPath: fs[0],
|
|
1652
|
+
facet: fs[1].split("/")[1],
|
|
1653
|
+
term: fs[1].split("/")[0]
|
|
1654
|
+
};
|
|
1655
|
+
});
|
|
1656
|
+
this.$emit('loading', true); // let sidebarcontent wait for the requests
|
|
1360
1657
|
|
|
1361
|
-
|
|
1362
|
-
if (event[i] !== undefined) {
|
|
1363
|
-
var value = event[i][1];
|
|
1364
|
-
var data = value.split("/");
|
|
1365
|
-
var output = {};
|
|
1366
|
-
output.term = this.switchTermToRequest(data[0]);
|
|
1367
|
-
output.facet = data[1];
|
|
1368
|
-
filters.push(output);
|
|
1369
|
-
}
|
|
1370
|
-
}
|
|
1371
|
-
}
|
|
1658
|
+
this.$emit("filterResults", filters); // emit filters for apps above sidebar
|
|
1372
1659
|
|
|
1373
|
-
|
|
1374
|
-
this.setCascader(filters); //update our cascader v-model if we modified the event
|
|
1660
|
+
this.setCascader(filters); //update our cascader v-model if we modified the event
|
|
1375
1661
|
|
|
1376
|
-
|
|
1662
|
+
this.makeCascadeLabelsClickable();
|
|
1663
|
+
}
|
|
1377
1664
|
},
|
|
1665
|
+
// 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
|
|
1666
|
+
// *NOTE* Does NOT remove 'Show all' selections from showing in 'cascadeSelected'
|
|
1378
1667
|
showAllEventModifier: function showAllEventModifier(event) {
|
|
1668
|
+
var _this2 = this;
|
|
1669
|
+
|
|
1379
1670
|
// check if show all is in the cascader checked option list
|
|
1380
1671
|
var hasShowAll = event.map(function (ev) {
|
|
1381
1672
|
return ev ? ev[1].toLowerCase().includes("show all") : false;
|
|
@@ -1414,28 +1705,40 @@ var SearchFiltersvue_type_script_lang_js_convertReadableLabel = function convert
|
|
|
1414
1705
|
} else {
|
|
1415
1706
|
modifiedEvent.push.apply(modifiedEvent, _toConsumableArray(facetMaps[facet]));
|
|
1416
1707
|
}
|
|
1417
|
-
}
|
|
1708
|
+
} //Make sure the expanded item are sorted first.
|
|
1709
|
+
|
|
1418
1710
|
|
|
1419
|
-
return modifiedEvent
|
|
1711
|
+
return modifiedEvent.sort(function (a, b) {
|
|
1712
|
+
if (_this2.__expandItem__) {
|
|
1713
|
+
if (a[0] == _this2.__expandItem__) {
|
|
1714
|
+
if (b[0] == _this2.__expandItem__) {
|
|
1715
|
+
return 0;
|
|
1716
|
+
} else {
|
|
1717
|
+
return -1;
|
|
1718
|
+
}
|
|
1719
|
+
} else if (b[0] == _this2.__expandItem__) {
|
|
1720
|
+
if (a[0] == _this2.__expandItem__) {
|
|
1721
|
+
return 0;
|
|
1722
|
+
} else {
|
|
1723
|
+
return 1;
|
|
1724
|
+
}
|
|
1725
|
+
} else {
|
|
1726
|
+
return 0;
|
|
1727
|
+
}
|
|
1728
|
+
} else return 0;
|
|
1729
|
+
});
|
|
1420
1730
|
}
|
|
1421
1731
|
|
|
1422
1732
|
return event;
|
|
1423
1733
|
},
|
|
1424
|
-
cascadeExpandChange: function cascadeExpandChange() {
|
|
1734
|
+
cascadeExpandChange: function cascadeExpandChange(event) {
|
|
1735
|
+
//work around as the expand item may change on modifying the cascade props
|
|
1736
|
+
this.__expandItem__ = event;
|
|
1425
1737
|
this.makeCascadeLabelsClickable();
|
|
1426
1738
|
},
|
|
1427
1739
|
numberShownChanged: function numberShownChanged(event) {
|
|
1428
1740
|
this.$emit("numberPerPage", parseInt(event));
|
|
1429
1741
|
},
|
|
1430
|
-
callSciCrunch: function callSciCrunch(apiLocation, endpoint, term) {
|
|
1431
|
-
return new Promise(function (resolve) {
|
|
1432
|
-
fetch(apiLocation + endpoint + term).then(function (response) {
|
|
1433
|
-
return response.json();
|
|
1434
|
-
}).then(function (data) {
|
|
1435
|
-
resolve(data);
|
|
1436
|
-
});
|
|
1437
|
-
});
|
|
1438
|
-
},
|
|
1439
1742
|
updatePreviousShowAllChecked: function updatePreviousShowAllChecked(options) {
|
|
1440
1743
|
var _this3 = this;
|
|
1441
1744
|
|
|
@@ -1448,18 +1751,46 @@ var SearchFiltersvue_type_script_lang_js_convertReadableLabel = function convert
|
|
|
1448
1751
|
if (element[1].toLowerCase().includes("show all")) _this3.previousShowAllChecked[element[0]] = true;
|
|
1449
1752
|
});
|
|
1450
1753
|
},
|
|
1754
|
+
// setCascader: Clears previous selections and takes in an array of facets to select: filterFacets
|
|
1755
|
+
// facets are in the form:
|
|
1756
|
+
// {
|
|
1757
|
+
// facetPropPath: 'anatomy.organ.name',
|
|
1758
|
+
// term: 'Sex',
|
|
1759
|
+
// facet: 'Male'
|
|
1760
|
+
// }
|
|
1451
1761
|
setCascader: function setCascader(filterFacets) {
|
|
1452
1762
|
var _this4 = this;
|
|
1453
1763
|
|
|
1454
1764
|
//Do not set the value unless it is ready
|
|
1455
|
-
if (this.cascaderIsReady) {
|
|
1456
|
-
this.cascadeSelected =
|
|
1457
|
-
|
|
1458
|
-
_this4.cascadeSelected.push([e.term.toLowerCase(), _this4.createCascaderItemValue(e.term.toLowerCase(), e.facet.toLowerCase())]);
|
|
1765
|
+
if (this.cascaderIsReady && filterFacets && filterFacets.length != 0) {
|
|
1766
|
+
this.cascadeSelected = filterFacets.map(function (e) {
|
|
1767
|
+
return [e.facetPropPath, _this4.createCascaderItemValue(capitalise(e.term), e.facet)];
|
|
1459
1768
|
});
|
|
1460
1769
|
this.updatePreviousShowAllChecked(this.cascadeSelected);
|
|
1461
1770
|
}
|
|
1462
1771
|
},
|
|
1772
|
+
addFilter: function addFilter(filter) {
|
|
1773
|
+
//Do not set the value unless it is ready
|
|
1774
|
+
if (this.cascaderIsReady && filter) {
|
|
1775
|
+
this.cascadeSelected.filter(function (f) {
|
|
1776
|
+
return f.term != filter.term;
|
|
1777
|
+
});
|
|
1778
|
+
this.cascadeSelected.push([filter.facetPropPath, this.createCascaderItemValue(filter.term, filter.facet)]);
|
|
1779
|
+
}
|
|
1780
|
+
},
|
|
1781
|
+
initiateSearch: function initiateSearch() {
|
|
1782
|
+
this.cascadeEvent(this.cascadeSelected);
|
|
1783
|
+
},
|
|
1784
|
+
// checkShowAllBoxes: Checks each 'Show all' cascade option by using the setCascader function
|
|
1785
|
+
checkShowAllBoxes: function checkShowAllBoxes() {
|
|
1786
|
+
this.setCascader(this.options.map(function (option) {
|
|
1787
|
+
return {
|
|
1788
|
+
facetPropPath: option.value,
|
|
1789
|
+
term: option.label,
|
|
1790
|
+
facet: 'Show all'
|
|
1791
|
+
};
|
|
1792
|
+
}));
|
|
1793
|
+
},
|
|
1463
1794
|
makeCascadeLabelsClickable: function makeCascadeLabelsClickable() {
|
|
1464
1795
|
var _this5 = this;
|
|
1465
1796
|
|
|
@@ -1481,16 +1812,16 @@ var SearchFiltersvue_type_script_lang_js_convertReadableLabel = function convert
|
|
|
1481
1812
|
});
|
|
1482
1813
|
}
|
|
1483
1814
|
},
|
|
1484
|
-
created: function created() {
|
|
1485
|
-
//Create non-reactive local variables
|
|
1486
|
-
this.facetEndpoint = "get-facets/";
|
|
1487
|
-
},
|
|
1488
1815
|
mounted: function mounted() {
|
|
1489
1816
|
var _this6 = this;
|
|
1490
1817
|
|
|
1818
|
+
this.algoliaClient = new algolia_AlgoliaClient(this.envVars.ALGOLIA_ID, this.envVars.ALGOLIA_KEY, this.envVars.PENNSIEVE_API_LOCATION);
|
|
1819
|
+
this.algoliaClient.initIndex(this.envVars.ALGOLIA_INDEX);
|
|
1491
1820
|
this.populateCascader().then(function () {
|
|
1492
1821
|
_this6.cascaderIsReady = true;
|
|
1493
1822
|
|
|
1823
|
+
_this6.checkShowAllBoxes();
|
|
1824
|
+
|
|
1494
1825
|
_this6.setCascader(_this6.entry.filterFacets);
|
|
1495
1826
|
|
|
1496
1827
|
_this6.makeCascadeLabelsClickable();
|
|
@@ -1499,8 +1830,8 @@ var SearchFiltersvue_type_script_lang_js_convertReadableLabel = function convert
|
|
|
1499
1830
|
});
|
|
1500
1831
|
// CONCATENATED MODULE: ./src/components/SearchFilters.vue?vue&type=script&lang=js&
|
|
1501
1832
|
/* harmony default export */ var components_SearchFiltersvue_type_script_lang_js_ = (SearchFiltersvue_type_script_lang_js_);
|
|
1502
|
-
// EXTERNAL MODULE: ./src/components/SearchFilters.vue?vue&type=style&index=0&id=
|
|
1503
|
-
var
|
|
1833
|
+
// EXTERNAL MODULE: ./src/components/SearchFilters.vue?vue&type=style&index=0&id=d4e05720&scoped=true&lang=css&
|
|
1834
|
+
var SearchFiltersvue_type_style_index_0_id_d4e05720_scoped_true_lang_css_ = __webpack_require__("e026");
|
|
1504
1835
|
|
|
1505
1836
|
// CONCATENATED MODULE: ./src/components/SearchFilters.vue
|
|
1506
1837
|
|
|
@@ -1513,25 +1844,22 @@ var SearchFiltersvue_type_style_index_0_id_260d83f6_scoped_true_lang_css_ = __we
|
|
|
1513
1844
|
|
|
1514
1845
|
var SearchFilters_component = normalizeComponent(
|
|
1515
1846
|
components_SearchFiltersvue_type_script_lang_js_,
|
|
1516
|
-
|
|
1517
|
-
|
|
1847
|
+
SearchFiltersvue_type_template_id_d4e05720_scoped_true_render,
|
|
1848
|
+
SearchFiltersvue_type_template_id_d4e05720_scoped_true_staticRenderFns,
|
|
1518
1849
|
false,
|
|
1519
1850
|
null,
|
|
1520
|
-
"
|
|
1851
|
+
"d4e05720",
|
|
1521
1852
|
null
|
|
1522
1853
|
|
|
1523
1854
|
)
|
|
1524
1855
|
|
|
1525
1856
|
/* harmony default export */ var SearchFilters = (SearchFilters_component.exports);
|
|
1526
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
1527
|
-
var
|
|
1528
|
-
var
|
|
1857
|
+
// 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&
|
|
1858
|
+
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()])])}
|
|
1859
|
+
var DatasetCardvue_type_template_id_eaeba60a_scoped_true_staticRenderFns = []
|
|
1529
1860
|
|
|
1530
1861
|
|
|
1531
|
-
// CONCATENATED MODULE: ./src/components/DatasetCard.vue?vue&type=template&id=
|
|
1532
|
-
|
|
1533
|
-
// EXTERNAL MODULE: external "core-js/modules/es.array.concat"
|
|
1534
|
-
var es_array_concat_ = __webpack_require__("18d2");
|
|
1862
|
+
// CONCATENATED MODULE: ./src/components/DatasetCard.vue?vue&type=template&id=eaeba60a&scoped=true&
|
|
1535
1863
|
|
|
1536
1864
|
// EXTERNAL MODULE: external "core-js/modules/es.string.replace"
|
|
1537
1865
|
var es_string_replace_ = __webpack_require__("bfab");
|
|
@@ -1631,6 +1959,13 @@ var EventBus = new external_vue_default.a();
|
|
|
1631
1959
|
//
|
|
1632
1960
|
//
|
|
1633
1961
|
//
|
|
1962
|
+
//
|
|
1963
|
+
//
|
|
1964
|
+
//
|
|
1965
|
+
//
|
|
1966
|
+
//
|
|
1967
|
+
//
|
|
1968
|
+
//
|
|
1634
1969
|
|
|
1635
1970
|
/* eslint-disable no-alert, no-console */
|
|
1636
1971
|
|
|
@@ -1657,9 +1992,9 @@ var DatasetCardvue_type_script_lang_js_capitalise = function capitalise(string)
|
|
|
1657
1992
|
* the required viewing.
|
|
1658
1993
|
*/
|
|
1659
1994
|
entry: Object,
|
|
1660
|
-
|
|
1661
|
-
type:
|
|
1662
|
-
default:
|
|
1995
|
+
envVars: {
|
|
1996
|
+
type: Object,
|
|
1997
|
+
default: function _default() {}
|
|
1663
1998
|
}
|
|
1664
1999
|
},
|
|
1665
2000
|
data: function data() {
|
|
@@ -1668,7 +2003,8 @@ var DatasetCardvue_type_script_lang_js_capitalise = function capitalise(string)
|
|
|
1668
2003
|
dataLocation: this.entry.doi,
|
|
1669
2004
|
discoverId: undefined,
|
|
1670
2005
|
cardOverflow: false,
|
|
1671
|
-
expanded: false
|
|
2006
|
+
expanded: false,
|
|
2007
|
+
biolucidaData: undefined
|
|
1672
2008
|
};
|
|
1673
2009
|
},
|
|
1674
2010
|
computed: {
|
|
@@ -1693,18 +2029,30 @@ var DatasetCardvue_type_script_lang_js_capitalise = function capitalise(string)
|
|
|
1693
2029
|
samples: function samples() {
|
|
1694
2030
|
var text = "";
|
|
1695
2031
|
|
|
1696
|
-
if (this.entry.numberSamples === 1) {
|
|
1697
|
-
text = this.entry.numberSamples + " sample";
|
|
1698
|
-
} else if (this.entry.numberSamples > 1) {
|
|
1699
|
-
text = this.entry.numberSamples + " samples";
|
|
1700
|
-
}
|
|
1701
|
-
|
|
1702
2032
|
if (this.entry.species) {
|
|
1703
2033
|
if (species_map[this.entry.species[0].toLowerCase()]) {
|
|
1704
|
-
text
|
|
2034
|
+
text = "".concat(species_map[this.entry.species[0].toLowerCase()]);
|
|
1705
2035
|
} else {
|
|
1706
|
-
text
|
|
2036
|
+
text = "".concat(this.entry.species);
|
|
2037
|
+
}
|
|
2038
|
+
}
|
|
2039
|
+
|
|
2040
|
+
if (this.entry.numberSamples > 0) {
|
|
2041
|
+
text += " (";
|
|
2042
|
+
|
|
2043
|
+
if (this.entry.numberSamples === 1) {
|
|
2044
|
+
text += "".concat(this.entry.numberSamples, " sample");
|
|
2045
|
+
} else if (this.entry.numberSamples > 1) {
|
|
2046
|
+
text += "".concat(this.entry.numberSamples, " samples");
|
|
2047
|
+
}
|
|
2048
|
+
|
|
2049
|
+
if (this.entry.numberSubjects === 1) {
|
|
2050
|
+
text += " from ".concat(this.entry.numberSubjects, " subject");
|
|
2051
|
+
} else if (this.entry.numberSamples > 1) {
|
|
2052
|
+
text += " from ".concat(this.entry.numberSubjects, " subjects");
|
|
1707
2053
|
}
|
|
2054
|
+
|
|
2055
|
+
text += ")";
|
|
1708
2056
|
}
|
|
1709
2057
|
|
|
1710
2058
|
return text;
|
|
@@ -1749,7 +2097,7 @@ var DatasetCardvue_type_script_lang_js_capitalise = function capitalise(string)
|
|
|
1749
2097
|
window.open(this.dataLocation, '_blank');
|
|
1750
2098
|
},
|
|
1751
2099
|
openRepository: function openRepository() {
|
|
1752
|
-
var apiLocation = this.
|
|
2100
|
+
var apiLocation = this.envVars.API_LOCATION;
|
|
1753
2101
|
this.entry.additionalLinks.forEach(function (el) {
|
|
1754
2102
|
if (el.description == "Repository") {
|
|
1755
2103
|
var xmlhttp = new XMLHttpRequest();
|
|
@@ -1801,13 +2149,61 @@ var DatasetCardvue_type_script_lang_js_capitalise = function capitalise(string)
|
|
|
1801
2149
|
};
|
|
1802
2150
|
components_EventBus.$emit("PopoverActionClick", action);
|
|
1803
2151
|
},
|
|
2152
|
+
openSegmentation: function openSegmentation() {
|
|
2153
|
+
if (this.entry.segmentation && this.entry.segmentation[0]) {
|
|
2154
|
+
var segmentation = this.entry.segmentation[0];
|
|
2155
|
+
var filePath = segmentation.dataset.path;
|
|
2156
|
+
var datasetId = this.discoverId;
|
|
2157
|
+
var datasetVersion = this.version;
|
|
2158
|
+
var prefix = 'https://sparc.biolucida.net:8081';
|
|
2159
|
+
var resource = {
|
|
2160
|
+
share_link: "".concat(prefix, "/dataviewer?datasetId=").concat(datasetId, "&version=").concat(datasetVersion, "&path=").concat(filePath)
|
|
2161
|
+
};
|
|
2162
|
+
var action = {
|
|
2163
|
+
label: DatasetCardvue_type_script_lang_js_capitalise(this.label),
|
|
2164
|
+
resource: resource,
|
|
2165
|
+
dataset: this.dataLocation,
|
|
2166
|
+
datasetId: this.discoverId,
|
|
2167
|
+
title: "View segmentation",
|
|
2168
|
+
name: this.entry.name,
|
|
2169
|
+
description: this.entry.description,
|
|
2170
|
+
type: "Segmentation"
|
|
2171
|
+
};
|
|
2172
|
+
components_EventBus.$emit("PopoverActionClick", action);
|
|
2173
|
+
}
|
|
2174
|
+
},
|
|
2175
|
+
openImage: function openImage() {
|
|
2176
|
+
if (this.biolucidaData) {
|
|
2177
|
+
var biolucidaData = this.biolucidaData;
|
|
2178
|
+
|
|
2179
|
+
if ('dataset_images' in biolucidaData) {
|
|
2180
|
+
var image = biolucidaData['dataset_images'][0];
|
|
2181
|
+
var resource = {
|
|
2182
|
+
share_link: image.share_link,
|
|
2183
|
+
id: image.image_id,
|
|
2184
|
+
itemId: image.sourcepkg_id
|
|
2185
|
+
};
|
|
2186
|
+
var action = {
|
|
2187
|
+
label: DatasetCardvue_type_script_lang_js_capitalise(this.label),
|
|
2188
|
+
resource: resource,
|
|
2189
|
+
dataset: this.dataLocation,
|
|
2190
|
+
datasetId: this.discoverId,
|
|
2191
|
+
title: "View image",
|
|
2192
|
+
name: this.entry.name,
|
|
2193
|
+
description: this.entry.description,
|
|
2194
|
+
type: "Biolucida"
|
|
2195
|
+
};
|
|
2196
|
+
components_EventBus.$emit("PopoverActionClick", action);
|
|
2197
|
+
}
|
|
2198
|
+
}
|
|
2199
|
+
},
|
|
1804
2200
|
getScaffoldPath: function getScaffoldPath(discoverId, version, scaffoldPath) {
|
|
1805
2201
|
var id = discoverId;
|
|
1806
|
-
var path = "".concat(this.
|
|
2202
|
+
var path = "".concat(this.envVars.API_LOCATION, "s3-resource/").concat(id, "/").concat(version, "/files/").concat(scaffoldPath);
|
|
1807
2203
|
return path;
|
|
1808
2204
|
},
|
|
1809
2205
|
getFileFromPath: function getFileFromPath(discoverId, version, path) {
|
|
1810
|
-
return "".concat(this.
|
|
2206
|
+
return "".concat(this.envVars.API_LOCATION, "s3-resource/").concat(discoverId, "/").concat(version, "/files/").concat(path);
|
|
1811
2207
|
},
|
|
1812
2208
|
isOverflown: function isOverflown(el) {
|
|
1813
2209
|
return el.clientHeight < el.scrollHeight;
|
|
@@ -1833,6 +2229,8 @@ var DatasetCardvue_type_script_lang_js_capitalise = function capitalise(string)
|
|
|
1833
2229
|
_this.discoverId = data.id;
|
|
1834
2230
|
_this.version = data.version;
|
|
1835
2231
|
_this.dataLocation = "https://sparc.science/datasets/".concat(data.id, "?type=dataset");
|
|
2232
|
+
|
|
2233
|
+
_this.getBiolucidaInfo(_this.discoverId);
|
|
1836
2234
|
}).catch(function () {
|
|
1837
2235
|
//set defaults if we hit an error
|
|
1838
2236
|
_this.thumbnail = __webpack_require__("9b53");
|
|
@@ -1841,6 +2239,18 @@ var DatasetCardvue_type_script_lang_js_capitalise = function capitalise(string)
|
|
|
1841
2239
|
},
|
|
1842
2240
|
lastName: function lastName(fullName) {
|
|
1843
2241
|
return fullName.split(',')[0];
|
|
2242
|
+
},
|
|
2243
|
+
getBiolucidaInfo: function getBiolucidaInfo(id) {
|
|
2244
|
+
var _this2 = this;
|
|
2245
|
+
|
|
2246
|
+
var apiLocation = this.envVars.API_LOCATION;
|
|
2247
|
+
var endpoint = apiLocation + "image_search/" + id; // Add parameters if we are sent them
|
|
2248
|
+
|
|
2249
|
+
fetch(endpoint).then(function (response) {
|
|
2250
|
+
return response.json();
|
|
2251
|
+
}).then(function (data) {
|
|
2252
|
+
if (data.status == "success") _this2.biolucidaData = data;
|
|
2253
|
+
});
|
|
1844
2254
|
}
|
|
1845
2255
|
},
|
|
1846
2256
|
mounted: function mounted() {
|
|
@@ -1860,8 +2270,8 @@ var DatasetCardvue_type_script_lang_js_capitalise = function capitalise(string)
|
|
|
1860
2270
|
});
|
|
1861
2271
|
// CONCATENATED MODULE: ./src/components/DatasetCard.vue?vue&type=script&lang=js&
|
|
1862
2272
|
/* harmony default export */ var components_DatasetCardvue_type_script_lang_js_ = (DatasetCardvue_type_script_lang_js_);
|
|
1863
|
-
// EXTERNAL MODULE: ./src/components/DatasetCard.vue?vue&type=style&index=0&id=
|
|
1864
|
-
var
|
|
2273
|
+
// EXTERNAL MODULE: ./src/components/DatasetCard.vue?vue&type=style&index=0&id=eaeba60a&scoped=true&lang=css&
|
|
2274
|
+
var DatasetCardvue_type_style_index_0_id_eaeba60a_scoped_true_lang_css_ = __webpack_require__("c3dd");
|
|
1865
2275
|
|
|
1866
2276
|
// CONCATENATED MODULE: ./src/components/DatasetCard.vue
|
|
1867
2277
|
|
|
@@ -1874,17 +2284,17 @@ var DatasetCardvue_type_style_index_0_id_0b100df4_scoped_true_lang_css_ = __webp
|
|
|
1874
2284
|
|
|
1875
2285
|
var DatasetCard_component = normalizeComponent(
|
|
1876
2286
|
components_DatasetCardvue_type_script_lang_js_,
|
|
1877
|
-
|
|
1878
|
-
|
|
2287
|
+
DatasetCardvue_type_template_id_eaeba60a_scoped_true_render,
|
|
2288
|
+
DatasetCardvue_type_template_id_eaeba60a_scoped_true_staticRenderFns,
|
|
1879
2289
|
false,
|
|
1880
2290
|
null,
|
|
1881
|
-
"
|
|
2291
|
+
"eaeba60a",
|
|
1882
2292
|
null
|
|
1883
2293
|
|
|
1884
2294
|
)
|
|
1885
2295
|
|
|
1886
2296
|
/* harmony default export */ var DatasetCard = (DatasetCard_component.exports);
|
|
1887
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
2297
|
+
// 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&
|
|
1888
2298
|
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)}
|
|
1889
2299
|
var ContextCardvue_type_template_id_17e861eb_scoped_true_staticRenderFns = []
|
|
1890
2300
|
|
|
@@ -2037,6 +2447,7 @@ var ContextCard_component = normalizeComponent(
|
|
|
2037
2447
|
|
|
2038
2448
|
|
|
2039
2449
|
|
|
2450
|
+
|
|
2040
2451
|
|
|
2041
2452
|
|
|
2042
2453
|
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; }
|
|
@@ -2089,6 +2500,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
2089
2500
|
//
|
|
2090
2501
|
//
|
|
2091
2502
|
//
|
|
2503
|
+
//
|
|
2092
2504
|
|
|
2093
2505
|
/* eslint-disable no-alert, no-console */
|
|
2094
2506
|
|
|
@@ -2097,6 +2509,8 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
2097
2509
|
|
|
2098
2510
|
|
|
2099
2511
|
|
|
2512
|
+
|
|
2513
|
+
|
|
2100
2514
|
locale_default.a.use(en_default.a);
|
|
2101
2515
|
external_vue_default.a.use(button_default.a);
|
|
2102
2516
|
external_vue_default.a.use(card_default.a);
|
|
@@ -2161,7 +2575,6 @@ var initial_state = {
|
|
|
2161
2575
|
results: [],
|
|
2162
2576
|
numberOfHits: 0,
|
|
2163
2577
|
filter: [],
|
|
2164
|
-
filterFacets: undefined,
|
|
2165
2578
|
loadingCards: false,
|
|
2166
2579
|
numberPerPage: 10,
|
|
2167
2580
|
page: 1,
|
|
@@ -2196,9 +2609,9 @@ var initial_state = {
|
|
|
2196
2609
|
type: Object,
|
|
2197
2610
|
default: undefined
|
|
2198
2611
|
},
|
|
2199
|
-
|
|
2200
|
-
type:
|
|
2201
|
-
default:
|
|
2612
|
+
envVars: {
|
|
2613
|
+
type: Object,
|
|
2614
|
+
default: function _default() {}
|
|
2202
2615
|
},
|
|
2203
2616
|
firstSearch: {
|
|
2204
2617
|
type: String,
|
|
@@ -2219,82 +2632,102 @@ var initial_state = {
|
|
|
2219
2632
|
filterEntry: function filterEntry() {
|
|
2220
2633
|
return {
|
|
2221
2634
|
numberOfHits: this.numberOfHits,
|
|
2222
|
-
filterFacets: this.
|
|
2635
|
+
filterFacets: this.filter
|
|
2223
2636
|
};
|
|
2224
2637
|
}
|
|
2225
2638
|
},
|
|
2226
2639
|
methods: {
|
|
2227
|
-
openSearch: function openSearch(
|
|
2228
|
-
var
|
|
2229
|
-
var endpoint = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : undefined;
|
|
2230
|
-
var params = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : undefined;
|
|
2640
|
+
openSearch: function openSearch(filter) {
|
|
2641
|
+
var search = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
|
|
2231
2642
|
this.searchInput = search;
|
|
2232
2643
|
this.resetPageNavigation();
|
|
2233
|
-
this.
|
|
2644
|
+
this.searchAlgolia(filter, search);
|
|
2234
2645
|
|
|
2235
2646
|
if (filter) {
|
|
2236
|
-
this.
|
|
2237
|
-
this.$refs.filtersRef.setCascader(this.
|
|
2647
|
+
this.filter = _toConsumableArray(filter);
|
|
2648
|
+
this.$refs.filtersRef.setCascader(this.filter);
|
|
2649
|
+
}
|
|
2650
|
+
},
|
|
2651
|
+
addFilter: function addFilter(filter) {
|
|
2652
|
+
this.resetPageNavigation();
|
|
2653
|
+
|
|
2654
|
+
if (filter) {
|
|
2655
|
+
this.$refs.filtersRef.addFilter(filter);
|
|
2656
|
+
this.$refs.filtersRef.initiateSearch();
|
|
2238
2657
|
}
|
|
2239
2658
|
},
|
|
2240
2659
|
clearSearchClicked: function clearSearchClicked() {
|
|
2241
2660
|
this.searchInput = "";
|
|
2242
2661
|
this.resetPageNavigation();
|
|
2243
|
-
this.
|
|
2662
|
+
this.searchAlgolia(this.filters, this.searchInput);
|
|
2244
2663
|
},
|
|
2245
2664
|
searchEvent: function searchEvent() {
|
|
2246
2665
|
var event = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
|
|
2247
2666
|
|
|
2248
2667
|
if (event.keyCode === 13 || event instanceof MouseEvent) {
|
|
2249
2668
|
this.resetPageNavigation();
|
|
2250
|
-
this.
|
|
2669
|
+
this.searchAlgolia(this.filters, this.searchInput);
|
|
2251
2670
|
}
|
|
2252
2671
|
},
|
|
2253
|
-
filterUpdate: function filterUpdate(
|
|
2672
|
+
filterUpdate: function filterUpdate(filters) {
|
|
2673
|
+
this.filters = _toConsumableArray(filters);
|
|
2254
2674
|
this.resetPageNavigation();
|
|
2255
|
-
this.
|
|
2256
|
-
this.filter = _toConsumableArray(filter);
|
|
2675
|
+
this.searchAlgolia(filters, this.searchInput);
|
|
2257
2676
|
this.$emit("search-changed", {
|
|
2258
2677
|
value: this.filter,
|
|
2259
2678
|
type: "filter-update"
|
|
2260
2679
|
});
|
|
2261
2680
|
},
|
|
2681
|
+
searchAlgolia: function searchAlgolia(filters) {
|
|
2682
|
+
var _this = this;
|
|
2683
|
+
|
|
2684
|
+
var query = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
|
|
2685
|
+
// Algolia search
|
|
2686
|
+
this.algoliaClient.search(getFilters(filters), query, this.numberPerPage, this.page).then(function (searchData) {
|
|
2687
|
+
_this.numberOfHits = searchData.total;
|
|
2688
|
+
_this.discoverIds = searchData.discoverIds;
|
|
2689
|
+
_this.results = searchData.items;
|
|
2690
|
+
|
|
2691
|
+
_this.searchSciCrunch({
|
|
2692
|
+
'discoverIds': _this.discoverIds
|
|
2693
|
+
});
|
|
2694
|
+
});
|
|
2695
|
+
},
|
|
2696
|
+
filtersLoading: function filtersLoading(val) {
|
|
2697
|
+
this.loadingCards = val;
|
|
2698
|
+
},
|
|
2262
2699
|
numberPerPageUpdate: function numberPerPageUpdate(val) {
|
|
2263
2700
|
this.numberPerPage = val;
|
|
2264
2701
|
this.pageChange(1);
|
|
2265
2702
|
},
|
|
2266
2703
|
pageChange: function pageChange(page) {
|
|
2267
2704
|
this.start = (page - 1) * this.numberPerPage;
|
|
2268
|
-
this.
|
|
2705
|
+
this.page = page;
|
|
2706
|
+
this.searchAlgolia(this.filters, this.searchInput, this.numberPerPage, this.page);
|
|
2269
2707
|
},
|
|
2270
|
-
searchSciCrunch: function searchSciCrunch(
|
|
2271
|
-
var
|
|
2708
|
+
searchSciCrunch: function searchSciCrunch(params) {
|
|
2709
|
+
var _this2 = this;
|
|
2272
2710
|
|
|
2273
|
-
var filter = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : undefined;
|
|
2274
|
-
var searchEndpoint = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : undefined;
|
|
2275
|
-
var params = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : undefined;
|
|
2276
2711
|
this.loadingCards = true;
|
|
2277
2712
|
this.results = [];
|
|
2278
2713
|
this.disableCards();
|
|
2279
|
-
if (!searchEndpoint) searchEndpoint = this.searchEndpoint;
|
|
2280
|
-
if (!params) params = this.createParams(filter, this.start, this.numberPerPage);
|
|
2281
2714
|
this.$emit("search-changed", {
|
|
2282
|
-
value:
|
|
2715
|
+
value: this.searchInput,
|
|
2283
2716
|
type: "query-update"
|
|
2284
2717
|
});
|
|
2285
|
-
this.callSciCrunch(this.
|
|
2718
|
+
this.callSciCrunch(this.envVars.API_LOCATION, params).then(function (result) {
|
|
2286
2719
|
//Only process if the search term is the same as the last search term.
|
|
2287
2720
|
//This avoid old search being displayed.
|
|
2288
|
-
|
|
2721
|
+
_this2.sciCrunchError = false;
|
|
2289
2722
|
|
|
2290
|
-
|
|
2723
|
+
_this2.resultsProcessing(result);
|
|
2291
2724
|
|
|
2292
|
-
|
|
2293
|
-
|
|
2725
|
+
_this2.$refs.content.style["overflow-y"] = "scroll";
|
|
2726
|
+
_this2.loadingCards = false;
|
|
2294
2727
|
}).catch(function (result) {
|
|
2295
2728
|
if (result.name !== 'AbortError') {
|
|
2296
|
-
|
|
2297
|
-
|
|
2729
|
+
_this2.loadingCards = false;
|
|
2730
|
+
_this2.sciCrunchError = result.message;
|
|
2298
2731
|
}
|
|
2299
2732
|
});
|
|
2300
2733
|
},
|
|
@@ -2311,39 +2744,11 @@ var initial_state = {
|
|
|
2311
2744
|
this.start = 0;
|
|
2312
2745
|
this.page = 1;
|
|
2313
2746
|
},
|
|
2314
|
-
createParams: function createParams(filter, start, size) {
|
|
2315
|
-
//Deconstruct list of fitlers to list of term
|
|
2316
|
-
//and facet.
|
|
2317
|
-
var params = {};
|
|
2318
|
-
var term = [];
|
|
2319
|
-
var facet = [];
|
|
2320
|
-
var f = undefined;
|
|
2321
|
-
|
|
2322
|
-
if (filter !== undefined) {
|
|
2323
|
-
f = filter;
|
|
2324
|
-
} else {
|
|
2325
|
-
f = this.filter;
|
|
2326
|
-
}
|
|
2327
|
-
|
|
2328
|
-
if (f) f.forEach(function (e) {
|
|
2329
|
-
//Do not ask for any "show all" request
|
|
2330
|
-
if (e.facet !== "show all") {
|
|
2331
|
-
term.push(e.term);
|
|
2332
|
-
facet.push(e.facet);
|
|
2333
|
-
}
|
|
2334
|
-
});
|
|
2335
|
-
params.term = term;
|
|
2336
|
-
params.facet = facet;
|
|
2337
|
-
params.start = start;
|
|
2338
|
-
params.size = size;
|
|
2339
|
-
return params;
|
|
2340
|
-
},
|
|
2341
2747
|
resultsProcessing: function resultsProcessing(data) {
|
|
2342
|
-
var
|
|
2748
|
+
var _this3 = this;
|
|
2343
2749
|
|
|
2344
2750
|
this.lastSearch = this.searchInput;
|
|
2345
2751
|
this.results = [];
|
|
2346
|
-
var id = 0;
|
|
2347
2752
|
this.numberOfHits = data.numberOfHits;
|
|
2348
2753
|
|
|
2349
2754
|
if (data.results.length === 0) {
|
|
@@ -2352,14 +2757,17 @@ var initial_state = {
|
|
|
2352
2757
|
|
|
2353
2758
|
data.results.forEach(function (element) {
|
|
2354
2759
|
// this.results.push(element) below should be once backend is ready
|
|
2355
|
-
|
|
2760
|
+
var datasetInfo = {
|
|
2356
2761
|
name: element.name,
|
|
2357
2762
|
description: element.description,
|
|
2358
2763
|
contributors: element.contributors,
|
|
2359
|
-
numberSamples:
|
|
2764
|
+
numberSamples: element.sampleSize ? parseInt(element.sampleSize) : 0,
|
|
2765
|
+
numberSubjects: element.subjectSize ? parseInt(element.subjectSize) : 0,
|
|
2360
2766
|
updated: element.updated[0].timestamp.split("T")[0],
|
|
2361
2767
|
url: element.uri[0],
|
|
2362
|
-
datasetId: element.
|
|
2768
|
+
datasetId: element.dataset_identifier,
|
|
2769
|
+
datasetRevision: element.dataset_revision,
|
|
2770
|
+
datasetVersion: element.dataset_version,
|
|
2363
2771
|
organs: element.organs && element.organs.length > 0 ? _toConsumableArray(new Set(element.organs.map(function (v) {
|
|
2364
2772
|
return v.name;
|
|
2365
2773
|
}))) : undefined,
|
|
@@ -2368,16 +2776,16 @@ var initial_state = {
|
|
|
2368
2776
|
}))) : undefined : undefined,
|
|
2369
2777
|
// This processing only includes each gender once into 'sexes'
|
|
2370
2778
|
csvFiles: element.csvFiles,
|
|
2371
|
-
id: id,
|
|
2372
2779
|
doi: element.doi,
|
|
2373
2780
|
publishDate: element.publishDate,
|
|
2374
2781
|
scaffolds: element['abi-scaffold-metadata-file'] ? element['abi-scaffold-metadata-file'] : undefined,
|
|
2375
2782
|
additionalLinks: element.additionalLinks,
|
|
2783
|
+
segmentation: element['mbf-segmentation'],
|
|
2376
2784
|
simulation: element.additionalLinks ? element.additionalLinks[0].description == 'Repository' : false,
|
|
2377
2785
|
s3uri: element.s3uri
|
|
2378
|
-
}
|
|
2786
|
+
};
|
|
2379
2787
|
|
|
2380
|
-
|
|
2788
|
+
_this3.results.push(datasetInfo);
|
|
2381
2789
|
});
|
|
2382
2790
|
},
|
|
2383
2791
|
createfilterParams: function createfilterParams(params) {
|
|
@@ -2399,25 +2807,20 @@ var initial_state = {
|
|
|
2399
2807
|
|
|
2400
2808
|
return p.toString();
|
|
2401
2809
|
},
|
|
2402
|
-
callSciCrunch: function callSciCrunch(apiLocation
|
|
2403
|
-
var
|
|
2810
|
+
callSciCrunch: function callSciCrunch(apiLocation) {
|
|
2811
|
+
var _this4 = this;
|
|
2404
2812
|
|
|
2405
|
-
var params = arguments.length >
|
|
2813
|
+
var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
2406
2814
|
return new Promise(function (resolve, reject) {
|
|
2407
2815
|
// the following controller will abort current search
|
|
2408
2816
|
// if a new one has been started
|
|
2409
|
-
if (
|
|
2410
|
-
|
|
2411
|
-
var signal =
|
|
2412
|
-
var endpoint = apiLocation + searchEndpoint; // Add parameters if we are sent them
|
|
2817
|
+
if (_this4._controller) _this4._controller.abort();
|
|
2818
|
+
_this4._controller = new AbortController();
|
|
2819
|
+
var signal = _this4._controller.signal; // Add parameters if we are sent them
|
|
2413
2820
|
|
|
2414
|
-
|
|
2415
|
-
endpoint = endpoint + search + "/?" + _this3.createfilterParams(params);
|
|
2416
|
-
} else {
|
|
2417
|
-
endpoint = endpoint + "?" + _this3.createfilterParams(params);
|
|
2418
|
-
}
|
|
2821
|
+
var fullEndpoint = _this4.envVars.API_LOCATION + _this4.searchEndpoint + "?" + _this4.createfilterParams(params);
|
|
2419
2822
|
|
|
2420
|
-
fetch(
|
|
2823
|
+
fetch(fullEndpoint, {
|
|
2421
2824
|
signal: signal
|
|
2422
2825
|
}).then(handleErrors).then(function (response) {
|
|
2423
2826
|
return response.json();
|
|
@@ -2430,46 +2833,26 @@ var initial_state = {
|
|
|
2430
2833
|
}
|
|
2431
2834
|
},
|
|
2432
2835
|
mounted: function mounted() {
|
|
2433
|
-
//
|
|
2836
|
+
// initialise algolia
|
|
2837
|
+
this.algoliaClient = new algolia_AlgoliaClient(this.envVars.ALGOLIA_ID, this.envVars.ALGOLIA_KEY, this.envVars.PENNSIEVE_API_LOCATION);
|
|
2838
|
+
this.algoliaClient.initIndex(this.envVars.ALGOLIA_INDEX);
|
|
2839
|
+
console.log('Algolia initialised in sidebar'); // temporarily disable flatmap search since there are no datasets
|
|
2840
|
+
|
|
2434
2841
|
if (this.firstSearch === "Flatmap" || this.firstSearch === "flatmap") {
|
|
2435
|
-
this.openSearch(''
|
|
2436
|
-
facet: "show all",
|
|
2437
|
-
term: 'organ'
|
|
2438
|
-
}, {
|
|
2439
|
-
facet: "show all",
|
|
2440
|
-
term: 'species'
|
|
2441
|
-
}, {
|
|
2442
|
-
facet: "show all",
|
|
2443
|
-
term: 'gender'
|
|
2444
|
-
}, {
|
|
2445
|
-
facet: "show all",
|
|
2446
|
-
term: 'datasets'
|
|
2447
|
-
}]);
|
|
2842
|
+
this.openSearch(undefined, '');
|
|
2448
2843
|
} else {
|
|
2449
|
-
this.openSearch(
|
|
2450
|
-
facet: "show all",
|
|
2451
|
-
term: 'organ'
|
|
2452
|
-
}, {
|
|
2453
|
-
facet: "show all",
|
|
2454
|
-
term: 'species'
|
|
2455
|
-
}, {
|
|
2456
|
-
facet: "show all",
|
|
2457
|
-
term: 'gender'
|
|
2458
|
-
}, {
|
|
2459
|
-
facet: "show all",
|
|
2460
|
-
term: 'datasets'
|
|
2461
|
-
}]);
|
|
2844
|
+
this.openSearch(undefined, '');
|
|
2462
2845
|
}
|
|
2463
2846
|
},
|
|
2464
2847
|
created: function created() {
|
|
2465
2848
|
//Create non-reactive local variables
|
|
2466
|
-
this.searchEndpoint = "
|
|
2849
|
+
this.searchEndpoint = "dataset_info/using_multiple_discoverIds/";
|
|
2467
2850
|
}
|
|
2468
2851
|
});
|
|
2469
2852
|
// CONCATENATED MODULE: ./src/components/SidebarContent.vue?vue&type=script&lang=js&
|
|
2470
2853
|
/* harmony default export */ var components_SidebarContentvue_type_script_lang_js_ = (SidebarContentvue_type_script_lang_js_);
|
|
2471
|
-
// EXTERNAL MODULE: ./src/components/SidebarContent.vue?vue&type=style&index=0&id=
|
|
2472
|
-
var
|
|
2854
|
+
// EXTERNAL MODULE: ./src/components/SidebarContent.vue?vue&type=style&index=0&id=2e1db9a4&scoped=true&lang=css&
|
|
2855
|
+
var SidebarContentvue_type_style_index_0_id_2e1db9a4_scoped_true_lang_css_ = __webpack_require__("be47");
|
|
2473
2856
|
|
|
2474
2857
|
// CONCATENATED MODULE: ./src/components/SidebarContent.vue
|
|
2475
2858
|
|
|
@@ -2482,17 +2865,17 @@ var SidebarContentvue_type_style_index_0_id_638ba01f_scoped_true_lang_css_ = __w
|
|
|
2482
2865
|
|
|
2483
2866
|
var SidebarContent_component = normalizeComponent(
|
|
2484
2867
|
components_SidebarContentvue_type_script_lang_js_,
|
|
2485
|
-
|
|
2486
|
-
|
|
2868
|
+
SidebarContentvue_type_template_id_2e1db9a4_scoped_true_render,
|
|
2869
|
+
SidebarContentvue_type_template_id_2e1db9a4_scoped_true_staticRenderFns,
|
|
2487
2870
|
false,
|
|
2488
2871
|
null,
|
|
2489
|
-
"
|
|
2872
|
+
"2e1db9a4",
|
|
2490
2873
|
null
|
|
2491
2874
|
|
|
2492
2875
|
)
|
|
2493
2876
|
|
|
2494
2877
|
/* harmony default export */ var SidebarContent = (SidebarContent_component.exports);
|
|
2495
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
2878
|
+
// 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&
|
|
2496
2879
|
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)}
|
|
2497
2880
|
var Tabsvue_type_template_id_5d1b9484_scoped_true_staticRenderFns = []
|
|
2498
2881
|
|
|
@@ -2663,9 +3046,9 @@ var SideBarvue_type_script_lang_js_initial_state = {
|
|
|
2663
3046
|
return SideBarvue_type_script_lang_js_initial_state;
|
|
2664
3047
|
}
|
|
2665
3048
|
},
|
|
2666
|
-
|
|
2667
|
-
type:
|
|
2668
|
-
default:
|
|
3049
|
+
envVars: {
|
|
3050
|
+
type: Object,
|
|
3051
|
+
default: function _default() {}
|
|
2669
3052
|
},
|
|
2670
3053
|
tabs: {
|
|
2671
3054
|
type: Array,
|
|
@@ -2700,22 +3083,31 @@ var SideBarvue_type_script_lang_js_initial_state = {
|
|
|
2700
3083
|
toggleDrawer: function toggleDrawer() {
|
|
2701
3084
|
this.drawerOpen = !this.drawerOpen;
|
|
2702
3085
|
},
|
|
2703
|
-
openSearch: function openSearch(
|
|
3086
|
+
openSearch: function openSearch(facets, query) {
|
|
2704
3087
|
var _this = this;
|
|
2705
3088
|
|
|
2706
3089
|
this.drawerOpen = true; // Because refs are in v-for, nextTick is needed here
|
|
2707
3090
|
|
|
2708
3091
|
external_vue_default.a.nextTick(function () {
|
|
2709
|
-
_this.$refs[_this.activeId][0].openSearch(
|
|
3092
|
+
_this.$refs[_this.activeId][0].openSearch(facets, query);
|
|
2710
3093
|
});
|
|
2711
3094
|
},
|
|
2712
|
-
|
|
3095
|
+
addFilter: function addFilter(filter) {
|
|
2713
3096
|
var _this2 = 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
|
-
_this2.$refs[_this2.activeId][0].
|
|
3101
|
+
_this2.$refs[_this2.activeId][0].addFilter(filter);
|
|
3102
|
+
});
|
|
3103
|
+
},
|
|
3104
|
+
openNeuronSearch: function openNeuronSearch(neuron) {
|
|
3105
|
+
var _this3 = this;
|
|
3106
|
+
|
|
3107
|
+
this.drawerOpen = true; // Because refs are in v-for, nextTick is needed here
|
|
3108
|
+
|
|
3109
|
+
external_vue_default.a.nextTick(function () {
|
|
3110
|
+
_this3.$refs[_this3.activeId][0].openSearch('', undefined, 'scicrunch-query-string/', {
|
|
2719
3111
|
'field': '*organ.curie',
|
|
2720
3112
|
'curie': neuron
|
|
2721
3113
|
});
|
|
@@ -2729,17 +3121,17 @@ var SideBarvue_type_script_lang_js_initial_state = {
|
|
|
2729
3121
|
this.drawerOpen = this.openAtStart;
|
|
2730
3122
|
},
|
|
2731
3123
|
mounted: function mounted() {
|
|
2732
|
-
var
|
|
3124
|
+
var _this4 = this;
|
|
2733
3125
|
|
|
2734
3126
|
components_EventBus.$on("PopoverActionClick", function (payLoad) {
|
|
2735
|
-
|
|
3127
|
+
_this4.$emit("actionClick", payLoad);
|
|
2736
3128
|
});
|
|
2737
3129
|
}
|
|
2738
3130
|
});
|
|
2739
3131
|
// CONCATENATED MODULE: ./src/components/SideBar.vue?vue&type=script&lang=js&
|
|
2740
3132
|
/* harmony default export */ var components_SideBarvue_type_script_lang_js_ = (SideBarvue_type_script_lang_js_);
|
|
2741
|
-
// EXTERNAL MODULE: ./src/components/SideBar.vue?vue&type=style&index=0&id=
|
|
2742
|
-
var
|
|
3133
|
+
// EXTERNAL MODULE: ./src/components/SideBar.vue?vue&type=style&index=0&id=3d831a8e&scoped=true&lang=css&
|
|
3134
|
+
var SideBarvue_type_style_index_0_id_3d831a8e_scoped_true_lang_css_ = __webpack_require__("bc5f");
|
|
2743
3135
|
|
|
2744
3136
|
// CONCATENATED MODULE: ./src/components/SideBar.vue
|
|
2745
3137
|
|
|
@@ -2756,7 +3148,7 @@ var SideBar_component = normalizeComponent(
|
|
|
2756
3148
|
staticRenderFns,
|
|
2757
3149
|
false,
|
|
2758
3150
|
null,
|
|
2759
|
-
"
|
|
3151
|
+
"3d831a8e",
|
|
2760
3152
|
null
|
|
2761
3153
|
|
|
2762
3154
|
)
|