@abi-software/flatmapvuer 0.2.5 → 0.3.0-beta-2
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/dist/flatmapvuer.common.js +519 -169
- package/dist/flatmapvuer.common.js.map +1 -1
- package/dist/flatmapvuer.css +1 -1
- package/dist/flatmapvuer.umd.js +519 -169
- package/dist/flatmapvuer.umd.js.map +1 -1
- package/dist/flatmapvuer.umd.min.js +1 -1
- package/dist/flatmapvuer.umd.min.js.map +1 -1
- package/package-lock.json +4 -4
- package/package.json +2 -2
- package/src/App.vue +7 -5
- package/src/components/EventBus.js +3 -0
- package/src/components/FlatmapVuer.vue +37 -8
- package/src/components/MultiFlatmapVuer.vue +10 -1
- package/src/components/PubmedViewer.vue +40 -26
- package/src/components/Tooltip.vue +193 -23
- package/src/components/flatmapQueries.js +0 -0
|
@@ -736,6 +736,13 @@ module.exports = require("core-js/modules/web.dom-collections.iterator.js");
|
|
|
736
736
|
|
|
737
737
|
/***/ }),
|
|
738
738
|
|
|
739
|
+
/***/ "1a89":
|
|
740
|
+
/***/ (function(module, exports) {
|
|
741
|
+
|
|
742
|
+
module.exports = require("core-js/modules/es.array.filter.js");
|
|
743
|
+
|
|
744
|
+
/***/ }),
|
|
745
|
+
|
|
739
746
|
/***/ "1c32":
|
|
740
747
|
/***/ (function(module, exports) {
|
|
741
748
|
|
|
@@ -802,6 +809,13 @@ function scrollIntoView(container, selected) {
|
|
|
802
809
|
|
|
803
810
|
/***/ }),
|
|
804
811
|
|
|
812
|
+
/***/ "2ad5":
|
|
813
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
814
|
+
|
|
815
|
+
// extracted by mini-css-extract-plugin
|
|
816
|
+
|
|
817
|
+
/***/ }),
|
|
818
|
+
|
|
805
819
|
/***/ "2bb5":
|
|
806
820
|
/***/ (function(module, exports, __webpack_require__) {
|
|
807
821
|
|
|
@@ -1331,18 +1345,7 @@ module.exports = require("core-js/modules/es.regexp.to-string.js");
|
|
|
1331
1345
|
|
|
1332
1346
|
/***/ }),
|
|
1333
1347
|
|
|
1334
|
-
/***/ "
|
|
1335
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1336
|
-
|
|
1337
|
-
"use strict";
|
|
1338
|
-
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_PubmedViewer_vue_vue_type_style_index_0_id_06d0e387_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("ee47");
|
|
1339
|
-
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_PubmedViewer_vue_vue_type_style_index_0_id_06d0e387_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_PubmedViewer_vue_vue_type_style_index_0_id_06d0e387_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0__);
|
|
1340
|
-
/* unused harmony reexport * */
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
/***/ }),
|
|
1344
|
-
|
|
1345
|
-
/***/ "36e5":
|
|
1348
|
+
/***/ "35e3":
|
|
1346
1349
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1347
1350
|
|
|
1348
1351
|
// extracted by mini-css-extract-plugin
|
|
@@ -1640,6 +1643,17 @@ main.install = function (Vue) {
|
|
|
1640
1643
|
|
|
1641
1644
|
/******/ });
|
|
1642
1645
|
|
|
1646
|
+
/***/ }),
|
|
1647
|
+
|
|
1648
|
+
/***/ "3df9":
|
|
1649
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1650
|
+
|
|
1651
|
+
"use strict";
|
|
1652
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_Tooltip_vue_vue_type_style_index_0_id_1a81b242_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("7db6");
|
|
1653
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_Tooltip_vue_vue_type_style_index_0_id_1a81b242_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_Tooltip_vue_vue_type_style_index_0_id_1a81b242_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0__);
|
|
1654
|
+
/* unused harmony reexport * */
|
|
1655
|
+
|
|
1656
|
+
|
|
1643
1657
|
/***/ }),
|
|
1644
1658
|
|
|
1645
1659
|
/***/ "4010":
|
|
@@ -1818,6 +1832,17 @@ module.exports = require("core-js/modules/es.array.map.js");
|
|
|
1818
1832
|
|
|
1819
1833
|
// extracted by mini-css-extract-plugin
|
|
1820
1834
|
|
|
1835
|
+
/***/ }),
|
|
1836
|
+
|
|
1837
|
+
/***/ "4635":
|
|
1838
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1839
|
+
|
|
1840
|
+
"use strict";
|
|
1841
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_MultiFlatmapVuer_vue_vue_type_style_index_0_id_f20f0c88_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("35e3");
|
|
1842
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_MultiFlatmapVuer_vue_vue_type_style_index_0_id_f20f0c88_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_MultiFlatmapVuer_vue_vue_type_style_index_0_id_f20f0c88_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0__);
|
|
1843
|
+
/* unused harmony reexport * */
|
|
1844
|
+
|
|
1845
|
+
|
|
1821
1846
|
/***/ }),
|
|
1822
1847
|
|
|
1823
1848
|
/***/ "4897":
|
|
@@ -4530,6 +4555,17 @@ exports.default = {
|
|
|
4530
4555
|
};
|
|
4531
4556
|
exports.PopupManager = _popupManager2.default;
|
|
4532
4557
|
|
|
4558
|
+
/***/ }),
|
|
4559
|
+
|
|
4560
|
+
/***/ "55d7":
|
|
4561
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
4562
|
+
|
|
4563
|
+
"use strict";
|
|
4564
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_PubmedViewer_vue_vue_type_style_index_0_id_1d12a6d3_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("2ad5");
|
|
4565
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_PubmedViewer_vue_vue_type_style_index_0_id_1d12a6d3_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_PubmedViewer_vue_vue_type_style_index_0_id_1d12a6d3_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0__);
|
|
4566
|
+
/* unused harmony reexport * */
|
|
4567
|
+
|
|
4568
|
+
|
|
4533
4569
|
/***/ }),
|
|
4534
4570
|
|
|
4535
4571
|
/***/ "560b":
|
|
@@ -7394,6 +7430,13 @@ main.install = function (Vue) {
|
|
|
7394
7430
|
|
|
7395
7431
|
/***/ }),
|
|
7396
7432
|
|
|
7433
|
+
/***/ "7db6":
|
|
7434
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
7435
|
+
|
|
7436
|
+
// extracted by mini-css-extract-plugin
|
|
7437
|
+
|
|
7438
|
+
/***/ }),
|
|
7439
|
+
|
|
7397
7440
|
/***/ "7f4d":
|
|
7398
7441
|
/***/ (function(module, exports, __webpack_require__) {
|
|
7399
7442
|
|
|
@@ -8665,6 +8708,13 @@ module.exports = __webpack_require__("7f4d");
|
|
|
8665
8708
|
|
|
8666
8709
|
/***/ }),
|
|
8667
8710
|
|
|
8711
|
+
/***/ "896e":
|
|
8712
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
8713
|
+
|
|
8714
|
+
// extracted by mini-css-extract-plugin
|
|
8715
|
+
|
|
8716
|
+
/***/ }),
|
|
8717
|
+
|
|
8668
8718
|
/***/ "8bbc":
|
|
8669
8719
|
/***/ (function(module, exports, __webpack_require__) {
|
|
8670
8720
|
|
|
@@ -8995,24 +9045,6 @@ module.exports = require("core-js/modules/es.object.to-string.js");
|
|
|
8995
9045
|
|
|
8996
9046
|
/***/ }),
|
|
8997
9047
|
|
|
8998
|
-
/***/ "97da":
|
|
8999
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
9000
|
-
|
|
9001
|
-
"use strict";
|
|
9002
|
-
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_MultiFlatmapVuer_vue_vue_type_style_index_0_id_01b30450_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("9996");
|
|
9003
|
-
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_MultiFlatmapVuer_vue_vue_type_style_index_0_id_01b30450_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_MultiFlatmapVuer_vue_vue_type_style_index_0_id_01b30450_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0__);
|
|
9004
|
-
/* unused harmony reexport * */
|
|
9005
|
-
|
|
9006
|
-
|
|
9007
|
-
/***/ }),
|
|
9008
|
-
|
|
9009
|
-
/***/ "9996":
|
|
9010
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
9011
|
-
|
|
9012
|
-
// extracted by mini-css-extract-plugin
|
|
9013
|
-
|
|
9014
|
-
/***/ }),
|
|
9015
|
-
|
|
9016
9048
|
/***/ "9b22":
|
|
9017
9049
|
/***/ (function(module, exports) {
|
|
9018
9050
|
|
|
@@ -10645,24 +10677,6 @@ exports.default = {
|
|
|
10645
10677
|
|
|
10646
10678
|
module.exports = require("core-js/modules/web.url.js");
|
|
10647
10679
|
|
|
10648
|
-
/***/ }),
|
|
10649
|
-
|
|
10650
|
-
/***/ "b9c9":
|
|
10651
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
10652
|
-
|
|
10653
|
-
// extracted by mini-css-extract-plugin
|
|
10654
|
-
|
|
10655
|
-
/***/ }),
|
|
10656
|
-
|
|
10657
|
-
/***/ "bbed":
|
|
10658
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
10659
|
-
|
|
10660
|
-
"use strict";
|
|
10661
|
-
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_FlatmapVuer_vue_vue_type_style_index_0_id_5fb00c0b_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("36e5");
|
|
10662
|
-
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_FlatmapVuer_vue_vue_type_style_index_0_id_5fb00c0b_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_FlatmapVuer_vue_vue_type_style_index_0_id_5fb00c0b_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0__);
|
|
10663
|
-
/* unused harmony reexport * */
|
|
10664
|
-
|
|
10665
|
-
|
|
10666
10680
|
/***/ }),
|
|
10667
10681
|
|
|
10668
10682
|
/***/ "be4f":
|
|
@@ -11165,21 +11179,17 @@ main.install = function (Vue) {
|
|
|
11165
11179
|
|
|
11166
11180
|
/***/ }),
|
|
11167
11181
|
|
|
11168
|
-
/***/ "
|
|
11169
|
-
/***/ (function(module,
|
|
11170
|
-
|
|
11171
|
-
"use strict";
|
|
11172
|
-
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_Tooltip_vue_vue_type_style_index_0_id_4802b201_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("b9c9");
|
|
11173
|
-
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_Tooltip_vue_vue_type_style_index_0_id_4802b201_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_Tooltip_vue_vue_type_style_index_0_id_4802b201_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0__);
|
|
11174
|
-
/* unused harmony reexport * */
|
|
11182
|
+
/***/ "c8a6":
|
|
11183
|
+
/***/ (function(module, exports) {
|
|
11175
11184
|
|
|
11185
|
+
module.exports = require("core-js/modules/es.regexp.exec.js");
|
|
11176
11186
|
|
|
11177
11187
|
/***/ }),
|
|
11178
11188
|
|
|
11179
|
-
/***/ "
|
|
11189
|
+
/***/ "ccb0":
|
|
11180
11190
|
/***/ (function(module, exports) {
|
|
11181
11191
|
|
|
11182
|
-
module.exports = require("core-js/modules/es.
|
|
11192
|
+
module.exports = require("core-js/modules/es.array.concat.js");
|
|
11183
11193
|
|
|
11184
11194
|
/***/ }),
|
|
11185
11195
|
|
|
@@ -11252,6 +11262,24 @@ function isKorean(text) {
|
|
|
11252
11262
|
|
|
11253
11263
|
/***/ }),
|
|
11254
11264
|
|
|
11265
|
+
/***/ "d538":
|
|
11266
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
11267
|
+
|
|
11268
|
+
"use strict";
|
|
11269
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_FlatmapVuer_vue_vue_type_style_index_0_id_032efe9d_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("896e");
|
|
11270
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_FlatmapVuer_vue_vue_type_style_index_0_id_032efe9d_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_FlatmapVuer_vue_vue_type_style_index_0_id_032efe9d_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0__);
|
|
11271
|
+
/* unused harmony reexport * */
|
|
11272
|
+
|
|
11273
|
+
|
|
11274
|
+
/***/ }),
|
|
11275
|
+
|
|
11276
|
+
/***/ "da6e":
|
|
11277
|
+
/***/ (function(module, exports) {
|
|
11278
|
+
|
|
11279
|
+
module.exports = require("core-js/modules/es.array.flat.js");
|
|
11280
|
+
|
|
11281
|
+
/***/ }),
|
|
11282
|
+
|
|
11255
11283
|
/***/ "dab3":
|
|
11256
11284
|
/***/ (function(module, exports) {
|
|
11257
11285
|
|
|
@@ -12661,13 +12689,6 @@ module.exports = require("core-js/modules/es.promise.js");
|
|
|
12661
12689
|
|
|
12662
12690
|
/***/ }),
|
|
12663
12691
|
|
|
12664
|
-
/***/ "ee47":
|
|
12665
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
12666
|
-
|
|
12667
|
-
// extracted by mini-css-extract-plugin
|
|
12668
|
-
|
|
12669
|
-
/***/ }),
|
|
12670
|
-
|
|
12671
12692
|
/***/ "eedf":
|
|
12672
12693
|
/***/ (function(module, exports, __webpack_require__) {
|
|
12673
12694
|
|
|
@@ -14709,12 +14730,12 @@ if (typeof window !== 'undefined') {
|
|
|
14709
14730
|
// Indicate to webpack that this file can be concatenated
|
|
14710
14731
|
/* harmony default export */ var setPublicPath = (null);
|
|
14711
14732
|
|
|
14712
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
14713
|
-
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{directives:[{name:"loading",rawName:"v-loading",value:(_vm.loading),expression:"loading"}],staticClass:"flatmap-container",attrs:{"element-loading-text":"Loading...","element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.3)"}},[_c('map-svg-sprite-color'),_c('div',{staticStyle:{"height":"100%","width":"100%","position":"relative","overflow-y":"none"}},[_c('div',{ref:"display",staticStyle:{"height":"100%","width":"100%"}}),(_vm.displayWarning)?_c('el-popover',{ref:"warningPopover",attrs:{"content":_vm.warningMessage,"placement":"right","appendToBody":false,"trigger":"manual","popper-class":"warning-popper flatmap-popper right-popper"},model:{value:(_vm.hoverVisibilities[6].value),callback:function ($$v) {_vm.$set(_vm.hoverVisibilities[6], "value", $$v)},expression:"hoverVisibilities[6].value"}}):_vm._e(),(_vm.displayWarning)?_c('i',{directives:[{name:"popover",rawName:"v-popover:warningPopover",arg:"warningPopover"}],staticClass:"el-icon-warning warning-icon",on:{"mouseover":function($event){return _vm.showToolitip(6)},"mouseout":function($event){return _vm.hideToolitip(6)}}},[_c('span',{staticClass:"warning-text"},[_vm._v("Beta")])]):_vm._e(),_c('div',{staticClass:"bottom-right-control"},[_c('el-popover',{attrs:{"content":"Zoom in","placement":"left","appendToBody":false,"trigger":"manual","popper-class":"flatmap-popper left-popper"},model:{value:(_vm.hoverVisibilities[0].value),callback:function ($$v) {_vm.$set(_vm.hoverVisibilities[0], "value", $$v)},expression:"hoverVisibilities[0].value"}},[_c('map-svg-icon',{staticClass:"icon-button zoomIn",attrs:{"slot":"reference","icon":"zoomIn"},nativeOn:{"click":function($event){return _vm.zoomIn()},"mouseover":function($event){return _vm.showToolitip(0)},"mouseout":function($event){return _vm.hideToolitip(0)}},slot:"reference"})],1),_c('el-popover',{attrs:{"content":"Zoom out","placement":"top-end","appendToBody":false,"trigger":"manual","popper-class":"flatmap-popper popper-zoomout"},model:{value:(_vm.hoverVisibilities[1].value),callback:function ($$v) {_vm.$set(_vm.hoverVisibilities[1], "value", $$v)},expression:"hoverVisibilities[1].value"}},[_c('map-svg-icon',{staticClass:"icon-button zoomOut",attrs:{"slot":"reference","icon":"zoomOut"},nativeOn:{"click":function($event){return _vm.zoomOut()},"mouseover":function($event){return _vm.showToolitip(1)},"mouseout":function($event){return _vm.hideToolitip(1)}},slot:"reference"})],1),_c('el-popover',{attrs:{"content":"Reset","placement":"top","appendToBody":false,"trigger":"manual","popper-class":"flatmap-popper"},model:{value:(_vm.hoverVisibilities[2].value),callback:function ($$v) {_vm.$set(_vm.hoverVisibilities[2], "value", $$v)},expression:"hoverVisibilities[2].value"}},[_c('div',[_vm._v(" Fit to "),_c('br'),_vm._v(" window ")]),_c('map-svg-icon',{staticClass:"icon-button fitWindow",attrs:{"slot":"reference","icon":"fitWindow"},nativeOn:{"click":function($event){return _vm.resetView()},"mouseover":function($event){return _vm.showToolitip(2)},"mouseout":function($event){return _vm.hideToolitip(2)}},slot:"reference"})],1)],1),_c('el-popover',{ref:"checkBoxPopover",attrs:{"content":"Change pathway visibility","placement":"right","appendToBody":false,"trigger":"manual","popper-class":"flatmap-popper right-popper"},model:{value:(_vm.hoverVisibilities[4].value),callback:function ($$v) {_vm.$set(_vm.hoverVisibilities[4], "value", $$v)},expression:"hoverVisibilities[4].value"}}),_c('div',{staticClass:"pathway-location",class:{ open: _vm.drawerOpen, close: !_vm.drawerOpen }},[(_vm.pathways.length > 0 && _vm.pathControls)?_c('div',{directives:[{name:"popover",rawName:"v-popover:checkBoxPopover",arg:"checkBoxPopover"}],staticClass:"pathway-container"},[_c('el-popover',{ref:"markerPopover",attrs:{"content":"Find these markers for data","placement":"right","appendToBody":false,"trigger":"manual","popper-class":"flatmap-popper popper-bump-right right-popper"},model:{value:(_vm.hoverVisibilities[5].value),callback:function ($$v) {_vm.$set(_vm.hoverVisibilities[5], "value", $$v)},expression:"hoverVisibilities[5].value"}}),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.hoverVisibilities[5].value),expression:"hoverVisibilities[5].value"},{name:"popover",rawName:"v-popover:markerPopover",arg:"markerPopover"}],staticClass:"flatmap-marker-help",domProps:{"innerHTML":_vm._s(_vm.flatmapMarker)}}),_c('el-row',[_c('el-col',{attrs:{"span":12}},[_c('div',{staticClass:"pathways-display-text"},[_vm._v("Pathways")])]),_c('el-col',{attrs:{"span":12}},[_c('el-checkbox',{staticClass:"all-checkbox",attrs:{"indeterminate":_vm.isIndeterminate},on:{"change":_vm.handleCheckAllChange},model:{value:(_vm.checkAll),callback:function ($$v) {_vm.checkAll=$$v},expression:"checkAll"}},[_vm._v("Display all")])],1)],1),_c('el-checkbox-group',{staticClass:"checkbox-group",attrs:{"size":"small"},on:{"change":_vm.handleCheckedItemsChange},model:{value:(_vm.checkedItems),callback:function ($$v) {_vm.checkedItems=$$v},expression:"checkedItems"}},[_c('div',{staticClass:"checkbox-group-inner"},_vm._l((_vm.pathways),function(item){return _c('el-row',{key:item.type,attrs:{"label":item.type}},[_c('div',{staticClass:"checkbox-container"},[_c('el-checkbox',{staticClass:"my-checkbox",attrs:{"label":item.type,"checked":true},on:{"change":function($event){return _vm.visibilityToggle()}}},[_c('div',{staticClass:"path-visual",class:item.type}),_vm._v(" "+_vm._s(item.label)+" ")])],1)])}),1)])],1):_vm._e(),_c('div',{staticClass:"drawer-button",class:{ open: _vm.drawerOpen, close: !_vm.drawerOpen },on:{"click":_vm.toggleDrawer}},[_c('i',{staticClass:"el-icon-arrow-left"})])]),_c('el-popover',{ref:"backgroundPopover",attrs:{"placement":"top-start","width":"175","appendToBody":false,"trigger":"click","popper-class":"background-popper"}},[_c('el-row',{staticClass:"backgroundText"},[_vm._v("Organs display")]),_c('el-row',{staticClass:"backgroundControl"},[_c('el-radio-group',{staticClass:"flatmap-radio",on:{"change":_vm.setColour},model:{value:(_vm.colourRadio),callback:function ($$v) {_vm.colourRadio=$$v},expression:"colourRadio"}},[_c('el-radio',{attrs:{"label":true}},[_vm._v("Colour")]),_c('el-radio',{attrs:{"label":false}},[_vm._v("Greyscale")])],1)],1),_c('el-row',{staticClass:"backgroundSpacer"}),_c('el-row',{staticClass:"backgroundText"},[_vm._v("Outlines display")]),_c('el-row',{staticClass:"backgroundControl"},[_c('el-radio-group',{staticClass:"flatmap-radio",on:{"change":_vm.setOutlines},model:{value:(_vm.outlinesRadio),callback:function ($$v) {_vm.outlinesRadio=$$v},expression:"outlinesRadio"}},[_c('el-radio',{attrs:{"label":true}},[_vm._v("Show")]),_c('el-radio',{attrs:{"label":false}},[_vm._v("Hide")])],1)],1),_c('el-row',{staticClass:"backgroundSpacer"}),_c('el-row',{staticClass:"backgroundText"},[_vm._v("Change background")]),_c('el-row',{staticClass:"backgroundControl"},_vm._l((_vm.availableBackground),function(item){return _c('div',{key:item,class:['backgroundChoice', item, item == _vm.currentBackground ? 'active' :''],on:{"click":function($event){return _vm.backgroundChangeCallback(item)}}})}),0)],1),_c('el-popover',{attrs:{"content":"Change background color","placement":"right","appendToBody":false,"trigger":"manual","popper-class":"flatmap-popper right-popper"},model:{value:(_vm.hoverVisibilities[3].value),callback:function ($$v) {_vm.$set(_vm.hoverVisibilities[3], "value", $$v)},expression:"hoverVisibilities[3].value"}},[_c('map-svg-icon',{directives:[{name:"popover",rawName:"v-popover:backgroundPopover",arg:"backgroundPopover"}],staticClass:"icon-button background-colour",class:{ open: _vm.drawerOpen, close: !_vm.drawerOpen },attrs:{"slot":"reference","icon":"changeBckgd"},nativeOn:{"mouseover":function($event){return _vm.showToolitip(3)},"mouseout":function($event){return _vm.hideToolitip(3)}},slot:"reference"})],1),_c('Tooltip',{ref:"tooltip",staticClass:"tooltip",attrs:{"content":_vm.tooltipContent
|
|
14733
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"2ee990ba-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/FlatmapVuer.vue?vue&type=template&id=032efe9d&scoped=true&
|
|
14734
|
+
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{directives:[{name:"loading",rawName:"v-loading",value:(_vm.loading),expression:"loading"}],staticClass:"flatmap-container",attrs:{"element-loading-text":"Loading...","element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.3)"}},[_c('map-svg-sprite-color'),_c('div',{staticStyle:{"height":"100%","width":"100%","position":"relative","overflow-y":"none"}},[_c('div',{ref:"display",staticStyle:{"height":"100%","width":"100%"}}),(_vm.displayWarning)?_c('el-popover',{ref:"warningPopover",attrs:{"content":_vm.warningMessage,"placement":"right","appendToBody":false,"trigger":"manual","popper-class":"warning-popper flatmap-popper right-popper"},model:{value:(_vm.hoverVisibilities[6].value),callback:function ($$v) {_vm.$set(_vm.hoverVisibilities[6], "value", $$v)},expression:"hoverVisibilities[6].value"}}):_vm._e(),(_vm.displayWarning)?_c('i',{directives:[{name:"popover",rawName:"v-popover:warningPopover",arg:"warningPopover"}],staticClass:"el-icon-warning warning-icon",on:{"mouseover":function($event){return _vm.showToolitip(6)},"mouseout":function($event){return _vm.hideToolitip(6)}}},[_c('span',{staticClass:"warning-text"},[_vm._v("Beta")])]):_vm._e(),_c('div',{staticClass:"bottom-right-control"},[_c('el-popover',{attrs:{"content":"Zoom in","placement":"left","appendToBody":false,"trigger":"manual","popper-class":"flatmap-popper left-popper"},model:{value:(_vm.hoverVisibilities[0].value),callback:function ($$v) {_vm.$set(_vm.hoverVisibilities[0], "value", $$v)},expression:"hoverVisibilities[0].value"}},[_c('map-svg-icon',{staticClass:"icon-button zoomIn",attrs:{"slot":"reference","icon":"zoomIn"},nativeOn:{"click":function($event){return _vm.zoomIn()},"mouseover":function($event){return _vm.showToolitip(0)},"mouseout":function($event){return _vm.hideToolitip(0)}},slot:"reference"})],1),_c('el-popover',{attrs:{"content":"Zoom out","placement":"top-end","appendToBody":false,"trigger":"manual","popper-class":"flatmap-popper popper-zoomout"},model:{value:(_vm.hoverVisibilities[1].value),callback:function ($$v) {_vm.$set(_vm.hoverVisibilities[1], "value", $$v)},expression:"hoverVisibilities[1].value"}},[_c('map-svg-icon',{staticClass:"icon-button zoomOut",attrs:{"slot":"reference","icon":"zoomOut"},nativeOn:{"click":function($event){return _vm.zoomOut()},"mouseover":function($event){return _vm.showToolitip(1)},"mouseout":function($event){return _vm.hideToolitip(1)}},slot:"reference"})],1),_c('el-popover',{attrs:{"content":"Reset","placement":"top","appendToBody":false,"trigger":"manual","popper-class":"flatmap-popper"},model:{value:(_vm.hoverVisibilities[2].value),callback:function ($$v) {_vm.$set(_vm.hoverVisibilities[2], "value", $$v)},expression:"hoverVisibilities[2].value"}},[_c('div',[_vm._v(" Fit to "),_c('br'),_vm._v(" window ")]),_c('map-svg-icon',{staticClass:"icon-button fitWindow",attrs:{"slot":"reference","icon":"fitWindow"},nativeOn:{"click":function($event){return _vm.resetView()},"mouseover":function($event){return _vm.showToolitip(2)},"mouseout":function($event){return _vm.hideToolitip(2)}},slot:"reference"})],1)],1),_c('el-popover',{ref:"checkBoxPopover",attrs:{"content":"Change pathway visibility","placement":"right","appendToBody":false,"trigger":"manual","popper-class":"flatmap-popper right-popper"},model:{value:(_vm.hoverVisibilities[4].value),callback:function ($$v) {_vm.$set(_vm.hoverVisibilities[4], "value", $$v)},expression:"hoverVisibilities[4].value"}}),_c('div',{staticClass:"pathway-location",class:{ open: _vm.drawerOpen, close: !_vm.drawerOpen }},[(_vm.pathways.length > 0 && _vm.pathControls)?_c('div',{directives:[{name:"popover",rawName:"v-popover:checkBoxPopover",arg:"checkBoxPopover"}],staticClass:"pathway-container"},[_c('el-popover',{ref:"markerPopover",attrs:{"content":"Find these markers for data","placement":"right","appendToBody":false,"trigger":"manual","popper-class":"flatmap-popper popper-bump-right right-popper"},model:{value:(_vm.hoverVisibilities[5].value),callback:function ($$v) {_vm.$set(_vm.hoverVisibilities[5], "value", $$v)},expression:"hoverVisibilities[5].value"}}),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.hoverVisibilities[5].value),expression:"hoverVisibilities[5].value"},{name:"popover",rawName:"v-popover:markerPopover",arg:"markerPopover"}],staticClass:"flatmap-marker-help",domProps:{"innerHTML":_vm._s(_vm.flatmapMarker)}}),_c('el-row',[_c('el-col',{attrs:{"span":12}},[_c('div',{staticClass:"pathways-display-text"},[_vm._v("Pathways")])]),_c('el-col',{attrs:{"span":12}},[_c('el-checkbox',{staticClass:"all-checkbox",attrs:{"indeterminate":_vm.isIndeterminate},on:{"change":_vm.handleCheckAllChange},model:{value:(_vm.checkAll),callback:function ($$v) {_vm.checkAll=$$v},expression:"checkAll"}},[_vm._v("Display all")])],1)],1),_c('el-checkbox-group',{staticClass:"checkbox-group",attrs:{"size":"small"},on:{"change":_vm.handleCheckedItemsChange},model:{value:(_vm.checkedItems),callback:function ($$v) {_vm.checkedItems=$$v},expression:"checkedItems"}},[_c('div',{staticClass:"checkbox-group-inner"},_vm._l((_vm.pathways),function(item){return _c('el-row',{key:item.type,attrs:{"label":item.type}},[_c('div',{staticClass:"checkbox-container"},[_c('el-checkbox',{staticClass:"my-checkbox",attrs:{"label":item.type,"checked":true},on:{"change":function($event){return _vm.visibilityToggle()}}},[_c('div',{staticClass:"path-visual",class:item.type}),_vm._v(" "+_vm._s(item.label)+" ")])],1)])}),1)])],1):_vm._e(),_c('div',{staticClass:"drawer-button",class:{ open: _vm.drawerOpen, close: !_vm.drawerOpen },on:{"click":_vm.toggleDrawer}},[_c('i',{staticClass:"el-icon-arrow-left"})])]),_c('el-popover',{ref:"backgroundPopover",attrs:{"placement":"top-start","width":"175","appendToBody":false,"trigger":"click","popper-class":"background-popper"}},[_c('el-row',{staticClass:"backgroundText"},[_vm._v("Organs display")]),_c('el-row',{staticClass:"backgroundControl"},[_c('el-radio-group',{staticClass:"flatmap-radio",on:{"change":_vm.setColour},model:{value:(_vm.colourRadio),callback:function ($$v) {_vm.colourRadio=$$v},expression:"colourRadio"}},[_c('el-radio',{attrs:{"label":true}},[_vm._v("Colour")]),_c('el-radio',{attrs:{"label":false}},[_vm._v("Greyscale")])],1)],1),_c('el-row',{staticClass:"backgroundSpacer"}),_c('el-row',{staticClass:"backgroundText"},[_vm._v("Outlines display")]),_c('el-row',{staticClass:"backgroundControl"},[_c('el-radio-group',{staticClass:"flatmap-radio",on:{"change":_vm.setOutlines},model:{value:(_vm.outlinesRadio),callback:function ($$v) {_vm.outlinesRadio=$$v},expression:"outlinesRadio"}},[_c('el-radio',{attrs:{"label":true}},[_vm._v("Show")]),_c('el-radio',{attrs:{"label":false}},[_vm._v("Hide")])],1)],1),_c('el-row',{staticClass:"backgroundSpacer"}),_c('el-row',{staticClass:"backgroundText"},[_vm._v("Change background")]),_c('el-row',{staticClass:"backgroundControl"},_vm._l((_vm.availableBackground),function(item){return _c('div',{key:item,class:['backgroundChoice', item, item == _vm.currentBackground ? 'active' :''],on:{"click":function($event){return _vm.backgroundChangeCallback(item)}}})}),0)],1),_c('el-popover',{attrs:{"content":"Change background color","placement":"right","appendToBody":false,"trigger":"manual","popper-class":"flatmap-popper right-popper"},model:{value:(_vm.hoverVisibilities[3].value),callback:function ($$v) {_vm.$set(_vm.hoverVisibilities[3], "value", $$v)},expression:"hoverVisibilities[3].value"}},[_c('map-svg-icon',{directives:[{name:"popover",rawName:"v-popover:backgroundPopover",arg:"backgroundPopover"}],staticClass:"icon-button background-colour",class:{ open: _vm.drawerOpen, close: !_vm.drawerOpen },attrs:{"slot":"reference","icon":"changeBckgd"},nativeOn:{"mouseover":function($event){return _vm.showToolitip(3)},"mouseout":function($event){return _vm.hideToolitip(3)}},slot:"reference"})],1),_c('Tooltip',{ref:"tooltip",staticClass:"tooltip",attrs:{"content":_vm.tooltipContent},on:{"resource-selected":_vm.resourceSelected}})],1)],1)}
|
|
14714
14735
|
var staticRenderFns = []
|
|
14715
14736
|
|
|
14716
14737
|
|
|
14717
|
-
// CONCATENATED MODULE: ./src/components/FlatmapVuer.vue?vue&type=template&id=
|
|
14738
|
+
// CONCATENATED MODULE: ./src/components/FlatmapVuer.vue?vue&type=template&id=032efe9d&scoped=true&
|
|
14718
14739
|
|
|
14719
14740
|
// EXTERNAL MODULE: external "core-js/modules/es.symbol.js"
|
|
14720
14741
|
var es_symbol_js_ = __webpack_require__("9b22");
|
|
@@ -14836,6 +14857,35 @@ function _createForOfIteratorHelper(o, allowArrayLike) {
|
|
|
14836
14857
|
}
|
|
14837
14858
|
};
|
|
14838
14859
|
}
|
|
14860
|
+
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js
|
|
14861
|
+
|
|
14862
|
+
function _arrayWithoutHoles(arr) {
|
|
14863
|
+
if (Array.isArray(arr)) return _arrayLikeToArray(arr);
|
|
14864
|
+
}
|
|
14865
|
+
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArray.js
|
|
14866
|
+
|
|
14867
|
+
|
|
14868
|
+
|
|
14869
|
+
|
|
14870
|
+
|
|
14871
|
+
|
|
14872
|
+
|
|
14873
|
+
|
|
14874
|
+
function _iterableToArray(iter) {
|
|
14875
|
+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
14876
|
+
}
|
|
14877
|
+
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js
|
|
14878
|
+
function _nonIterableSpread() {
|
|
14879
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
14880
|
+
}
|
|
14881
|
+
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js
|
|
14882
|
+
|
|
14883
|
+
|
|
14884
|
+
|
|
14885
|
+
|
|
14886
|
+
function _toConsumableArray(arr) {
|
|
14887
|
+
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
|
|
14888
|
+
}
|
|
14839
14889
|
// EXTERNAL MODULE: ./node_modules/element-ui/lib/theme-chalk/row.css
|
|
14840
14890
|
var row = __webpack_require__("7a0f");
|
|
14841
14891
|
|
|
@@ -14919,12 +14969,12 @@ var es_number_constructor_js_ = __webpack_require__("f989");
|
|
|
14919
14969
|
var external_vue_ = __webpack_require__("8bbf");
|
|
14920
14970
|
var external_vue_default = /*#__PURE__*/__webpack_require__.n(external_vue_);
|
|
14921
14971
|
|
|
14922
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
14923
|
-
var
|
|
14924
|
-
var
|
|
14972
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"2ee990ba-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/Tooltip.vue?vue&type=template&id=1a81b242&scoped=true&
|
|
14973
|
+
var Tooltipvue_type_template_id_1a81b242_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"tooltip-container"},[(_vm.content)?_c('el-main',{directives:[{name:"loading",rawName:"v-loading",value:(_vm.loading),expression:"loading"}],staticClass:"main"},[(_vm.content.title)?_c('div',{staticClass:"block"},[_c('span',{staticClass:"title"},[_vm._v(_vm._s(_vm.capitalise(_vm.content.title)))])]):_c('div',{staticClass:"block"},[_c('span',{staticClass:"title"},[_vm._v(_vm._s(_vm.content.featureId))])]),(_vm.content.featureIds)?_c('pubmed-viewer',{directives:[{name:"show",rawName:"v-show",value:(false),expression:"false"}],staticClass:"block",attrs:{"entry":_vm.content},on:{"pubmedSearchUrl":_vm.pubmedSearchUrlUpdate}}):_vm._e(),_vm._v(" "+_vm._s(_vm.content.paths)+" "),(this.components)?_c('div',{staticClass:"block"},[_c('div',{staticClass:"attribute-title"},[_vm._v("Components")]),_vm._l((_vm.components),function(component){return _c('div',{key:component,staticClass:"attribute-content"},[_vm._v(" "+_vm._s(_vm.capitalise(component))+" ")])})],2):_vm._e(),(this.dendrites)?_c('div',{staticClass:"block"},[_c('div',{staticClass:"attribute-title"},[_vm._v("Dendrites")]),_vm._l((_vm.dendrites),function(dendrite){return _c('div',{key:dendrite,staticClass:"attribute-content"},[_vm._v(" "+_vm._s(_vm.capitalise(dendrite))+" ")])}),_c('el-button',{directives:[{name:"show",rawName:"v-show",value:(_vm.dendritesWithDatasets.length > 0),expression:"dendritesWithDatasets.length > 0"}],staticClass:"button",on:{"click":_vm.openDendrites}},[_vm._v(" Explore dendrite data ")])],2):_vm._e(),(this.axons)?_c('div',{staticClass:"block"},[_c('div',{staticClass:"attribute-title"},[_vm._v("Axons")]),_vm._l((_vm.axons),function(axon){return _c('div',{key:axon,staticClass:"attribute-content"},[_vm._v(" "+_vm._s(_vm.capitalise(axon))+" ")])}),_c('el-button',{directives:[{name:"show",rawName:"v-show",value:(_vm.axonsWithDatasets.length > 0),expression:"axonsWithDatasets.length > 0"}],staticClass:"button",on:{"click":_vm.openAxons}},[_vm._v(" Explore axon data ")])],2):_vm._e(),(_vm.content.uberon)?_c('div',{staticClass:"block"},[_c('div',{staticClass:"attribute-title"},[_vm._v("Feature Id")]),_c('span',{staticClass:"attribute-content"},[_vm._v(_vm._s(_vm.content.uberon))])]):_vm._e(),_vm._l((_vm.content.actions),function(action){return _c('el-button',{key:action.title,staticClass:"button",attrs:{"round":""},on:{"click":function($event){return _vm.resourceSelected(action)}}},[(action.title === 'Search for dataset' || action.title === 'View Dataset' )?_c('i',{staticClass:"el-icon-coin"}):_vm._e(),_vm._v(" "+_vm._s(action.title)+" ")])}),(_vm.pubmedSearchUrl)?_c('el-button',{staticClass:"button",attrs:{"icon":"el-icon-notebook-2"},on:{"click":function($event){return _vm.openUrl(_vm.pubmedSearchUrl)}}},[_vm._v(" Open publications in pubmed ")]):_vm._e()],2):_vm._e()],1)}
|
|
14974
|
+
var Tooltipvue_type_template_id_1a81b242_scoped_true_staticRenderFns = []
|
|
14925
14975
|
|
|
14926
14976
|
|
|
14927
|
-
// CONCATENATED MODULE: ./src/components/Tooltip.vue?vue&type=template&id=
|
|
14977
|
+
// CONCATENATED MODULE: ./src/components/Tooltip.vue?vue&type=template&id=1a81b242&scoped=true&
|
|
14928
14978
|
|
|
14929
14979
|
// EXTERNAL MODULE: ./node_modules/element-ui/lib/theme-chalk/main.css
|
|
14930
14980
|
var main = __webpack_require__("de31");
|
|
@@ -14964,6 +15014,18 @@ var lib_button_default = /*#__PURE__*/__webpack_require__.n(lib_button);
|
|
|
14964
15014
|
// EXTERNAL MODULE: external "core-js/modules/es.string.replace.js"
|
|
14965
15015
|
var es_string_replace_js_ = __webpack_require__("6378");
|
|
14966
15016
|
|
|
15017
|
+
// EXTERNAL MODULE: external "core-js/modules/es.array.flat.js"
|
|
15018
|
+
var es_array_flat_js_ = __webpack_require__("da6e");
|
|
15019
|
+
|
|
15020
|
+
// EXTERNAL MODULE: external "core-js/modules/es.promise.js"
|
|
15021
|
+
var es_promise_js_ = __webpack_require__("ec71");
|
|
15022
|
+
|
|
15023
|
+
// EXTERNAL MODULE: external "core-js/modules/es.array.concat.js"
|
|
15024
|
+
var es_array_concat_js_ = __webpack_require__("ccb0");
|
|
15025
|
+
|
|
15026
|
+
// EXTERNAL MODULE: external "core-js/modules/es.array.filter.js"
|
|
15027
|
+
var es_array_filter_js_ = __webpack_require__("1a89");
|
|
15028
|
+
|
|
14967
15029
|
// EXTERNAL MODULE: ./node_modules/element-ui/lib/locale/lang/en.js
|
|
14968
15030
|
var en = __webpack_require__("b2d6");
|
|
14969
15031
|
var en_default = /*#__PURE__*/__webpack_require__.n(en);
|
|
@@ -14972,12 +15034,12 @@ var en_default = /*#__PURE__*/__webpack_require__.n(en);
|
|
|
14972
15034
|
var locale = __webpack_require__("4897");
|
|
14973
15035
|
var locale_default = /*#__PURE__*/__webpack_require__.n(locale);
|
|
14974
15036
|
|
|
14975
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
14976
|
-
var
|
|
14977
|
-
var
|
|
15037
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"2ee990ba-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/PubmedViewer.vue?vue&type=template&id=1d12a6d3&scoped=true&
|
|
15038
|
+
var PubmedViewervue_type_template_id_1d12a6d3_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"pubmed-container"},[_c('div',{directives:[{name:"loading",rawName:"v-loading",value:(_vm.loading.response),expression:"loading.response"}],staticClass:"block"},[_c('div',{staticClass:"attribute-title"},[_vm._v("Pubmed Resources")]),_c('br'),_c('el-carousel',{attrs:{"autoplay":false,"indicator-position":"outside","height":"250px","width":"200px"}},_vm._l((_vm.pubmeds),function(pub,i){return _c('el-carousel-item',{key:i},[_c('div',{staticClass:"attribute-content"},[_c('div',{domProps:{"innerHTML":_vm._s(pub.html)}}),_c('el-link',{staticClass:"el-link",attrs:{"href":pub.url,"underline":false,"target":"_blank"}},[_vm._v(_vm._s(pub.url))])],1)])}),1)],1)])}
|
|
15039
|
+
var PubmedViewervue_type_template_id_1d12a6d3_scoped_true_staticRenderFns = []
|
|
14978
15040
|
|
|
14979
15041
|
|
|
14980
|
-
// CONCATENATED MODULE: ./src/components/PubmedViewer.vue?vue&type=template&id=
|
|
15042
|
+
// CONCATENATED MODULE: ./src/components/PubmedViewer.vue?vue&type=template&id=1d12a6d3&scoped=true&
|
|
14981
15043
|
|
|
14982
15044
|
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
|
|
14983
15045
|
function _arrayWithHoles(arr) {
|
|
@@ -15053,9 +15115,6 @@ var theme_chalk_link = __webpack_require__("fd71");
|
|
|
15053
15115
|
var lib_link = __webpack_require__("a447");
|
|
15054
15116
|
var lib_link_default = /*#__PURE__*/__webpack_require__.n(lib_link);
|
|
15055
15117
|
|
|
15056
|
-
// EXTERNAL MODULE: external "core-js/modules/es.promise.js"
|
|
15057
|
-
var es_promise_js_ = __webpack_require__("ec71");
|
|
15058
|
-
|
|
15059
15118
|
// EXTERNAL MODULE: external "core-js/modules/web.url.js"
|
|
15060
15119
|
var web_url_js_ = __webpack_require__("b94f");
|
|
15061
15120
|
|
|
@@ -15079,6 +15138,10 @@ var es_regexp_to_string_js_ = __webpack_require__("30df");
|
|
|
15079
15138
|
|
|
15080
15139
|
|
|
15081
15140
|
|
|
15141
|
+
|
|
15142
|
+
|
|
15143
|
+
|
|
15144
|
+
|
|
15082
15145
|
|
|
15083
15146
|
|
|
15084
15147
|
|
|
@@ -15115,31 +15178,33 @@ locale_default.a.use(en_default.a);
|
|
|
15115
15178
|
external_vue_default.a.use(lib_link_default.a);
|
|
15116
15179
|
external_vue_default.a.use(lib_carousel_default.a);
|
|
15117
15180
|
external_vue_default.a.use(lib_carousel_item_default.a);
|
|
15181
|
+
external_vue_default.a.use(lib_button_default.a);
|
|
15118
15182
|
/* harmony default export */ var PubmedViewervue_type_script_lang_js_ = ({
|
|
15119
15183
|
name: "Tooltip",
|
|
15120
15184
|
props: {
|
|
15121
|
-
|
|
15122
|
-
type:
|
|
15123
|
-
default:
|
|
15124
|
-
},
|
|
15125
|
-
|
|
15126
|
-
/**
|
|
15127
|
-
* Specify the endpoint of the flatmap server.
|
|
15128
|
-
*/
|
|
15129
|
-
flatmapAPI: {
|
|
15130
|
-
type: String,
|
|
15131
|
-
default: "https://mapcore-demo.org/flatmaps/"
|
|
15185
|
+
entry: {
|
|
15186
|
+
type: Object,
|
|
15187
|
+
default: function _default() {}
|
|
15132
15188
|
}
|
|
15133
15189
|
},
|
|
15134
15190
|
watch: {
|
|
15135
|
-
'featureId': function
|
|
15136
|
-
|
|
15137
|
-
|
|
15191
|
+
'entry.featureId': function entryFeatureId(val) {
|
|
15192
|
+
var _this = this;
|
|
15193
|
+
|
|
15194
|
+
this.flatmapQuery(val).then(function (pb) {
|
|
15195
|
+
return _this.pubmeds = pb;
|
|
15196
|
+
});
|
|
15197
|
+
},
|
|
15198
|
+
'entry.featureIds': {
|
|
15199
|
+
handler: function handler(ids) {
|
|
15200
|
+
this.flatmapQuery(ids);
|
|
15201
|
+
}
|
|
15138
15202
|
}
|
|
15139
15203
|
},
|
|
15140
|
-
|
|
15204
|
+
inject: ['flatmapAPI'],
|
|
15141
15205
|
data: function data() {
|
|
15142
15206
|
return {
|
|
15207
|
+
data: {},
|
|
15143
15208
|
pubmeds: [],
|
|
15144
15209
|
pubmedIds: [],
|
|
15145
15210
|
loading: {
|
|
@@ -15149,7 +15214,7 @@ external_vue_default.a.use(lib_carousel_item_default.a);
|
|
|
15149
15214
|
};
|
|
15150
15215
|
},
|
|
15151
15216
|
mounted: function mounted() {
|
|
15152
|
-
this.flatmapQuery(this.
|
|
15217
|
+
if (this.entry.featureIds) this.flatmapQuery(this.entry.featureIds);
|
|
15153
15218
|
},
|
|
15154
15219
|
methods: {
|
|
15155
15220
|
stripPMIDPrefix: function stripPMIDPrefix(pubmedId) {
|
|
@@ -15170,17 +15235,30 @@ external_vue_default.a.use(lib_carousel_item_default.a);
|
|
|
15170
15235
|
var split = bibliographyString.split('https');
|
|
15171
15236
|
return [split[0], 'https' + split[1]];
|
|
15172
15237
|
},
|
|
15173
|
-
|
|
15174
|
-
var
|
|
15238
|
+
buildPubmedSqlStatement: function buildPubmedSqlStatement(keastIds) {
|
|
15239
|
+
var sql = 'select distinct publication from publications where entity in (';
|
|
15240
|
+
|
|
15241
|
+
if (keastIds.length === 1) {
|
|
15242
|
+
sql += "'".concat(keastIds[0], "')");
|
|
15243
|
+
} else if (keastIds.length > 1) {
|
|
15244
|
+
for (var i in keastIds) {
|
|
15245
|
+
sql += "'".concat(keastIds[i], "'").concat(i >= keastIds.length - 1 ? ')' : ',', " ");
|
|
15246
|
+
}
|
|
15247
|
+
}
|
|
15248
|
+
|
|
15249
|
+
return sql;
|
|
15250
|
+
},
|
|
15251
|
+
flatmapQuery: function flatmapQuery(keastIds) {
|
|
15252
|
+
var _this2 = this;
|
|
15175
15253
|
|
|
15254
|
+
if (!keastIds || keastIds.length === 0) return;
|
|
15176
15255
|
this.pubmeds = [];
|
|
15177
|
-
this.loading.response = true;
|
|
15178
|
-
|
|
15256
|
+
this.loading.response = true; // fetch pubmed publications for the given ids
|
|
15257
|
+
|
|
15179
15258
|
var data = {
|
|
15180
|
-
sql:
|
|
15181
|
-
"params": [identifier]
|
|
15259
|
+
sql: this.buildPubmedSqlStatement(keastIds)
|
|
15182
15260
|
};
|
|
15183
|
-
fetch(
|
|
15261
|
+
fetch("".concat(this.flatmapAPI, "knowledge/query/"), {
|
|
15184
15262
|
method: 'POST',
|
|
15185
15263
|
headers: {
|
|
15186
15264
|
'Content-Type': 'application/json'
|
|
@@ -15189,18 +15267,19 @@ external_vue_default.a.use(lib_carousel_item_default.a);
|
|
|
15189
15267
|
}).then(function (response) {
|
|
15190
15268
|
return response.json();
|
|
15191
15269
|
}).then(function (data) {
|
|
15192
|
-
|
|
15193
|
-
|
|
15270
|
+
_this2.responseData = data;
|
|
15271
|
+
_this2.loading.response = false; // create links for each pubmedId
|
|
15272
|
+
|
|
15194
15273
|
data.values.forEach(function (identifier) {
|
|
15195
|
-
var ids =
|
|
15274
|
+
var ids = _this2.stripPMIDPrefix(identifier[0]);
|
|
15196
15275
|
|
|
15197
|
-
|
|
15198
|
-
var
|
|
15199
|
-
|
|
15200
|
-
html =
|
|
15201
|
-
link =
|
|
15276
|
+
_this2.titleFromPubmed(ids).then(function (bib) {
|
|
15277
|
+
var _this2$splitLink = _this2.splitLink(bib),
|
|
15278
|
+
_this2$splitLink2 = _slicedToArray(_this2$splitLink, 2),
|
|
15279
|
+
html = _this2$splitLink2[0],
|
|
15280
|
+
link = _this2$splitLink2[1];
|
|
15202
15281
|
|
|
15203
|
-
|
|
15282
|
+
_this2.pubmeds.push({
|
|
15204
15283
|
identifier: identifier[0],
|
|
15205
15284
|
html: html,
|
|
15206
15285
|
url: link
|
|
@@ -15208,8 +15287,8 @@ external_vue_default.a.use(lib_carousel_item_default.a);
|
|
|
15208
15287
|
});
|
|
15209
15288
|
});
|
|
15210
15289
|
|
|
15211
|
-
|
|
15212
|
-
return
|
|
15290
|
+
_this2.$emit('pubmedSearchUrl', _this2.pubmedSearchUrl(data.values.map(function (id) {
|
|
15291
|
+
return _this2.stripPMIDPrefix(id[0]);
|
|
15213
15292
|
})));
|
|
15214
15293
|
}).catch(function (error) {
|
|
15215
15294
|
console.error('Error:', error);
|
|
@@ -15225,8 +15304,8 @@ external_vue_default.a.use(lib_carousel_item_default.a);
|
|
|
15225
15304
|
});
|
|
15226
15305
|
// CONCATENATED MODULE: ./src/components/PubmedViewer.vue?vue&type=script&lang=js&
|
|
15227
15306
|
/* harmony default export */ var components_PubmedViewervue_type_script_lang_js_ = (PubmedViewervue_type_script_lang_js_);
|
|
15228
|
-
// EXTERNAL MODULE: ./src/components/PubmedViewer.vue?vue&type=style&index=0&id=
|
|
15229
|
-
var
|
|
15307
|
+
// EXTERNAL MODULE: ./src/components/PubmedViewer.vue?vue&type=style&index=0&id=1d12a6d3&scoped=true&lang=scss&
|
|
15308
|
+
var PubmedViewervue_type_style_index_0_id_1d12a6d3_scoped_true_lang_scss_ = __webpack_require__("55d7");
|
|
15230
15309
|
|
|
15231
15310
|
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
|
15232
15311
|
/* globals __VUE_SSR_CONTEXT__ */
|
|
@@ -15339,16 +15418,20 @@ function normalizeComponent (
|
|
|
15339
15418
|
|
|
15340
15419
|
var component = normalizeComponent(
|
|
15341
15420
|
components_PubmedViewervue_type_script_lang_js_,
|
|
15342
|
-
|
|
15343
|
-
|
|
15421
|
+
PubmedViewervue_type_template_id_1d12a6d3_scoped_true_render,
|
|
15422
|
+
PubmedViewervue_type_template_id_1d12a6d3_scoped_true_staticRenderFns,
|
|
15344
15423
|
false,
|
|
15345
15424
|
null,
|
|
15346
|
-
"
|
|
15425
|
+
"1d12a6d3",
|
|
15347
15426
|
null
|
|
15348
15427
|
|
|
15349
15428
|
)
|
|
15350
15429
|
|
|
15351
15430
|
/* harmony default export */ var PubmedViewer = (component.exports);
|
|
15431
|
+
// CONCATENATED MODULE: ./src/components/EventBus.js
|
|
15432
|
+
|
|
15433
|
+
var EventBus = new external_vue_default.a();
|
|
15434
|
+
/* harmony default export */ var components_EventBus = (EventBus);
|
|
15352
15435
|
// 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/Tooltip.vue?vue&type=script&lang=js&
|
|
15353
15436
|
|
|
15354
15437
|
|
|
@@ -15367,6 +15450,38 @@ var component = normalizeComponent(
|
|
|
15367
15450
|
|
|
15368
15451
|
|
|
15369
15452
|
|
|
15453
|
+
|
|
15454
|
+
|
|
15455
|
+
|
|
15456
|
+
|
|
15457
|
+
|
|
15458
|
+
|
|
15459
|
+
|
|
15460
|
+
|
|
15461
|
+
|
|
15462
|
+
|
|
15463
|
+
|
|
15464
|
+
|
|
15465
|
+
|
|
15466
|
+
|
|
15467
|
+
|
|
15468
|
+
|
|
15469
|
+
//
|
|
15470
|
+
//
|
|
15471
|
+
//
|
|
15472
|
+
//
|
|
15473
|
+
//
|
|
15474
|
+
//
|
|
15475
|
+
//
|
|
15476
|
+
//
|
|
15477
|
+
//
|
|
15478
|
+
//
|
|
15479
|
+
//
|
|
15480
|
+
//
|
|
15481
|
+
//
|
|
15482
|
+
//
|
|
15483
|
+
//
|
|
15484
|
+
//
|
|
15370
15485
|
//
|
|
15371
15486
|
//
|
|
15372
15487
|
//
|
|
@@ -15414,7 +15529,9 @@ external_vue_default.a.use(lib_button_default.a);
|
|
|
15414
15529
|
external_vue_default.a.use(lib_container_default.a);
|
|
15415
15530
|
external_vue_default.a.use(lib_header_default.a);
|
|
15416
15531
|
external_vue_default.a.use(lib_icon_default.a);
|
|
15417
|
-
external_vue_default.a.use(lib_main_default.a);
|
|
15532
|
+
external_vue_default.a.use(lib_main_default.a); // pubmedviewer is currently not in use, but still under review so not ready to delete yet
|
|
15533
|
+
|
|
15534
|
+
|
|
15418
15535
|
|
|
15419
15536
|
|
|
15420
15537
|
var _titleCase = function titleCase(str) {
|
|
@@ -15423,6 +15540,11 @@ var _titleCase = function titleCase(str) {
|
|
|
15423
15540
|
});
|
|
15424
15541
|
};
|
|
15425
15542
|
|
|
15543
|
+
var _capitalise = function capitalise(str) {
|
|
15544
|
+
if (str) return str.charAt(0).toUpperCase() + str.slice(1);
|
|
15545
|
+
return "";
|
|
15546
|
+
};
|
|
15547
|
+
|
|
15426
15548
|
/* harmony default export */ var Tooltipvue_type_script_lang_js_ = ({
|
|
15427
15549
|
components: {
|
|
15428
15550
|
PubmedViewer: PubmedViewer
|
|
@@ -15436,23 +15558,36 @@ var _titleCase = function titleCase(str) {
|
|
|
15436
15558
|
content: {
|
|
15437
15559
|
type: Object,
|
|
15438
15560
|
default: undefined
|
|
15439
|
-
},
|
|
15440
|
-
|
|
15441
|
-
/**
|
|
15442
|
-
* Specify the endpoint of the flatmap server.
|
|
15443
|
-
*/
|
|
15444
|
-
flatmapAPI: {
|
|
15445
|
-
type: String,
|
|
15446
|
-
default: "https://mapcore-demo.org/flatmaps/"
|
|
15447
15561
|
}
|
|
15448
15562
|
},
|
|
15449
15563
|
data: function data() {
|
|
15450
15564
|
return {
|
|
15451
15565
|
activeSpecies: undefined,
|
|
15452
15566
|
appendToBody: false,
|
|
15453
|
-
pubmedSearchUrl: ''
|
|
15567
|
+
pubmedSearchUrl: '',
|
|
15568
|
+
loading: false,
|
|
15569
|
+
axons: [],
|
|
15570
|
+
dendrites: [],
|
|
15571
|
+
components: [],
|
|
15572
|
+
axonsWithDatasets: [],
|
|
15573
|
+
dendritesWithDatasets: [],
|
|
15574
|
+
uberons: [{
|
|
15575
|
+
id: undefined,
|
|
15576
|
+
name: undefined
|
|
15577
|
+
}]
|
|
15454
15578
|
};
|
|
15455
15579
|
},
|
|
15580
|
+
inject: ['sparcAPI', 'flatmapAPI'],
|
|
15581
|
+
watch: {
|
|
15582
|
+
'content.featureIds': {
|
|
15583
|
+
handler: function handler() {
|
|
15584
|
+
this.pathwayQuery(this.content.featureIds);
|
|
15585
|
+
}
|
|
15586
|
+
}
|
|
15587
|
+
},
|
|
15588
|
+
mounted: function mounted() {
|
|
15589
|
+
this.getOrganCuries();
|
|
15590
|
+
},
|
|
15456
15591
|
methods: {
|
|
15457
15592
|
resourceSelected: function resourceSelected(action) {
|
|
15458
15593
|
this.$emit("resource-selected", action);
|
|
@@ -15460,21 +15595,190 @@ var _titleCase = function titleCase(str) {
|
|
|
15460
15595
|
titleCase: function titleCase(title) {
|
|
15461
15596
|
return _titleCase(title);
|
|
15462
15597
|
},
|
|
15598
|
+
capitalise: function capitalise(text) {
|
|
15599
|
+
return _capitalise(text);
|
|
15600
|
+
},
|
|
15463
15601
|
onClose: function onClose() {
|
|
15464
15602
|
this.$emit("onClose");
|
|
15465
15603
|
},
|
|
15466
15604
|
openUrl: function openUrl(url) {
|
|
15467
15605
|
window.open(url, '_blank');
|
|
15468
15606
|
},
|
|
15607
|
+
openAxons: function openAxons() {
|
|
15608
|
+
components_EventBus.$emit('onActionClick', {
|
|
15609
|
+
type: 'Facets',
|
|
15610
|
+
labels: this.axonsWithDatasets.map(function (a) {
|
|
15611
|
+
return a.name;
|
|
15612
|
+
})
|
|
15613
|
+
});
|
|
15614
|
+
},
|
|
15615
|
+
openDendrites: function openDendrites() {
|
|
15616
|
+
components_EventBus.$emit('onActionClick', {
|
|
15617
|
+
type: 'Facets',
|
|
15618
|
+
labels: this.dendritesWithDatasets.map(function (a) {
|
|
15619
|
+
return a.name;
|
|
15620
|
+
})
|
|
15621
|
+
});
|
|
15622
|
+
},
|
|
15469
15623
|
pubmedSearchUrlUpdate: function pubmedSearchUrlUpdate(val) {
|
|
15470
15624
|
this.pubmedSearchUrl = val;
|
|
15625
|
+
},
|
|
15626
|
+
findComponents: function findComponents(connectivity) {
|
|
15627
|
+
var dnodes = connectivity.connectivity.flat(); // get nodes from edgelist
|
|
15628
|
+
|
|
15629
|
+
var nodes = _toConsumableArray(new Set(dnodes)); // remove duplicates
|
|
15630
|
+
|
|
15631
|
+
|
|
15632
|
+
var found = [];
|
|
15633
|
+
var terminal = false;
|
|
15634
|
+
nodes.forEach(function (node) {
|
|
15635
|
+
var n = node.flat(); // Find all terms on the node
|
|
15636
|
+
|
|
15637
|
+
terminal = false; // Check if the node is an axon or dendrite
|
|
15638
|
+
|
|
15639
|
+
n.forEach(function (s) {
|
|
15640
|
+
if (connectivity.axons.includes(s)) {
|
|
15641
|
+
terminal = true;
|
|
15642
|
+
}
|
|
15643
|
+
|
|
15644
|
+
if (connectivity.dendrites.includes(s)) {
|
|
15645
|
+
terminal = true;
|
|
15646
|
+
}
|
|
15647
|
+
});
|
|
15648
|
+
|
|
15649
|
+
if (!terminal) {
|
|
15650
|
+
found.push(node);
|
|
15651
|
+
}
|
|
15652
|
+
}); // remove duplicates
|
|
15653
|
+
|
|
15654
|
+
var foundUnique = _toConsumableArray(new Set(found.map(function (n) {
|
|
15655
|
+
return n[0];
|
|
15656
|
+
})));
|
|
15657
|
+
|
|
15658
|
+
return foundUnique;
|
|
15659
|
+
},
|
|
15660
|
+
getOrganCuries: function getOrganCuries() {
|
|
15661
|
+
var _this = this;
|
|
15662
|
+
|
|
15663
|
+
fetch("".concat(this.sparcAPI, "get-organ-curies/")).then(function (response) {
|
|
15664
|
+
return response.json();
|
|
15665
|
+
}).then(function (data) {
|
|
15666
|
+
_this.uberons = data.uberon.array;
|
|
15667
|
+
});
|
|
15668
|
+
},
|
|
15669
|
+
buildConnectivitySqlStatement: function buildConnectivitySqlStatement(keastIds) {
|
|
15670
|
+
var sql = 'select knowledge from knowledge where entity in (';
|
|
15671
|
+
|
|
15672
|
+
if (keastIds.length === 1) {
|
|
15673
|
+
sql += "'".concat(keastIds[0], "')");
|
|
15674
|
+
} else if (keastIds.length > 1) {
|
|
15675
|
+
for (var i in keastIds) {
|
|
15676
|
+
sql += "'".concat(keastIds[i], "'").concat(i >= keastIds.length - 1 ? ')' : ',', " ");
|
|
15677
|
+
}
|
|
15678
|
+
}
|
|
15679
|
+
|
|
15680
|
+
return sql;
|
|
15681
|
+
},
|
|
15682
|
+
buildLabelSqlStatement: function buildLabelSqlStatement(uberons) {
|
|
15683
|
+
var sql = 'select entity, label from labels where entity in (';
|
|
15684
|
+
|
|
15685
|
+
if (uberons.length === 1) {
|
|
15686
|
+
sql += "'".concat(uberons[0], "')");
|
|
15687
|
+
} else if (uberons.length > 1) {
|
|
15688
|
+
for (var i in uberons) {
|
|
15689
|
+
sql += "'".concat(uberons[i], "'").concat(i >= uberons.length - 1 ? ')' : ',', " ");
|
|
15690
|
+
}
|
|
15691
|
+
}
|
|
15692
|
+
|
|
15693
|
+
return sql;
|
|
15694
|
+
},
|
|
15695
|
+
createLabelLookup: function createLabelLookup(uberons) {
|
|
15696
|
+
var _this2 = this;
|
|
15697
|
+
|
|
15698
|
+
return new Promise(function (resolve) {
|
|
15699
|
+
var uberonMap = {};
|
|
15700
|
+
var data = {
|
|
15701
|
+
sql: _this2.buildLabelSqlStatement(uberons)
|
|
15702
|
+
};
|
|
15703
|
+
fetch("".concat(_this2.flatmapAPI, "knowledge/query/"), {
|
|
15704
|
+
method: 'POST',
|
|
15705
|
+
headers: {
|
|
15706
|
+
'Content-Type': 'application/json'
|
|
15707
|
+
},
|
|
15708
|
+
body: JSON.stringify(data)
|
|
15709
|
+
}).then(function (response) {
|
|
15710
|
+
return response.json();
|
|
15711
|
+
}).then(function (payload) {
|
|
15712
|
+
var entity = payload.keys.indexOf("entity");
|
|
15713
|
+
var label = payload.keys.indexOf("label");
|
|
15714
|
+
|
|
15715
|
+
if (entity > -1 && label > -1) {
|
|
15716
|
+
payload.values.forEach(function (pair) {
|
|
15717
|
+
uberonMap[pair[entity]] = pair[label];
|
|
15718
|
+
});
|
|
15719
|
+
}
|
|
15720
|
+
|
|
15721
|
+
resolve(uberonMap);
|
|
15722
|
+
});
|
|
15723
|
+
});
|
|
15724
|
+
},
|
|
15725
|
+
pathwayQuery: function pathwayQuery(keastIds) {
|
|
15726
|
+
var _this3 = this;
|
|
15727
|
+
|
|
15728
|
+
this.axons = [];
|
|
15729
|
+
this.dendrites = [];
|
|
15730
|
+
this.components = [];
|
|
15731
|
+
this.loading = true;
|
|
15732
|
+
if (!keastIds || keastIds.length == 0) return;
|
|
15733
|
+
var data = {
|
|
15734
|
+
sql: this.buildConnectivitySqlStatement(keastIds)
|
|
15735
|
+
};
|
|
15736
|
+
fetch("".concat(this.flatmapAPI, "knowledge/query/"), {
|
|
15737
|
+
method: 'POST',
|
|
15738
|
+
headers: {
|
|
15739
|
+
'Content-Type': 'application/json'
|
|
15740
|
+
},
|
|
15741
|
+
body: JSON.stringify(data)
|
|
15742
|
+
}).then(function (response) {
|
|
15743
|
+
return response.json();
|
|
15744
|
+
}).then(function (data) {
|
|
15745
|
+
var connectivity = JSON.parse(data.values[0][0]);
|
|
15746
|
+
|
|
15747
|
+
var components = _this3.findComponents(connectivity); // Create list of ids to get labels for
|
|
15748
|
+
|
|
15749
|
+
|
|
15750
|
+
var conIds = connectivity.axons.concat(connectivity.dendrites.concat(components));
|
|
15751
|
+
|
|
15752
|
+
_this3.createLabelLookup(conIds).then(function (lookUp) {
|
|
15753
|
+
_this3.axons = connectivity.axons.map(function (a) {
|
|
15754
|
+
return lookUp[a];
|
|
15755
|
+
});
|
|
15756
|
+
_this3.dendrites = connectivity.dendrites.map(function (d) {
|
|
15757
|
+
return lookUp[d];
|
|
15758
|
+
});
|
|
15759
|
+
_this3.components = components.map(function (c) {
|
|
15760
|
+
return lookUp[c];
|
|
15761
|
+
});
|
|
15762
|
+
}); // Filter for the anatomy which is annotated on datasets
|
|
15763
|
+
|
|
15764
|
+
|
|
15765
|
+
_this3.axonsWithDatasets = _this3.uberons.filter(function (ub) {
|
|
15766
|
+
return connectivity.axons.indexOf(ub.id) !== -1;
|
|
15767
|
+
});
|
|
15768
|
+
_this3.dendritesWithDatasets = _this3.uberons.filter(function (ub) {
|
|
15769
|
+
return connectivity.dendrites.indexOf(ub.id) !== -1;
|
|
15770
|
+
});
|
|
15771
|
+
_this3.loading = false;
|
|
15772
|
+
}).catch(function (error) {
|
|
15773
|
+
console.error('Error:', error);
|
|
15774
|
+
});
|
|
15471
15775
|
}
|
|
15472
15776
|
}
|
|
15473
15777
|
});
|
|
15474
15778
|
// CONCATENATED MODULE: ./src/components/Tooltip.vue?vue&type=script&lang=js&
|
|
15475
15779
|
/* harmony default export */ var components_Tooltipvue_type_script_lang_js_ = (Tooltipvue_type_script_lang_js_);
|
|
15476
|
-
// EXTERNAL MODULE: ./src/components/Tooltip.vue?vue&type=style&index=0&id=
|
|
15477
|
-
var
|
|
15780
|
+
// EXTERNAL MODULE: ./src/components/Tooltip.vue?vue&type=style&index=0&id=1a81b242&scoped=true&lang=scss&
|
|
15781
|
+
var Tooltipvue_type_style_index_0_id_1a81b242_scoped_true_lang_scss_ = __webpack_require__("3df9");
|
|
15478
15782
|
|
|
15479
15783
|
// CONCATENATED MODULE: ./src/components/Tooltip.vue
|
|
15480
15784
|
|
|
@@ -15487,11 +15791,11 @@ var Tooltipvue_type_style_index_0_id_4802b201_scoped_true_lang_scss_ = __webpack
|
|
|
15487
15791
|
|
|
15488
15792
|
var Tooltip_component = normalizeComponent(
|
|
15489
15793
|
components_Tooltipvue_type_script_lang_js_,
|
|
15490
|
-
|
|
15491
|
-
|
|
15794
|
+
Tooltipvue_type_template_id_1a81b242_scoped_true_render,
|
|
15795
|
+
Tooltipvue_type_template_id_1a81b242_scoped_true_staticRenderFns,
|
|
15492
15796
|
false,
|
|
15493
15797
|
null,
|
|
15494
|
-
"
|
|
15798
|
+
"1a81b242",
|
|
15495
15799
|
null
|
|
15496
15800
|
|
|
15497
15801
|
)
|
|
@@ -15539,7 +15843,7 @@ var svg_sprite_ = __webpack_require__("429c");
|
|
|
15539
15843
|
|
|
15540
15844
|
|
|
15541
15845
|
|
|
15542
|
-
|
|
15846
|
+
|
|
15543
15847
|
//
|
|
15544
15848
|
//
|
|
15545
15849
|
//
|
|
@@ -15920,7 +16224,7 @@ var mapResize = function mapResize(map) {
|
|
|
15920
16224
|
eventType: eventType
|
|
15921
16225
|
}; // Disable the nueron pop up for now.
|
|
15922
16226
|
|
|
15923
|
-
if (data && data.type !== "marker") _this.checkAndCreatePopups(
|
|
16227
|
+
if (data && data.type !== "marker") _this.checkAndCreatePopups(payload);
|
|
15924
16228
|
|
|
15925
16229
|
_this.$emit("resource-selected", payload);
|
|
15926
16230
|
} else {
|
|
@@ -15961,16 +16265,32 @@ var mapResize = function mapResize(map) {
|
|
|
15961
16265
|
actions: []
|
|
15962
16266
|
};
|
|
15963
16267
|
var foundAnnotations = false;
|
|
15964
|
-
this.tooltipVisible = false; //
|
|
16268
|
+
this.tooltipVisible = false; // nerve cuff check
|
|
16269
|
+
|
|
16270
|
+
if (data.feature.nodeId) {
|
|
16271
|
+
var paths = this.mapImp.nodePathModels(data.feature.nodeId);
|
|
16272
|
+
|
|
16273
|
+
if (paths.size > 0) {
|
|
16274
|
+
foundAnnotations = true;
|
|
16275
|
+
this.tooltipVisible = true;
|
|
16276
|
+
this.tooltipContent = content;
|
|
16277
|
+
this.tooltipContent.uberon = feature;
|
|
16278
|
+
this.tooltipContent.title = data.label;
|
|
16279
|
+
this.tooltipContent.featureIds = _toConsumableArray(paths);
|
|
16280
|
+
}
|
|
16281
|
+
|
|
16282
|
+
return true;
|
|
16283
|
+
} // neural data check
|
|
16284
|
+
|
|
15965
16285
|
|
|
15966
16286
|
if (feature) {
|
|
15967
|
-
if (feature.includes(
|
|
16287
|
+
if (feature.includes('ilxtr:neuron')) {
|
|
15968
16288
|
foundAnnotations = true;
|
|
15969
16289
|
this.tooltipVisible = true;
|
|
15970
16290
|
this.tooltipContent = content;
|
|
15971
16291
|
this.tooltipContent.uberon = feature;
|
|
15972
16292
|
this.tooltipContent.title = data.label;
|
|
15973
|
-
this.tooltipContent.
|
|
16293
|
+
this.tooltipContent.featureIds = [feature];
|
|
15974
16294
|
this.tooltipContent.actions.push({
|
|
15975
16295
|
title: "Search for dataset",
|
|
15976
16296
|
label: "Neuron Datasets",
|
|
@@ -16172,11 +16492,18 @@ var mapResize = function mapResize(map) {
|
|
|
16172
16492
|
if (this.mapImp) {
|
|
16173
16493
|
if (term === undefined || term === "") {
|
|
16174
16494
|
this.mapImp.clearSearchResults();
|
|
16495
|
+
return true;
|
|
16175
16496
|
} else {
|
|
16176
16497
|
var searchResults = this.mapImp.search(term);
|
|
16177
|
-
|
|
16498
|
+
|
|
16499
|
+
if (searchResults && searchResults.__featureIds.length > 0) {
|
|
16500
|
+
this.mapImp.showSearchResults(searchResults);
|
|
16501
|
+
return true;
|
|
16502
|
+
} else this.mapImp.clearSearchResults();
|
|
16178
16503
|
}
|
|
16179
16504
|
}
|
|
16505
|
+
|
|
16506
|
+
return false;
|
|
16180
16507
|
}
|
|
16181
16508
|
},
|
|
16182
16509
|
props: {
|
|
@@ -16236,8 +16563,18 @@ var mapResize = function mapResize(map) {
|
|
|
16236
16563
|
flatmapAPI: {
|
|
16237
16564
|
type: String,
|
|
16238
16565
|
default: "https://mapcore-demo.org/flatmaps/"
|
|
16566
|
+
},
|
|
16567
|
+
sparcAPI: {
|
|
16568
|
+
type: String,
|
|
16569
|
+
default: "https://api.sparc.science/"
|
|
16239
16570
|
}
|
|
16240
16571
|
},
|
|
16572
|
+
provide: function provide() {
|
|
16573
|
+
return {
|
|
16574
|
+
sparcAPI: this.sparcAPI,
|
|
16575
|
+
flatmapAPI: this.flatmapAPI
|
|
16576
|
+
};
|
|
16577
|
+
},
|
|
16241
16578
|
data: function data() {
|
|
16242
16579
|
return {
|
|
16243
16580
|
checkedItems: [],
|
|
@@ -16265,7 +16602,9 @@ var mapResize = function mapResize(map) {
|
|
|
16265
16602
|
loading: false,
|
|
16266
16603
|
flatmapMarker: flatmap_marker,
|
|
16267
16604
|
drawerOpen: true,
|
|
16268
|
-
tooltipContent: {
|
|
16605
|
+
tooltipContent: {
|
|
16606
|
+
featureIds: []
|
|
16607
|
+
},
|
|
16269
16608
|
colourRadio: true,
|
|
16270
16609
|
outlinesRadio: true
|
|
16271
16610
|
};
|
|
@@ -16294,8 +16633,8 @@ var mapResize = function mapResize(map) {
|
|
|
16294
16633
|
});
|
|
16295
16634
|
// CONCATENATED MODULE: ./src/components/FlatmapVuer.vue?vue&type=script&lang=js&
|
|
16296
16635
|
/* harmony default export */ var components_FlatmapVuervue_type_script_lang_js_ = (FlatmapVuervue_type_script_lang_js_);
|
|
16297
|
-
// EXTERNAL MODULE: ./src/components/FlatmapVuer.vue?vue&type=style&index=0&id=
|
|
16298
|
-
var
|
|
16636
|
+
// EXTERNAL MODULE: ./src/components/FlatmapVuer.vue?vue&type=style&index=0&id=032efe9d&scoped=true&lang=scss&
|
|
16637
|
+
var FlatmapVuervue_type_style_index_0_id_032efe9d_scoped_true_lang_scss_ = __webpack_require__("d538");
|
|
16299
16638
|
|
|
16300
16639
|
// CONCATENATED MODULE: ./src/components/FlatmapVuer.vue
|
|
16301
16640
|
|
|
@@ -16312,18 +16651,18 @@ var FlatmapVuer_component = normalizeComponent(
|
|
|
16312
16651
|
staticRenderFns,
|
|
16313
16652
|
false,
|
|
16314
16653
|
null,
|
|
16315
|
-
"
|
|
16654
|
+
"032efe9d",
|
|
16316
16655
|
null
|
|
16317
16656
|
|
|
16318
16657
|
)
|
|
16319
16658
|
|
|
16320
16659
|
/* harmony default export */ var FlatmapVuer = (FlatmapVuer_component.exports);
|
|
16321
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
16322
|
-
var
|
|
16323
|
-
var
|
|
16660
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"2ee990ba-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/MultiFlatmapVuer.vue?vue&type=template&id=f20f0c88&scoped=true&
|
|
16661
|
+
var MultiFlatmapVuervue_type_template_id_f20f0c88_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"multi-container"},[_c('div',{staticStyle:{"position":"absolute","z-index":"10"}},[_c('div',{staticClass:"species-display-text"},[_vm._v(" Species ")]),_c('el-popover',{ref:"selectPopover",attrs:{"content":"Select a species","placement":"right","appendToBody":false,"trigger":"manual","popper-class":"flatmap-popper right-popper"},model:{value:(_vm.helpMode),callback:function ($$v) {_vm.helpMode=$$v},expression:"helpMode"}}),_c('el-select',{directives:[{name:"popover",rawName:"v-popover:selectPopover",arg:"selectPopover"}],staticClass:"select-box",attrs:{"id":"flatmap-select","popper-append-to-body":_vm.appendToBody,"placeholder":"Select","popper-class":"flatmap_dropdown"},on:{"change":_vm.flatmapChanged},model:{value:(_vm.activeSpecies),callback:function ($$v) {_vm.activeSpecies=$$v},expression:"activeSpecies"}},_vm._l((_vm.speciesList),function(item,key){return _c('el-option',{key:key,attrs:{"label":key,"value":key}},[_c('el-row',[_c('el-col',{attrs:{"span":8}},[_c('i',{class:item.iconClass})]),_c('el-col',{attrs:{"span":12}},[_vm._v(_vm._s(key))])],1)],1)}),1)],1),_vm._l((_vm.speciesList),function(item,key){return _c('FlatmapVuer',{directives:[{name:"show",rawName:"v-show",value:(_vm.activeSpecies==key),expression:"activeSpecies==key"}],key:key,ref:key,refInFor:true,staticStyle:{"height":"100%"},attrs:{"showLayer":_vm.showLayer,"entry":item.taxo,"displayWarning":item.displayWarning,"warningMessage":_vm.warningMessage,"featureInfo":_vm.featureInfo,"minZoom":_vm.minZoom,"pathControls":_vm.pathControls,"searchable":_vm.searchable,"helpMode":_vm.helpMode,"renderAtMounted":_vm.renderAtMounted,"displayMinimap":_vm.displayMinimap,"flatmapAPI":_vm.flatmapAPI,"sparcAPI":_vm.sparcAPI},on:{"resource-selected":_vm.FlatmapSelected,"ready":_vm.FlatmapReady,"pan-zoom-callback":_vm.panZoomCallback}})})],2)}
|
|
16662
|
+
var MultiFlatmapVuervue_type_template_id_f20f0c88_scoped_true_staticRenderFns = []
|
|
16324
16663
|
|
|
16325
16664
|
|
|
16326
|
-
// CONCATENATED MODULE: ./src/components/MultiFlatmapVuer.vue?vue&type=template&id=
|
|
16665
|
+
// CONCATENATED MODULE: ./src/components/MultiFlatmapVuer.vue?vue&type=template&id=f20f0c88&scoped=true&
|
|
16327
16666
|
|
|
16328
16667
|
// EXTERNAL MODULE: ./node_modules/element-ui/lib/theme-chalk/popover.css
|
|
16329
16668
|
var popover = __webpack_require__("06f1");
|
|
@@ -16423,12 +16762,14 @@ var es_object_keys_js_ = __webpack_require__("ea64");
|
|
|
16423
16762
|
//
|
|
16424
16763
|
//
|
|
16425
16764
|
//
|
|
16765
|
+
//
|
|
16426
16766
|
|
|
16427
16767
|
/* eslint-disable no-alert, no-console */
|
|
16428
16768
|
|
|
16429
16769
|
|
|
16430
16770
|
|
|
16431
16771
|
|
|
16772
|
+
|
|
16432
16773
|
locale_default.a.use(en_default.a);
|
|
16433
16774
|
external_vue_default.a.use(lib_col_default.a);
|
|
16434
16775
|
external_vue_default.a.use(lib_row_default.a);
|
|
@@ -16441,35 +16782,40 @@ external_vue_default.a.use(lib_popover_default.a);
|
|
|
16441
16782
|
FlatmapVuer: FlatmapVuer
|
|
16442
16783
|
},
|
|
16443
16784
|
mounted: function mounted() {
|
|
16785
|
+
var _this = this;
|
|
16786
|
+
|
|
16444
16787
|
this.initialise();
|
|
16788
|
+
components_EventBus.$on('onActionClick', function (action) {
|
|
16789
|
+
_this.FlatmapSelected(action);
|
|
16790
|
+
});
|
|
16445
16791
|
},
|
|
16446
16792
|
methods: {
|
|
16447
16793
|
initialise: function initialise() {
|
|
16448
|
-
var
|
|
16794
|
+
var _this2 = this;
|
|
16449
16795
|
|
|
16450
16796
|
return new Promise(function (resolve) {
|
|
16451
|
-
fetch(
|
|
16797
|
+
fetch(_this2.flatmapAPI).then(function (response) {
|
|
16452
16798
|
return response.json();
|
|
16453
16799
|
}).then(function (data) {
|
|
16454
|
-
|
|
16455
|
-
Object.keys(
|
|
16800
|
+
_this2.speciesLis = {};
|
|
16801
|
+
Object.keys(_this2.availableSpecies).forEach(function (key) {
|
|
16456
16802
|
for (var i = 0; i < data.length; i++) {
|
|
16457
|
-
if (data[i].
|
|
16458
|
-
|
|
16803
|
+
if (data[i].taxon === _this2.availableSpecies[key].taxo) {
|
|
16804
|
+
_this2.speciesList[key] = _this2.availableSpecies[key];
|
|
16459
16805
|
break;
|
|
16460
16806
|
}
|
|
16461
16807
|
}
|
|
16462
16808
|
});
|
|
16463
16809
|
|
|
16464
|
-
if (!
|
|
16465
|
-
if (
|
|
16466
|
-
|
|
16810
|
+
if (!_this2.state) {
|
|
16811
|
+
if (_this2.initial && _this2.speciesList[_this2.initial] !== undefined) {
|
|
16812
|
+
_this2.activeSpecies = _this2.initial;
|
|
16467
16813
|
} else {
|
|
16468
|
-
|
|
16814
|
+
_this2.activeSpecies = Object.keys(_this2.speciesList)[0];
|
|
16469
16815
|
}
|
|
16470
16816
|
|
|
16471
16817
|
external_vue_default.a.nextTick(function () {
|
|
16472
|
-
if (
|
|
16818
|
+
if (_this2.$refs[_this2.activeSpecies]) _this2.$refs[_this2.activeSpecies][0].createFlatmap();
|
|
16473
16819
|
});
|
|
16474
16820
|
}
|
|
16475
16821
|
|
|
@@ -16535,23 +16881,23 @@ external_vue_default.a.use(lib_popover_default.a);
|
|
|
16535
16881
|
* @public
|
|
16536
16882
|
*/
|
|
16537
16883
|
setState: function setState(state) {
|
|
16538
|
-
var
|
|
16884
|
+
var _this3 = this;
|
|
16539
16885
|
|
|
16540
16886
|
if (state) {
|
|
16541
16887
|
this.initialise().then(function () {
|
|
16542
|
-
if (state.species && state.species !==
|
|
16543
|
-
|
|
16888
|
+
if (state.species && state.species !== _this3.activeSpecies) {
|
|
16889
|
+
_this3.activeSpecies = state.species;
|
|
16544
16890
|
|
|
16545
16891
|
if (state.state) {
|
|
16546
16892
|
//Wait for next tick when the refs are ready for rendering
|
|
16547
|
-
|
|
16548
|
-
|
|
16893
|
+
_this3.$nextTick(function () {
|
|
16894
|
+
_this3.$refs[_this3.activeSpecies][0].createFlatmap(state.state);
|
|
16549
16895
|
|
|
16550
|
-
|
|
16896
|
+
_this3.$emit('flatmapChanged', _this3.activeSpecies);
|
|
16551
16897
|
});
|
|
16552
16898
|
}
|
|
16553
16899
|
} else if (state.state) {
|
|
16554
|
-
var map =
|
|
16900
|
+
var map = _this3.getCurrentFlatmap();
|
|
16555
16901
|
|
|
16556
16902
|
map.setState(state.state);
|
|
16557
16903
|
}
|
|
@@ -16624,6 +16970,10 @@ external_vue_default.a.use(lib_popover_default.a);
|
|
|
16624
16970
|
flatmapAPI: {
|
|
16625
16971
|
type: String,
|
|
16626
16972
|
default: "https://mapcore-demo.org/flatmaps/"
|
|
16973
|
+
},
|
|
16974
|
+
sparcAPI: {
|
|
16975
|
+
type: String,
|
|
16976
|
+
default: "https://api.sparc.science/"
|
|
16627
16977
|
}
|
|
16628
16978
|
},
|
|
16629
16979
|
data: function data() {
|
|
@@ -16645,8 +16995,8 @@ external_vue_default.a.use(lib_popover_default.a);
|
|
|
16645
16995
|
});
|
|
16646
16996
|
// CONCATENATED MODULE: ./src/components/MultiFlatmapVuer.vue?vue&type=script&lang=js&
|
|
16647
16997
|
/* harmony default export */ var components_MultiFlatmapVuervue_type_script_lang_js_ = (MultiFlatmapVuervue_type_script_lang_js_);
|
|
16648
|
-
// EXTERNAL MODULE: ./src/components/MultiFlatmapVuer.vue?vue&type=style&index=0&id=
|
|
16649
|
-
var
|
|
16998
|
+
// EXTERNAL MODULE: ./src/components/MultiFlatmapVuer.vue?vue&type=style&index=0&id=f20f0c88&scoped=true&lang=scss&
|
|
16999
|
+
var MultiFlatmapVuervue_type_style_index_0_id_f20f0c88_scoped_true_lang_scss_ = __webpack_require__("4635");
|
|
16650
17000
|
|
|
16651
17001
|
// CONCATENATED MODULE: ./src/components/MultiFlatmapVuer.vue
|
|
16652
17002
|
|
|
@@ -16659,11 +17009,11 @@ var MultiFlatmapVuervue_type_style_index_0_id_01b30450_scoped_true_lang_scss_ =
|
|
|
16659
17009
|
|
|
16660
17010
|
var MultiFlatmapVuer_component = normalizeComponent(
|
|
16661
17011
|
components_MultiFlatmapVuervue_type_script_lang_js_,
|
|
16662
|
-
|
|
16663
|
-
|
|
17012
|
+
MultiFlatmapVuervue_type_template_id_f20f0c88_scoped_true_render,
|
|
17013
|
+
MultiFlatmapVuervue_type_template_id_f20f0c88_scoped_true_staticRenderFns,
|
|
16664
17014
|
false,
|
|
16665
17015
|
null,
|
|
16666
|
-
"
|
|
17016
|
+
"f20f0c88",
|
|
16667
17017
|
null
|
|
16668
17018
|
|
|
16669
17019
|
)
|