@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
package/dist/flatmapvuer.umd.js
CHANGED
|
@@ -745,6 +745,13 @@ module.exports = require("core-js/modules/web.dom-collections.iterator.js");
|
|
|
745
745
|
|
|
746
746
|
/***/ }),
|
|
747
747
|
|
|
748
|
+
/***/ "1a89":
|
|
749
|
+
/***/ (function(module, exports) {
|
|
750
|
+
|
|
751
|
+
module.exports = require("core-js/modules/es.array.filter.js");
|
|
752
|
+
|
|
753
|
+
/***/ }),
|
|
754
|
+
|
|
748
755
|
/***/ "1c32":
|
|
749
756
|
/***/ (function(module, exports) {
|
|
750
757
|
|
|
@@ -811,6 +818,13 @@ function scrollIntoView(container, selected) {
|
|
|
811
818
|
|
|
812
819
|
/***/ }),
|
|
813
820
|
|
|
821
|
+
/***/ "2ad5":
|
|
822
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
823
|
+
|
|
824
|
+
// extracted by mini-css-extract-plugin
|
|
825
|
+
|
|
826
|
+
/***/ }),
|
|
827
|
+
|
|
814
828
|
/***/ "2bb5":
|
|
815
829
|
/***/ (function(module, exports, __webpack_require__) {
|
|
816
830
|
|
|
@@ -1340,18 +1354,7 @@ module.exports = require("core-js/modules/es.regexp.to-string.js");
|
|
|
1340
1354
|
|
|
1341
1355
|
/***/ }),
|
|
1342
1356
|
|
|
1343
|
-
/***/ "
|
|
1344
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1345
|
-
|
|
1346
|
-
"use strict";
|
|
1347
|
-
/* 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");
|
|
1348
|
-
/* 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__);
|
|
1349
|
-
/* unused harmony reexport * */
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
/***/ }),
|
|
1353
|
-
|
|
1354
|
-
/***/ "36e5":
|
|
1357
|
+
/***/ "35e3":
|
|
1355
1358
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1356
1359
|
|
|
1357
1360
|
// extracted by mini-css-extract-plugin
|
|
@@ -1649,6 +1652,17 @@ main.install = function (Vue) {
|
|
|
1649
1652
|
|
|
1650
1653
|
/******/ });
|
|
1651
1654
|
|
|
1655
|
+
/***/ }),
|
|
1656
|
+
|
|
1657
|
+
/***/ "3df9":
|
|
1658
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1659
|
+
|
|
1660
|
+
"use strict";
|
|
1661
|
+
/* 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");
|
|
1662
|
+
/* 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__);
|
|
1663
|
+
/* unused harmony reexport * */
|
|
1664
|
+
|
|
1665
|
+
|
|
1652
1666
|
/***/ }),
|
|
1653
1667
|
|
|
1654
1668
|
/***/ "4010":
|
|
@@ -1827,6 +1841,17 @@ module.exports = require("core-js/modules/es.array.map.js");
|
|
|
1827
1841
|
|
|
1828
1842
|
// extracted by mini-css-extract-plugin
|
|
1829
1843
|
|
|
1844
|
+
/***/ }),
|
|
1845
|
+
|
|
1846
|
+
/***/ "4635":
|
|
1847
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1848
|
+
|
|
1849
|
+
"use strict";
|
|
1850
|
+
/* 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");
|
|
1851
|
+
/* 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__);
|
|
1852
|
+
/* unused harmony reexport * */
|
|
1853
|
+
|
|
1854
|
+
|
|
1830
1855
|
/***/ }),
|
|
1831
1856
|
|
|
1832
1857
|
/***/ "4897":
|
|
@@ -4539,6 +4564,17 @@ exports.default = {
|
|
|
4539
4564
|
};
|
|
4540
4565
|
exports.PopupManager = _popupManager2.default;
|
|
4541
4566
|
|
|
4567
|
+
/***/ }),
|
|
4568
|
+
|
|
4569
|
+
/***/ "55d7":
|
|
4570
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
4571
|
+
|
|
4572
|
+
"use strict";
|
|
4573
|
+
/* 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");
|
|
4574
|
+
/* 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__);
|
|
4575
|
+
/* unused harmony reexport * */
|
|
4576
|
+
|
|
4577
|
+
|
|
4542
4578
|
/***/ }),
|
|
4543
4579
|
|
|
4544
4580
|
/***/ "560b":
|
|
@@ -7403,6 +7439,13 @@ main.install = function (Vue) {
|
|
|
7403
7439
|
|
|
7404
7440
|
/***/ }),
|
|
7405
7441
|
|
|
7442
|
+
/***/ "7db6":
|
|
7443
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
7444
|
+
|
|
7445
|
+
// extracted by mini-css-extract-plugin
|
|
7446
|
+
|
|
7447
|
+
/***/ }),
|
|
7448
|
+
|
|
7406
7449
|
/***/ "7f4d":
|
|
7407
7450
|
/***/ (function(module, exports, __webpack_require__) {
|
|
7408
7451
|
|
|
@@ -8674,6 +8717,13 @@ module.exports = __webpack_require__("7f4d");
|
|
|
8674
8717
|
|
|
8675
8718
|
/***/ }),
|
|
8676
8719
|
|
|
8720
|
+
/***/ "896e":
|
|
8721
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
8722
|
+
|
|
8723
|
+
// extracted by mini-css-extract-plugin
|
|
8724
|
+
|
|
8725
|
+
/***/ }),
|
|
8726
|
+
|
|
8677
8727
|
/***/ "8bbc":
|
|
8678
8728
|
/***/ (function(module, exports, __webpack_require__) {
|
|
8679
8729
|
|
|
@@ -9004,24 +9054,6 @@ module.exports = require("core-js/modules/es.object.to-string.js");
|
|
|
9004
9054
|
|
|
9005
9055
|
/***/ }),
|
|
9006
9056
|
|
|
9007
|
-
/***/ "97da":
|
|
9008
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
9009
|
-
|
|
9010
|
-
"use strict";
|
|
9011
|
-
/* 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");
|
|
9012
|
-
/* 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__);
|
|
9013
|
-
/* unused harmony reexport * */
|
|
9014
|
-
|
|
9015
|
-
|
|
9016
|
-
/***/ }),
|
|
9017
|
-
|
|
9018
|
-
/***/ "9996":
|
|
9019
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
9020
|
-
|
|
9021
|
-
// extracted by mini-css-extract-plugin
|
|
9022
|
-
|
|
9023
|
-
/***/ }),
|
|
9024
|
-
|
|
9025
9057
|
/***/ "9b22":
|
|
9026
9058
|
/***/ (function(module, exports) {
|
|
9027
9059
|
|
|
@@ -10654,24 +10686,6 @@ exports.default = {
|
|
|
10654
10686
|
|
|
10655
10687
|
module.exports = require("core-js/modules/web.url.js");
|
|
10656
10688
|
|
|
10657
|
-
/***/ }),
|
|
10658
|
-
|
|
10659
|
-
/***/ "b9c9":
|
|
10660
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
10661
|
-
|
|
10662
|
-
// extracted by mini-css-extract-plugin
|
|
10663
|
-
|
|
10664
|
-
/***/ }),
|
|
10665
|
-
|
|
10666
|
-
/***/ "bbed":
|
|
10667
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
10668
|
-
|
|
10669
|
-
"use strict";
|
|
10670
|
-
/* 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");
|
|
10671
|
-
/* 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__);
|
|
10672
|
-
/* unused harmony reexport * */
|
|
10673
|
-
|
|
10674
|
-
|
|
10675
10689
|
/***/ }),
|
|
10676
10690
|
|
|
10677
10691
|
/***/ "be4f":
|
|
@@ -11174,21 +11188,17 @@ main.install = function (Vue) {
|
|
|
11174
11188
|
|
|
11175
11189
|
/***/ }),
|
|
11176
11190
|
|
|
11177
|
-
/***/ "
|
|
11178
|
-
/***/ (function(module,
|
|
11179
|
-
|
|
11180
|
-
"use strict";
|
|
11181
|
-
/* 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");
|
|
11182
|
-
/* 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__);
|
|
11183
|
-
/* unused harmony reexport * */
|
|
11191
|
+
/***/ "c8a6":
|
|
11192
|
+
/***/ (function(module, exports) {
|
|
11184
11193
|
|
|
11194
|
+
module.exports = require("core-js/modules/es.regexp.exec.js");
|
|
11185
11195
|
|
|
11186
11196
|
/***/ }),
|
|
11187
11197
|
|
|
11188
|
-
/***/ "
|
|
11198
|
+
/***/ "ccb0":
|
|
11189
11199
|
/***/ (function(module, exports) {
|
|
11190
11200
|
|
|
11191
|
-
module.exports = require("core-js/modules/es.
|
|
11201
|
+
module.exports = require("core-js/modules/es.array.concat.js");
|
|
11192
11202
|
|
|
11193
11203
|
/***/ }),
|
|
11194
11204
|
|
|
@@ -11261,6 +11271,24 @@ function isKorean(text) {
|
|
|
11261
11271
|
|
|
11262
11272
|
/***/ }),
|
|
11263
11273
|
|
|
11274
|
+
/***/ "d538":
|
|
11275
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
11276
|
+
|
|
11277
|
+
"use strict";
|
|
11278
|
+
/* 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");
|
|
11279
|
+
/* 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__);
|
|
11280
|
+
/* unused harmony reexport * */
|
|
11281
|
+
|
|
11282
|
+
|
|
11283
|
+
/***/ }),
|
|
11284
|
+
|
|
11285
|
+
/***/ "da6e":
|
|
11286
|
+
/***/ (function(module, exports) {
|
|
11287
|
+
|
|
11288
|
+
module.exports = require("core-js/modules/es.array.flat.js");
|
|
11289
|
+
|
|
11290
|
+
/***/ }),
|
|
11291
|
+
|
|
11264
11292
|
/***/ "dab3":
|
|
11265
11293
|
/***/ (function(module, exports) {
|
|
11266
11294
|
|
|
@@ -12670,13 +12698,6 @@ module.exports = require("core-js/modules/es.promise.js");
|
|
|
12670
12698
|
|
|
12671
12699
|
/***/ }),
|
|
12672
12700
|
|
|
12673
|
-
/***/ "ee47":
|
|
12674
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
12675
|
-
|
|
12676
|
-
// extracted by mini-css-extract-plugin
|
|
12677
|
-
|
|
12678
|
-
/***/ }),
|
|
12679
|
-
|
|
12680
12701
|
/***/ "eedf":
|
|
12681
12702
|
/***/ (function(module, exports, __webpack_require__) {
|
|
12682
12703
|
|
|
@@ -14718,12 +14739,12 @@ if (typeof window !== 'undefined') {
|
|
|
14718
14739
|
// Indicate to webpack that this file can be concatenated
|
|
14719
14740
|
/* harmony default export */ var setPublicPath = (null);
|
|
14720
14741
|
|
|
14721
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
14722
|
-
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
|
|
14742
|
+
// 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&
|
|
14743
|
+
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)}
|
|
14723
14744
|
var staticRenderFns = []
|
|
14724
14745
|
|
|
14725
14746
|
|
|
14726
|
-
// CONCATENATED MODULE: ./src/components/FlatmapVuer.vue?vue&type=template&id=
|
|
14747
|
+
// CONCATENATED MODULE: ./src/components/FlatmapVuer.vue?vue&type=template&id=032efe9d&scoped=true&
|
|
14727
14748
|
|
|
14728
14749
|
// EXTERNAL MODULE: external "core-js/modules/es.symbol.js"
|
|
14729
14750
|
var es_symbol_js_ = __webpack_require__("9b22");
|
|
@@ -14845,6 +14866,35 @@ function _createForOfIteratorHelper(o, allowArrayLike) {
|
|
|
14845
14866
|
}
|
|
14846
14867
|
};
|
|
14847
14868
|
}
|
|
14869
|
+
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js
|
|
14870
|
+
|
|
14871
|
+
function _arrayWithoutHoles(arr) {
|
|
14872
|
+
if (Array.isArray(arr)) return _arrayLikeToArray(arr);
|
|
14873
|
+
}
|
|
14874
|
+
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArray.js
|
|
14875
|
+
|
|
14876
|
+
|
|
14877
|
+
|
|
14878
|
+
|
|
14879
|
+
|
|
14880
|
+
|
|
14881
|
+
|
|
14882
|
+
|
|
14883
|
+
function _iterableToArray(iter) {
|
|
14884
|
+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
14885
|
+
}
|
|
14886
|
+
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js
|
|
14887
|
+
function _nonIterableSpread() {
|
|
14888
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
14889
|
+
}
|
|
14890
|
+
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js
|
|
14891
|
+
|
|
14892
|
+
|
|
14893
|
+
|
|
14894
|
+
|
|
14895
|
+
function _toConsumableArray(arr) {
|
|
14896
|
+
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
|
|
14897
|
+
}
|
|
14848
14898
|
// EXTERNAL MODULE: ./node_modules/element-ui/lib/theme-chalk/row.css
|
|
14849
14899
|
var row = __webpack_require__("7a0f");
|
|
14850
14900
|
|
|
@@ -14928,12 +14978,12 @@ var es_number_constructor_js_ = __webpack_require__("f989");
|
|
|
14928
14978
|
var external_vue_ = __webpack_require__("8bbf");
|
|
14929
14979
|
var external_vue_default = /*#__PURE__*/__webpack_require__.n(external_vue_);
|
|
14930
14980
|
|
|
14931
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
14932
|
-
var
|
|
14933
|
-
var
|
|
14981
|
+
// 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&
|
|
14982
|
+
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)}
|
|
14983
|
+
var Tooltipvue_type_template_id_1a81b242_scoped_true_staticRenderFns = []
|
|
14934
14984
|
|
|
14935
14985
|
|
|
14936
|
-
// CONCATENATED MODULE: ./src/components/Tooltip.vue?vue&type=template&id=
|
|
14986
|
+
// CONCATENATED MODULE: ./src/components/Tooltip.vue?vue&type=template&id=1a81b242&scoped=true&
|
|
14937
14987
|
|
|
14938
14988
|
// EXTERNAL MODULE: ./node_modules/element-ui/lib/theme-chalk/main.css
|
|
14939
14989
|
var main = __webpack_require__("de31");
|
|
@@ -14973,6 +15023,18 @@ var lib_button_default = /*#__PURE__*/__webpack_require__.n(lib_button);
|
|
|
14973
15023
|
// EXTERNAL MODULE: external "core-js/modules/es.string.replace.js"
|
|
14974
15024
|
var es_string_replace_js_ = __webpack_require__("6378");
|
|
14975
15025
|
|
|
15026
|
+
// EXTERNAL MODULE: external "core-js/modules/es.array.flat.js"
|
|
15027
|
+
var es_array_flat_js_ = __webpack_require__("da6e");
|
|
15028
|
+
|
|
15029
|
+
// EXTERNAL MODULE: external "core-js/modules/es.promise.js"
|
|
15030
|
+
var es_promise_js_ = __webpack_require__("ec71");
|
|
15031
|
+
|
|
15032
|
+
// EXTERNAL MODULE: external "core-js/modules/es.array.concat.js"
|
|
15033
|
+
var es_array_concat_js_ = __webpack_require__("ccb0");
|
|
15034
|
+
|
|
15035
|
+
// EXTERNAL MODULE: external "core-js/modules/es.array.filter.js"
|
|
15036
|
+
var es_array_filter_js_ = __webpack_require__("1a89");
|
|
15037
|
+
|
|
14976
15038
|
// EXTERNAL MODULE: ./node_modules/element-ui/lib/locale/lang/en.js
|
|
14977
15039
|
var en = __webpack_require__("b2d6");
|
|
14978
15040
|
var en_default = /*#__PURE__*/__webpack_require__.n(en);
|
|
@@ -14981,12 +15043,12 @@ var en_default = /*#__PURE__*/__webpack_require__.n(en);
|
|
|
14981
15043
|
var locale = __webpack_require__("4897");
|
|
14982
15044
|
var locale_default = /*#__PURE__*/__webpack_require__.n(locale);
|
|
14983
15045
|
|
|
14984
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
14985
|
-
var
|
|
14986
|
-
var
|
|
15046
|
+
// 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&
|
|
15047
|
+
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)])}
|
|
15048
|
+
var PubmedViewervue_type_template_id_1d12a6d3_scoped_true_staticRenderFns = []
|
|
14987
15049
|
|
|
14988
15050
|
|
|
14989
|
-
// CONCATENATED MODULE: ./src/components/PubmedViewer.vue?vue&type=template&id=
|
|
15051
|
+
// CONCATENATED MODULE: ./src/components/PubmedViewer.vue?vue&type=template&id=1d12a6d3&scoped=true&
|
|
14990
15052
|
|
|
14991
15053
|
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
|
|
14992
15054
|
function _arrayWithHoles(arr) {
|
|
@@ -15062,9 +15124,6 @@ var theme_chalk_link = __webpack_require__("fd71");
|
|
|
15062
15124
|
var lib_link = __webpack_require__("a447");
|
|
15063
15125
|
var lib_link_default = /*#__PURE__*/__webpack_require__.n(lib_link);
|
|
15064
15126
|
|
|
15065
|
-
// EXTERNAL MODULE: external "core-js/modules/es.promise.js"
|
|
15066
|
-
var es_promise_js_ = __webpack_require__("ec71");
|
|
15067
|
-
|
|
15068
15127
|
// EXTERNAL MODULE: external "core-js/modules/web.url.js"
|
|
15069
15128
|
var web_url_js_ = __webpack_require__("b94f");
|
|
15070
15129
|
|
|
@@ -15088,6 +15147,10 @@ var es_regexp_to_string_js_ = __webpack_require__("30df");
|
|
|
15088
15147
|
|
|
15089
15148
|
|
|
15090
15149
|
|
|
15150
|
+
|
|
15151
|
+
|
|
15152
|
+
|
|
15153
|
+
|
|
15091
15154
|
|
|
15092
15155
|
|
|
15093
15156
|
|
|
@@ -15124,31 +15187,33 @@ locale_default.a.use(en_default.a);
|
|
|
15124
15187
|
external_vue_default.a.use(lib_link_default.a);
|
|
15125
15188
|
external_vue_default.a.use(lib_carousel_default.a);
|
|
15126
15189
|
external_vue_default.a.use(lib_carousel_item_default.a);
|
|
15190
|
+
external_vue_default.a.use(lib_button_default.a);
|
|
15127
15191
|
/* harmony default export */ var PubmedViewervue_type_script_lang_js_ = ({
|
|
15128
15192
|
name: "Tooltip",
|
|
15129
15193
|
props: {
|
|
15130
|
-
|
|
15131
|
-
type:
|
|
15132
|
-
default:
|
|
15133
|
-
},
|
|
15134
|
-
|
|
15135
|
-
/**
|
|
15136
|
-
* Specify the endpoint of the flatmap server.
|
|
15137
|
-
*/
|
|
15138
|
-
flatmapAPI: {
|
|
15139
|
-
type: String,
|
|
15140
|
-
default: "https://mapcore-demo.org/flatmaps/"
|
|
15194
|
+
entry: {
|
|
15195
|
+
type: Object,
|
|
15196
|
+
default: function _default() {}
|
|
15141
15197
|
}
|
|
15142
15198
|
},
|
|
15143
15199
|
watch: {
|
|
15144
|
-
'featureId': function
|
|
15145
|
-
|
|
15146
|
-
|
|
15200
|
+
'entry.featureId': function entryFeatureId(val) {
|
|
15201
|
+
var _this = this;
|
|
15202
|
+
|
|
15203
|
+
this.flatmapQuery(val).then(function (pb) {
|
|
15204
|
+
return _this.pubmeds = pb;
|
|
15205
|
+
});
|
|
15206
|
+
},
|
|
15207
|
+
'entry.featureIds': {
|
|
15208
|
+
handler: function handler(ids) {
|
|
15209
|
+
this.flatmapQuery(ids);
|
|
15210
|
+
}
|
|
15147
15211
|
}
|
|
15148
15212
|
},
|
|
15149
|
-
|
|
15213
|
+
inject: ['flatmapAPI'],
|
|
15150
15214
|
data: function data() {
|
|
15151
15215
|
return {
|
|
15216
|
+
data: {},
|
|
15152
15217
|
pubmeds: [],
|
|
15153
15218
|
pubmedIds: [],
|
|
15154
15219
|
loading: {
|
|
@@ -15158,7 +15223,7 @@ external_vue_default.a.use(lib_carousel_item_default.a);
|
|
|
15158
15223
|
};
|
|
15159
15224
|
},
|
|
15160
15225
|
mounted: function mounted() {
|
|
15161
|
-
this.flatmapQuery(this.
|
|
15226
|
+
if (this.entry.featureIds) this.flatmapQuery(this.entry.featureIds);
|
|
15162
15227
|
},
|
|
15163
15228
|
methods: {
|
|
15164
15229
|
stripPMIDPrefix: function stripPMIDPrefix(pubmedId) {
|
|
@@ -15179,17 +15244,30 @@ external_vue_default.a.use(lib_carousel_item_default.a);
|
|
|
15179
15244
|
var split = bibliographyString.split('https');
|
|
15180
15245
|
return [split[0], 'https' + split[1]];
|
|
15181
15246
|
},
|
|
15182
|
-
|
|
15183
|
-
var
|
|
15247
|
+
buildPubmedSqlStatement: function buildPubmedSqlStatement(keastIds) {
|
|
15248
|
+
var sql = 'select distinct publication from publications where entity in (';
|
|
15249
|
+
|
|
15250
|
+
if (keastIds.length === 1) {
|
|
15251
|
+
sql += "'".concat(keastIds[0], "')");
|
|
15252
|
+
} else if (keastIds.length > 1) {
|
|
15253
|
+
for (var i in keastIds) {
|
|
15254
|
+
sql += "'".concat(keastIds[i], "'").concat(i >= keastIds.length - 1 ? ')' : ',', " ");
|
|
15255
|
+
}
|
|
15256
|
+
}
|
|
15257
|
+
|
|
15258
|
+
return sql;
|
|
15259
|
+
},
|
|
15260
|
+
flatmapQuery: function flatmapQuery(keastIds) {
|
|
15261
|
+
var _this2 = this;
|
|
15184
15262
|
|
|
15263
|
+
if (!keastIds || keastIds.length === 0) return;
|
|
15185
15264
|
this.pubmeds = [];
|
|
15186
|
-
this.loading.response = true;
|
|
15187
|
-
|
|
15265
|
+
this.loading.response = true; // fetch pubmed publications for the given ids
|
|
15266
|
+
|
|
15188
15267
|
var data = {
|
|
15189
|
-
sql:
|
|
15190
|
-
"params": [identifier]
|
|
15268
|
+
sql: this.buildPubmedSqlStatement(keastIds)
|
|
15191
15269
|
};
|
|
15192
|
-
fetch(
|
|
15270
|
+
fetch("".concat(this.flatmapAPI, "knowledge/query/"), {
|
|
15193
15271
|
method: 'POST',
|
|
15194
15272
|
headers: {
|
|
15195
15273
|
'Content-Type': 'application/json'
|
|
@@ -15198,18 +15276,19 @@ external_vue_default.a.use(lib_carousel_item_default.a);
|
|
|
15198
15276
|
}).then(function (response) {
|
|
15199
15277
|
return response.json();
|
|
15200
15278
|
}).then(function (data) {
|
|
15201
|
-
|
|
15202
|
-
|
|
15279
|
+
_this2.responseData = data;
|
|
15280
|
+
_this2.loading.response = false; // create links for each pubmedId
|
|
15281
|
+
|
|
15203
15282
|
data.values.forEach(function (identifier) {
|
|
15204
|
-
var ids =
|
|
15283
|
+
var ids = _this2.stripPMIDPrefix(identifier[0]);
|
|
15205
15284
|
|
|
15206
|
-
|
|
15207
|
-
var
|
|
15208
|
-
|
|
15209
|
-
html =
|
|
15210
|
-
link =
|
|
15285
|
+
_this2.titleFromPubmed(ids).then(function (bib) {
|
|
15286
|
+
var _this2$splitLink = _this2.splitLink(bib),
|
|
15287
|
+
_this2$splitLink2 = _slicedToArray(_this2$splitLink, 2),
|
|
15288
|
+
html = _this2$splitLink2[0],
|
|
15289
|
+
link = _this2$splitLink2[1];
|
|
15211
15290
|
|
|
15212
|
-
|
|
15291
|
+
_this2.pubmeds.push({
|
|
15213
15292
|
identifier: identifier[0],
|
|
15214
15293
|
html: html,
|
|
15215
15294
|
url: link
|
|
@@ -15217,8 +15296,8 @@ external_vue_default.a.use(lib_carousel_item_default.a);
|
|
|
15217
15296
|
});
|
|
15218
15297
|
});
|
|
15219
15298
|
|
|
15220
|
-
|
|
15221
|
-
return
|
|
15299
|
+
_this2.$emit('pubmedSearchUrl', _this2.pubmedSearchUrl(data.values.map(function (id) {
|
|
15300
|
+
return _this2.stripPMIDPrefix(id[0]);
|
|
15222
15301
|
})));
|
|
15223
15302
|
}).catch(function (error) {
|
|
15224
15303
|
console.error('Error:', error);
|
|
@@ -15234,8 +15313,8 @@ external_vue_default.a.use(lib_carousel_item_default.a);
|
|
|
15234
15313
|
});
|
|
15235
15314
|
// CONCATENATED MODULE: ./src/components/PubmedViewer.vue?vue&type=script&lang=js&
|
|
15236
15315
|
/* harmony default export */ var components_PubmedViewervue_type_script_lang_js_ = (PubmedViewervue_type_script_lang_js_);
|
|
15237
|
-
// EXTERNAL MODULE: ./src/components/PubmedViewer.vue?vue&type=style&index=0&id=
|
|
15238
|
-
var
|
|
15316
|
+
// EXTERNAL MODULE: ./src/components/PubmedViewer.vue?vue&type=style&index=0&id=1d12a6d3&scoped=true&lang=scss&
|
|
15317
|
+
var PubmedViewervue_type_style_index_0_id_1d12a6d3_scoped_true_lang_scss_ = __webpack_require__("55d7");
|
|
15239
15318
|
|
|
15240
15319
|
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
|
15241
15320
|
/* globals __VUE_SSR_CONTEXT__ */
|
|
@@ -15348,16 +15427,20 @@ function normalizeComponent (
|
|
|
15348
15427
|
|
|
15349
15428
|
var component = normalizeComponent(
|
|
15350
15429
|
components_PubmedViewervue_type_script_lang_js_,
|
|
15351
|
-
|
|
15352
|
-
|
|
15430
|
+
PubmedViewervue_type_template_id_1d12a6d3_scoped_true_render,
|
|
15431
|
+
PubmedViewervue_type_template_id_1d12a6d3_scoped_true_staticRenderFns,
|
|
15353
15432
|
false,
|
|
15354
15433
|
null,
|
|
15355
|
-
"
|
|
15434
|
+
"1d12a6d3",
|
|
15356
15435
|
null
|
|
15357
15436
|
|
|
15358
15437
|
)
|
|
15359
15438
|
|
|
15360
15439
|
/* harmony default export */ var PubmedViewer = (component.exports);
|
|
15440
|
+
// CONCATENATED MODULE: ./src/components/EventBus.js
|
|
15441
|
+
|
|
15442
|
+
var EventBus = new external_vue_default.a();
|
|
15443
|
+
/* harmony default export */ var components_EventBus = (EventBus);
|
|
15361
15444
|
// 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&
|
|
15362
15445
|
|
|
15363
15446
|
|
|
@@ -15376,6 +15459,38 @@ var component = normalizeComponent(
|
|
|
15376
15459
|
|
|
15377
15460
|
|
|
15378
15461
|
|
|
15462
|
+
|
|
15463
|
+
|
|
15464
|
+
|
|
15465
|
+
|
|
15466
|
+
|
|
15467
|
+
|
|
15468
|
+
|
|
15469
|
+
|
|
15470
|
+
|
|
15471
|
+
|
|
15472
|
+
|
|
15473
|
+
|
|
15474
|
+
|
|
15475
|
+
|
|
15476
|
+
|
|
15477
|
+
|
|
15478
|
+
//
|
|
15479
|
+
//
|
|
15480
|
+
//
|
|
15481
|
+
//
|
|
15482
|
+
//
|
|
15483
|
+
//
|
|
15484
|
+
//
|
|
15485
|
+
//
|
|
15486
|
+
//
|
|
15487
|
+
//
|
|
15488
|
+
//
|
|
15489
|
+
//
|
|
15490
|
+
//
|
|
15491
|
+
//
|
|
15492
|
+
//
|
|
15493
|
+
//
|
|
15379
15494
|
//
|
|
15380
15495
|
//
|
|
15381
15496
|
//
|
|
@@ -15423,7 +15538,9 @@ external_vue_default.a.use(lib_button_default.a);
|
|
|
15423
15538
|
external_vue_default.a.use(lib_container_default.a);
|
|
15424
15539
|
external_vue_default.a.use(lib_header_default.a);
|
|
15425
15540
|
external_vue_default.a.use(lib_icon_default.a);
|
|
15426
|
-
external_vue_default.a.use(lib_main_default.a);
|
|
15541
|
+
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
|
|
15542
|
+
|
|
15543
|
+
|
|
15427
15544
|
|
|
15428
15545
|
|
|
15429
15546
|
var _titleCase = function titleCase(str) {
|
|
@@ -15432,6 +15549,11 @@ var _titleCase = function titleCase(str) {
|
|
|
15432
15549
|
});
|
|
15433
15550
|
};
|
|
15434
15551
|
|
|
15552
|
+
var _capitalise = function capitalise(str) {
|
|
15553
|
+
if (str) return str.charAt(0).toUpperCase() + str.slice(1);
|
|
15554
|
+
return "";
|
|
15555
|
+
};
|
|
15556
|
+
|
|
15435
15557
|
/* harmony default export */ var Tooltipvue_type_script_lang_js_ = ({
|
|
15436
15558
|
components: {
|
|
15437
15559
|
PubmedViewer: PubmedViewer
|
|
@@ -15445,23 +15567,36 @@ var _titleCase = function titleCase(str) {
|
|
|
15445
15567
|
content: {
|
|
15446
15568
|
type: Object,
|
|
15447
15569
|
default: undefined
|
|
15448
|
-
},
|
|
15449
|
-
|
|
15450
|
-
/**
|
|
15451
|
-
* Specify the endpoint of the flatmap server.
|
|
15452
|
-
*/
|
|
15453
|
-
flatmapAPI: {
|
|
15454
|
-
type: String,
|
|
15455
|
-
default: "https://mapcore-demo.org/flatmaps/"
|
|
15456
15570
|
}
|
|
15457
15571
|
},
|
|
15458
15572
|
data: function data() {
|
|
15459
15573
|
return {
|
|
15460
15574
|
activeSpecies: undefined,
|
|
15461
15575
|
appendToBody: false,
|
|
15462
|
-
pubmedSearchUrl: ''
|
|
15576
|
+
pubmedSearchUrl: '',
|
|
15577
|
+
loading: false,
|
|
15578
|
+
axons: [],
|
|
15579
|
+
dendrites: [],
|
|
15580
|
+
components: [],
|
|
15581
|
+
axonsWithDatasets: [],
|
|
15582
|
+
dendritesWithDatasets: [],
|
|
15583
|
+
uberons: [{
|
|
15584
|
+
id: undefined,
|
|
15585
|
+
name: undefined
|
|
15586
|
+
}]
|
|
15463
15587
|
};
|
|
15464
15588
|
},
|
|
15589
|
+
inject: ['sparcAPI', 'flatmapAPI'],
|
|
15590
|
+
watch: {
|
|
15591
|
+
'content.featureIds': {
|
|
15592
|
+
handler: function handler() {
|
|
15593
|
+
this.pathwayQuery(this.content.featureIds);
|
|
15594
|
+
}
|
|
15595
|
+
}
|
|
15596
|
+
},
|
|
15597
|
+
mounted: function mounted() {
|
|
15598
|
+
this.getOrganCuries();
|
|
15599
|
+
},
|
|
15465
15600
|
methods: {
|
|
15466
15601
|
resourceSelected: function resourceSelected(action) {
|
|
15467
15602
|
this.$emit("resource-selected", action);
|
|
@@ -15469,21 +15604,190 @@ var _titleCase = function titleCase(str) {
|
|
|
15469
15604
|
titleCase: function titleCase(title) {
|
|
15470
15605
|
return _titleCase(title);
|
|
15471
15606
|
},
|
|
15607
|
+
capitalise: function capitalise(text) {
|
|
15608
|
+
return _capitalise(text);
|
|
15609
|
+
},
|
|
15472
15610
|
onClose: function onClose() {
|
|
15473
15611
|
this.$emit("onClose");
|
|
15474
15612
|
},
|
|
15475
15613
|
openUrl: function openUrl(url) {
|
|
15476
15614
|
window.open(url, '_blank');
|
|
15477
15615
|
},
|
|
15616
|
+
openAxons: function openAxons() {
|
|
15617
|
+
components_EventBus.$emit('onActionClick', {
|
|
15618
|
+
type: 'Facets',
|
|
15619
|
+
labels: this.axonsWithDatasets.map(function (a) {
|
|
15620
|
+
return a.name;
|
|
15621
|
+
})
|
|
15622
|
+
});
|
|
15623
|
+
},
|
|
15624
|
+
openDendrites: function openDendrites() {
|
|
15625
|
+
components_EventBus.$emit('onActionClick', {
|
|
15626
|
+
type: 'Facets',
|
|
15627
|
+
labels: this.dendritesWithDatasets.map(function (a) {
|
|
15628
|
+
return a.name;
|
|
15629
|
+
})
|
|
15630
|
+
});
|
|
15631
|
+
},
|
|
15478
15632
|
pubmedSearchUrlUpdate: function pubmedSearchUrlUpdate(val) {
|
|
15479
15633
|
this.pubmedSearchUrl = val;
|
|
15634
|
+
},
|
|
15635
|
+
findComponents: function findComponents(connectivity) {
|
|
15636
|
+
var dnodes = connectivity.connectivity.flat(); // get nodes from edgelist
|
|
15637
|
+
|
|
15638
|
+
var nodes = _toConsumableArray(new Set(dnodes)); // remove duplicates
|
|
15639
|
+
|
|
15640
|
+
|
|
15641
|
+
var found = [];
|
|
15642
|
+
var terminal = false;
|
|
15643
|
+
nodes.forEach(function (node) {
|
|
15644
|
+
var n = node.flat(); // Find all terms on the node
|
|
15645
|
+
|
|
15646
|
+
terminal = false; // Check if the node is an axon or dendrite
|
|
15647
|
+
|
|
15648
|
+
n.forEach(function (s) {
|
|
15649
|
+
if (connectivity.axons.includes(s)) {
|
|
15650
|
+
terminal = true;
|
|
15651
|
+
}
|
|
15652
|
+
|
|
15653
|
+
if (connectivity.dendrites.includes(s)) {
|
|
15654
|
+
terminal = true;
|
|
15655
|
+
}
|
|
15656
|
+
});
|
|
15657
|
+
|
|
15658
|
+
if (!terminal) {
|
|
15659
|
+
found.push(node);
|
|
15660
|
+
}
|
|
15661
|
+
}); // remove duplicates
|
|
15662
|
+
|
|
15663
|
+
var foundUnique = _toConsumableArray(new Set(found.map(function (n) {
|
|
15664
|
+
return n[0];
|
|
15665
|
+
})));
|
|
15666
|
+
|
|
15667
|
+
return foundUnique;
|
|
15668
|
+
},
|
|
15669
|
+
getOrganCuries: function getOrganCuries() {
|
|
15670
|
+
var _this = this;
|
|
15671
|
+
|
|
15672
|
+
fetch("".concat(this.sparcAPI, "get-organ-curies/")).then(function (response) {
|
|
15673
|
+
return response.json();
|
|
15674
|
+
}).then(function (data) {
|
|
15675
|
+
_this.uberons = data.uberon.array;
|
|
15676
|
+
});
|
|
15677
|
+
},
|
|
15678
|
+
buildConnectivitySqlStatement: function buildConnectivitySqlStatement(keastIds) {
|
|
15679
|
+
var sql = 'select knowledge from knowledge where entity in (';
|
|
15680
|
+
|
|
15681
|
+
if (keastIds.length === 1) {
|
|
15682
|
+
sql += "'".concat(keastIds[0], "')");
|
|
15683
|
+
} else if (keastIds.length > 1) {
|
|
15684
|
+
for (var i in keastIds) {
|
|
15685
|
+
sql += "'".concat(keastIds[i], "'").concat(i >= keastIds.length - 1 ? ')' : ',', " ");
|
|
15686
|
+
}
|
|
15687
|
+
}
|
|
15688
|
+
|
|
15689
|
+
return sql;
|
|
15690
|
+
},
|
|
15691
|
+
buildLabelSqlStatement: function buildLabelSqlStatement(uberons) {
|
|
15692
|
+
var sql = 'select entity, label from labels where entity in (';
|
|
15693
|
+
|
|
15694
|
+
if (uberons.length === 1) {
|
|
15695
|
+
sql += "'".concat(uberons[0], "')");
|
|
15696
|
+
} else if (uberons.length > 1) {
|
|
15697
|
+
for (var i in uberons) {
|
|
15698
|
+
sql += "'".concat(uberons[i], "'").concat(i >= uberons.length - 1 ? ')' : ',', " ");
|
|
15699
|
+
}
|
|
15700
|
+
}
|
|
15701
|
+
|
|
15702
|
+
return sql;
|
|
15703
|
+
},
|
|
15704
|
+
createLabelLookup: function createLabelLookup(uberons) {
|
|
15705
|
+
var _this2 = this;
|
|
15706
|
+
|
|
15707
|
+
return new Promise(function (resolve) {
|
|
15708
|
+
var uberonMap = {};
|
|
15709
|
+
var data = {
|
|
15710
|
+
sql: _this2.buildLabelSqlStatement(uberons)
|
|
15711
|
+
};
|
|
15712
|
+
fetch("".concat(_this2.flatmapAPI, "knowledge/query/"), {
|
|
15713
|
+
method: 'POST',
|
|
15714
|
+
headers: {
|
|
15715
|
+
'Content-Type': 'application/json'
|
|
15716
|
+
},
|
|
15717
|
+
body: JSON.stringify(data)
|
|
15718
|
+
}).then(function (response) {
|
|
15719
|
+
return response.json();
|
|
15720
|
+
}).then(function (payload) {
|
|
15721
|
+
var entity = payload.keys.indexOf("entity");
|
|
15722
|
+
var label = payload.keys.indexOf("label");
|
|
15723
|
+
|
|
15724
|
+
if (entity > -1 && label > -1) {
|
|
15725
|
+
payload.values.forEach(function (pair) {
|
|
15726
|
+
uberonMap[pair[entity]] = pair[label];
|
|
15727
|
+
});
|
|
15728
|
+
}
|
|
15729
|
+
|
|
15730
|
+
resolve(uberonMap);
|
|
15731
|
+
});
|
|
15732
|
+
});
|
|
15733
|
+
},
|
|
15734
|
+
pathwayQuery: function pathwayQuery(keastIds) {
|
|
15735
|
+
var _this3 = this;
|
|
15736
|
+
|
|
15737
|
+
this.axons = [];
|
|
15738
|
+
this.dendrites = [];
|
|
15739
|
+
this.components = [];
|
|
15740
|
+
this.loading = true;
|
|
15741
|
+
if (!keastIds || keastIds.length == 0) return;
|
|
15742
|
+
var data = {
|
|
15743
|
+
sql: this.buildConnectivitySqlStatement(keastIds)
|
|
15744
|
+
};
|
|
15745
|
+
fetch("".concat(this.flatmapAPI, "knowledge/query/"), {
|
|
15746
|
+
method: 'POST',
|
|
15747
|
+
headers: {
|
|
15748
|
+
'Content-Type': 'application/json'
|
|
15749
|
+
},
|
|
15750
|
+
body: JSON.stringify(data)
|
|
15751
|
+
}).then(function (response) {
|
|
15752
|
+
return response.json();
|
|
15753
|
+
}).then(function (data) {
|
|
15754
|
+
var connectivity = JSON.parse(data.values[0][0]);
|
|
15755
|
+
|
|
15756
|
+
var components = _this3.findComponents(connectivity); // Create list of ids to get labels for
|
|
15757
|
+
|
|
15758
|
+
|
|
15759
|
+
var conIds = connectivity.axons.concat(connectivity.dendrites.concat(components));
|
|
15760
|
+
|
|
15761
|
+
_this3.createLabelLookup(conIds).then(function (lookUp) {
|
|
15762
|
+
_this3.axons = connectivity.axons.map(function (a) {
|
|
15763
|
+
return lookUp[a];
|
|
15764
|
+
});
|
|
15765
|
+
_this3.dendrites = connectivity.dendrites.map(function (d) {
|
|
15766
|
+
return lookUp[d];
|
|
15767
|
+
});
|
|
15768
|
+
_this3.components = components.map(function (c) {
|
|
15769
|
+
return lookUp[c];
|
|
15770
|
+
});
|
|
15771
|
+
}); // Filter for the anatomy which is annotated on datasets
|
|
15772
|
+
|
|
15773
|
+
|
|
15774
|
+
_this3.axonsWithDatasets = _this3.uberons.filter(function (ub) {
|
|
15775
|
+
return connectivity.axons.indexOf(ub.id) !== -1;
|
|
15776
|
+
});
|
|
15777
|
+
_this3.dendritesWithDatasets = _this3.uberons.filter(function (ub) {
|
|
15778
|
+
return connectivity.dendrites.indexOf(ub.id) !== -1;
|
|
15779
|
+
});
|
|
15780
|
+
_this3.loading = false;
|
|
15781
|
+
}).catch(function (error) {
|
|
15782
|
+
console.error('Error:', error);
|
|
15783
|
+
});
|
|
15480
15784
|
}
|
|
15481
15785
|
}
|
|
15482
15786
|
});
|
|
15483
15787
|
// CONCATENATED MODULE: ./src/components/Tooltip.vue?vue&type=script&lang=js&
|
|
15484
15788
|
/* harmony default export */ var components_Tooltipvue_type_script_lang_js_ = (Tooltipvue_type_script_lang_js_);
|
|
15485
|
-
// EXTERNAL MODULE: ./src/components/Tooltip.vue?vue&type=style&index=0&id=
|
|
15486
|
-
var
|
|
15789
|
+
// EXTERNAL MODULE: ./src/components/Tooltip.vue?vue&type=style&index=0&id=1a81b242&scoped=true&lang=scss&
|
|
15790
|
+
var Tooltipvue_type_style_index_0_id_1a81b242_scoped_true_lang_scss_ = __webpack_require__("3df9");
|
|
15487
15791
|
|
|
15488
15792
|
// CONCATENATED MODULE: ./src/components/Tooltip.vue
|
|
15489
15793
|
|
|
@@ -15496,11 +15800,11 @@ var Tooltipvue_type_style_index_0_id_4802b201_scoped_true_lang_scss_ = __webpack
|
|
|
15496
15800
|
|
|
15497
15801
|
var Tooltip_component = normalizeComponent(
|
|
15498
15802
|
components_Tooltipvue_type_script_lang_js_,
|
|
15499
|
-
|
|
15500
|
-
|
|
15803
|
+
Tooltipvue_type_template_id_1a81b242_scoped_true_render,
|
|
15804
|
+
Tooltipvue_type_template_id_1a81b242_scoped_true_staticRenderFns,
|
|
15501
15805
|
false,
|
|
15502
15806
|
null,
|
|
15503
|
-
"
|
|
15807
|
+
"1a81b242",
|
|
15504
15808
|
null
|
|
15505
15809
|
|
|
15506
15810
|
)
|
|
@@ -15548,7 +15852,7 @@ var svg_sprite_ = __webpack_require__("429c");
|
|
|
15548
15852
|
|
|
15549
15853
|
|
|
15550
15854
|
|
|
15551
|
-
|
|
15855
|
+
|
|
15552
15856
|
//
|
|
15553
15857
|
//
|
|
15554
15858
|
//
|
|
@@ -15929,7 +16233,7 @@ var mapResize = function mapResize(map) {
|
|
|
15929
16233
|
eventType: eventType
|
|
15930
16234
|
}; // Disable the nueron pop up for now.
|
|
15931
16235
|
|
|
15932
|
-
if (data && data.type !== "marker") _this.checkAndCreatePopups(
|
|
16236
|
+
if (data && data.type !== "marker") _this.checkAndCreatePopups(payload);
|
|
15933
16237
|
|
|
15934
16238
|
_this.$emit("resource-selected", payload);
|
|
15935
16239
|
} else {
|
|
@@ -15970,16 +16274,32 @@ var mapResize = function mapResize(map) {
|
|
|
15970
16274
|
actions: []
|
|
15971
16275
|
};
|
|
15972
16276
|
var foundAnnotations = false;
|
|
15973
|
-
this.tooltipVisible = false; //
|
|
16277
|
+
this.tooltipVisible = false; // nerve cuff check
|
|
16278
|
+
|
|
16279
|
+
if (data.feature.nodeId) {
|
|
16280
|
+
var paths = this.mapImp.nodePathModels(data.feature.nodeId);
|
|
16281
|
+
|
|
16282
|
+
if (paths.size > 0) {
|
|
16283
|
+
foundAnnotations = true;
|
|
16284
|
+
this.tooltipVisible = true;
|
|
16285
|
+
this.tooltipContent = content;
|
|
16286
|
+
this.tooltipContent.uberon = feature;
|
|
16287
|
+
this.tooltipContent.title = data.label;
|
|
16288
|
+
this.tooltipContent.featureIds = _toConsumableArray(paths);
|
|
16289
|
+
}
|
|
16290
|
+
|
|
16291
|
+
return true;
|
|
16292
|
+
} // neural data check
|
|
16293
|
+
|
|
15974
16294
|
|
|
15975
16295
|
if (feature) {
|
|
15976
|
-
if (feature.includes(
|
|
16296
|
+
if (feature.includes('ilxtr:neuron')) {
|
|
15977
16297
|
foundAnnotations = true;
|
|
15978
16298
|
this.tooltipVisible = true;
|
|
15979
16299
|
this.tooltipContent = content;
|
|
15980
16300
|
this.tooltipContent.uberon = feature;
|
|
15981
16301
|
this.tooltipContent.title = data.label;
|
|
15982
|
-
this.tooltipContent.
|
|
16302
|
+
this.tooltipContent.featureIds = [feature];
|
|
15983
16303
|
this.tooltipContent.actions.push({
|
|
15984
16304
|
title: "Search for dataset",
|
|
15985
16305
|
label: "Neuron Datasets",
|
|
@@ -16181,11 +16501,18 @@ var mapResize = function mapResize(map) {
|
|
|
16181
16501
|
if (this.mapImp) {
|
|
16182
16502
|
if (term === undefined || term === "") {
|
|
16183
16503
|
this.mapImp.clearSearchResults();
|
|
16504
|
+
return true;
|
|
16184
16505
|
} else {
|
|
16185
16506
|
var searchResults = this.mapImp.search(term);
|
|
16186
|
-
|
|
16507
|
+
|
|
16508
|
+
if (searchResults && searchResults.__featureIds.length > 0) {
|
|
16509
|
+
this.mapImp.showSearchResults(searchResults);
|
|
16510
|
+
return true;
|
|
16511
|
+
} else this.mapImp.clearSearchResults();
|
|
16187
16512
|
}
|
|
16188
16513
|
}
|
|
16514
|
+
|
|
16515
|
+
return false;
|
|
16189
16516
|
}
|
|
16190
16517
|
},
|
|
16191
16518
|
props: {
|
|
@@ -16245,8 +16572,18 @@ var mapResize = function mapResize(map) {
|
|
|
16245
16572
|
flatmapAPI: {
|
|
16246
16573
|
type: String,
|
|
16247
16574
|
default: "https://mapcore-demo.org/flatmaps/"
|
|
16575
|
+
},
|
|
16576
|
+
sparcAPI: {
|
|
16577
|
+
type: String,
|
|
16578
|
+
default: "https://api.sparc.science/"
|
|
16248
16579
|
}
|
|
16249
16580
|
},
|
|
16581
|
+
provide: function provide() {
|
|
16582
|
+
return {
|
|
16583
|
+
sparcAPI: this.sparcAPI,
|
|
16584
|
+
flatmapAPI: this.flatmapAPI
|
|
16585
|
+
};
|
|
16586
|
+
},
|
|
16250
16587
|
data: function data() {
|
|
16251
16588
|
return {
|
|
16252
16589
|
checkedItems: [],
|
|
@@ -16274,7 +16611,9 @@ var mapResize = function mapResize(map) {
|
|
|
16274
16611
|
loading: false,
|
|
16275
16612
|
flatmapMarker: flatmap_marker,
|
|
16276
16613
|
drawerOpen: true,
|
|
16277
|
-
tooltipContent: {
|
|
16614
|
+
tooltipContent: {
|
|
16615
|
+
featureIds: []
|
|
16616
|
+
},
|
|
16278
16617
|
colourRadio: true,
|
|
16279
16618
|
outlinesRadio: true
|
|
16280
16619
|
};
|
|
@@ -16303,8 +16642,8 @@ var mapResize = function mapResize(map) {
|
|
|
16303
16642
|
});
|
|
16304
16643
|
// CONCATENATED MODULE: ./src/components/FlatmapVuer.vue?vue&type=script&lang=js&
|
|
16305
16644
|
/* harmony default export */ var components_FlatmapVuervue_type_script_lang_js_ = (FlatmapVuervue_type_script_lang_js_);
|
|
16306
|
-
// EXTERNAL MODULE: ./src/components/FlatmapVuer.vue?vue&type=style&index=0&id=
|
|
16307
|
-
var
|
|
16645
|
+
// EXTERNAL MODULE: ./src/components/FlatmapVuer.vue?vue&type=style&index=0&id=032efe9d&scoped=true&lang=scss&
|
|
16646
|
+
var FlatmapVuervue_type_style_index_0_id_032efe9d_scoped_true_lang_scss_ = __webpack_require__("d538");
|
|
16308
16647
|
|
|
16309
16648
|
// CONCATENATED MODULE: ./src/components/FlatmapVuer.vue
|
|
16310
16649
|
|
|
@@ -16321,18 +16660,18 @@ var FlatmapVuer_component = normalizeComponent(
|
|
|
16321
16660
|
staticRenderFns,
|
|
16322
16661
|
false,
|
|
16323
16662
|
null,
|
|
16324
|
-
"
|
|
16663
|
+
"032efe9d",
|
|
16325
16664
|
null
|
|
16326
16665
|
|
|
16327
16666
|
)
|
|
16328
16667
|
|
|
16329
16668
|
/* harmony default export */ var FlatmapVuer = (FlatmapVuer_component.exports);
|
|
16330
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
16331
|
-
var
|
|
16332
|
-
var
|
|
16669
|
+
// 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&
|
|
16670
|
+
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)}
|
|
16671
|
+
var MultiFlatmapVuervue_type_template_id_f20f0c88_scoped_true_staticRenderFns = []
|
|
16333
16672
|
|
|
16334
16673
|
|
|
16335
|
-
// CONCATENATED MODULE: ./src/components/MultiFlatmapVuer.vue?vue&type=template&id=
|
|
16674
|
+
// CONCATENATED MODULE: ./src/components/MultiFlatmapVuer.vue?vue&type=template&id=f20f0c88&scoped=true&
|
|
16336
16675
|
|
|
16337
16676
|
// EXTERNAL MODULE: ./node_modules/element-ui/lib/theme-chalk/popover.css
|
|
16338
16677
|
var popover = __webpack_require__("06f1");
|
|
@@ -16432,12 +16771,14 @@ var es_object_keys_js_ = __webpack_require__("ea64");
|
|
|
16432
16771
|
//
|
|
16433
16772
|
//
|
|
16434
16773
|
//
|
|
16774
|
+
//
|
|
16435
16775
|
|
|
16436
16776
|
/* eslint-disable no-alert, no-console */
|
|
16437
16777
|
|
|
16438
16778
|
|
|
16439
16779
|
|
|
16440
16780
|
|
|
16781
|
+
|
|
16441
16782
|
locale_default.a.use(en_default.a);
|
|
16442
16783
|
external_vue_default.a.use(lib_col_default.a);
|
|
16443
16784
|
external_vue_default.a.use(lib_row_default.a);
|
|
@@ -16450,35 +16791,40 @@ external_vue_default.a.use(lib_popover_default.a);
|
|
|
16450
16791
|
FlatmapVuer: FlatmapVuer
|
|
16451
16792
|
},
|
|
16452
16793
|
mounted: function mounted() {
|
|
16794
|
+
var _this = this;
|
|
16795
|
+
|
|
16453
16796
|
this.initialise();
|
|
16797
|
+
components_EventBus.$on('onActionClick', function (action) {
|
|
16798
|
+
_this.FlatmapSelected(action);
|
|
16799
|
+
});
|
|
16454
16800
|
},
|
|
16455
16801
|
methods: {
|
|
16456
16802
|
initialise: function initialise() {
|
|
16457
|
-
var
|
|
16803
|
+
var _this2 = this;
|
|
16458
16804
|
|
|
16459
16805
|
return new Promise(function (resolve) {
|
|
16460
|
-
fetch(
|
|
16806
|
+
fetch(_this2.flatmapAPI).then(function (response) {
|
|
16461
16807
|
return response.json();
|
|
16462
16808
|
}).then(function (data) {
|
|
16463
|
-
|
|
16464
|
-
Object.keys(
|
|
16809
|
+
_this2.speciesLis = {};
|
|
16810
|
+
Object.keys(_this2.availableSpecies).forEach(function (key) {
|
|
16465
16811
|
for (var i = 0; i < data.length; i++) {
|
|
16466
|
-
if (data[i].
|
|
16467
|
-
|
|
16812
|
+
if (data[i].taxon === _this2.availableSpecies[key].taxo) {
|
|
16813
|
+
_this2.speciesList[key] = _this2.availableSpecies[key];
|
|
16468
16814
|
break;
|
|
16469
16815
|
}
|
|
16470
16816
|
}
|
|
16471
16817
|
});
|
|
16472
16818
|
|
|
16473
|
-
if (!
|
|
16474
|
-
if (
|
|
16475
|
-
|
|
16819
|
+
if (!_this2.state) {
|
|
16820
|
+
if (_this2.initial && _this2.speciesList[_this2.initial] !== undefined) {
|
|
16821
|
+
_this2.activeSpecies = _this2.initial;
|
|
16476
16822
|
} else {
|
|
16477
|
-
|
|
16823
|
+
_this2.activeSpecies = Object.keys(_this2.speciesList)[0];
|
|
16478
16824
|
}
|
|
16479
16825
|
|
|
16480
16826
|
external_vue_default.a.nextTick(function () {
|
|
16481
|
-
if (
|
|
16827
|
+
if (_this2.$refs[_this2.activeSpecies]) _this2.$refs[_this2.activeSpecies][0].createFlatmap();
|
|
16482
16828
|
});
|
|
16483
16829
|
}
|
|
16484
16830
|
|
|
@@ -16544,23 +16890,23 @@ external_vue_default.a.use(lib_popover_default.a);
|
|
|
16544
16890
|
* @public
|
|
16545
16891
|
*/
|
|
16546
16892
|
setState: function setState(state) {
|
|
16547
|
-
var
|
|
16893
|
+
var _this3 = this;
|
|
16548
16894
|
|
|
16549
16895
|
if (state) {
|
|
16550
16896
|
this.initialise().then(function () {
|
|
16551
|
-
if (state.species && state.species !==
|
|
16552
|
-
|
|
16897
|
+
if (state.species && state.species !== _this3.activeSpecies) {
|
|
16898
|
+
_this3.activeSpecies = state.species;
|
|
16553
16899
|
|
|
16554
16900
|
if (state.state) {
|
|
16555
16901
|
//Wait for next tick when the refs are ready for rendering
|
|
16556
|
-
|
|
16557
|
-
|
|
16902
|
+
_this3.$nextTick(function () {
|
|
16903
|
+
_this3.$refs[_this3.activeSpecies][0].createFlatmap(state.state);
|
|
16558
16904
|
|
|
16559
|
-
|
|
16905
|
+
_this3.$emit('flatmapChanged', _this3.activeSpecies);
|
|
16560
16906
|
});
|
|
16561
16907
|
}
|
|
16562
16908
|
} else if (state.state) {
|
|
16563
|
-
var map =
|
|
16909
|
+
var map = _this3.getCurrentFlatmap();
|
|
16564
16910
|
|
|
16565
16911
|
map.setState(state.state);
|
|
16566
16912
|
}
|
|
@@ -16633,6 +16979,10 @@ external_vue_default.a.use(lib_popover_default.a);
|
|
|
16633
16979
|
flatmapAPI: {
|
|
16634
16980
|
type: String,
|
|
16635
16981
|
default: "https://mapcore-demo.org/flatmaps/"
|
|
16982
|
+
},
|
|
16983
|
+
sparcAPI: {
|
|
16984
|
+
type: String,
|
|
16985
|
+
default: "https://api.sparc.science/"
|
|
16636
16986
|
}
|
|
16637
16987
|
},
|
|
16638
16988
|
data: function data() {
|
|
@@ -16654,8 +17004,8 @@ external_vue_default.a.use(lib_popover_default.a);
|
|
|
16654
17004
|
});
|
|
16655
17005
|
// CONCATENATED MODULE: ./src/components/MultiFlatmapVuer.vue?vue&type=script&lang=js&
|
|
16656
17006
|
/* harmony default export */ var components_MultiFlatmapVuervue_type_script_lang_js_ = (MultiFlatmapVuervue_type_script_lang_js_);
|
|
16657
|
-
// EXTERNAL MODULE: ./src/components/MultiFlatmapVuer.vue?vue&type=style&index=0&id=
|
|
16658
|
-
var
|
|
17007
|
+
// EXTERNAL MODULE: ./src/components/MultiFlatmapVuer.vue?vue&type=style&index=0&id=f20f0c88&scoped=true&lang=scss&
|
|
17008
|
+
var MultiFlatmapVuervue_type_style_index_0_id_f20f0c88_scoped_true_lang_scss_ = __webpack_require__("4635");
|
|
16659
17009
|
|
|
16660
17010
|
// CONCATENATED MODULE: ./src/components/MultiFlatmapVuer.vue
|
|
16661
17011
|
|
|
@@ -16668,11 +17018,11 @@ var MultiFlatmapVuervue_type_style_index_0_id_01b30450_scoped_true_lang_scss_ =
|
|
|
16668
17018
|
|
|
16669
17019
|
var MultiFlatmapVuer_component = normalizeComponent(
|
|
16670
17020
|
components_MultiFlatmapVuervue_type_script_lang_js_,
|
|
16671
|
-
|
|
16672
|
-
|
|
17021
|
+
MultiFlatmapVuervue_type_template_id_f20f0c88_scoped_true_render,
|
|
17022
|
+
MultiFlatmapVuervue_type_template_id_f20f0c88_scoped_true_staticRenderFns,
|
|
16673
17023
|
false,
|
|
16674
17024
|
null,
|
|
16675
|
-
"
|
|
17025
|
+
"f20f0c88",
|
|
16676
17026
|
null
|
|
16677
17027
|
|
|
16678
17028
|
)
|