@abi-software/flatmapvuer 0.2.5 → 0.3.0-beta-0
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 +504 -161
- package/dist/flatmapvuer.common.js.map +1 -1
- package/dist/flatmapvuer.css +1 -1
- package/dist/flatmapvuer.umd.js +504 -161
- 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 +187 -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
|
|
|
@@ -887,6 +901,13 @@ exports.default = {
|
|
|
887
901
|
|
|
888
902
|
/***/ }),
|
|
889
903
|
|
|
904
|
+
/***/ "2e33":
|
|
905
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
906
|
+
|
|
907
|
+
// extracted by mini-css-extract-plugin
|
|
908
|
+
|
|
909
|
+
/***/ }),
|
|
910
|
+
|
|
890
911
|
/***/ "2ff9":
|
|
891
912
|
/***/ (function(module, exports) {
|
|
892
913
|
|
|
@@ -1340,18 +1361,7 @@ module.exports = require("core-js/modules/es.regexp.to-string.js");
|
|
|
1340
1361
|
|
|
1341
1362
|
/***/ }),
|
|
1342
1363
|
|
|
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":
|
|
1364
|
+
/***/ "35e3":
|
|
1355
1365
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1356
1366
|
|
|
1357
1367
|
// extracted by mini-css-extract-plugin
|
|
@@ -1827,6 +1837,17 @@ module.exports = require("core-js/modules/es.array.map.js");
|
|
|
1827
1837
|
|
|
1828
1838
|
// extracted by mini-css-extract-plugin
|
|
1829
1839
|
|
|
1840
|
+
/***/ }),
|
|
1841
|
+
|
|
1842
|
+
/***/ "4635":
|
|
1843
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1844
|
+
|
|
1845
|
+
"use strict";
|
|
1846
|
+
/* 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");
|
|
1847
|
+
/* 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__);
|
|
1848
|
+
/* unused harmony reexport * */
|
|
1849
|
+
|
|
1850
|
+
|
|
1830
1851
|
/***/ }),
|
|
1831
1852
|
|
|
1832
1853
|
/***/ "4897":
|
|
@@ -4539,6 +4560,17 @@ exports.default = {
|
|
|
4539
4560
|
};
|
|
4540
4561
|
exports.PopupManager = _popupManager2.default;
|
|
4541
4562
|
|
|
4563
|
+
/***/ }),
|
|
4564
|
+
|
|
4565
|
+
/***/ "55d7":
|
|
4566
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
4567
|
+
|
|
4568
|
+
"use strict";
|
|
4569
|
+
/* 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");
|
|
4570
|
+
/* 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__);
|
|
4571
|
+
/* unused harmony reexport * */
|
|
4572
|
+
|
|
4573
|
+
|
|
4542
4574
|
/***/ }),
|
|
4543
4575
|
|
|
4544
4576
|
/***/ "560b":
|
|
@@ -8674,6 +8706,13 @@ module.exports = __webpack_require__("7f4d");
|
|
|
8674
8706
|
|
|
8675
8707
|
/***/ }),
|
|
8676
8708
|
|
|
8709
|
+
/***/ "896e":
|
|
8710
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
8711
|
+
|
|
8712
|
+
// extracted by mini-css-extract-plugin
|
|
8713
|
+
|
|
8714
|
+
/***/ }),
|
|
8715
|
+
|
|
8677
8716
|
/***/ "8bbc":
|
|
8678
8717
|
/***/ (function(module, exports, __webpack_require__) {
|
|
8679
8718
|
|
|
@@ -9004,24 +9043,6 @@ module.exports = require("core-js/modules/es.object.to-string.js");
|
|
|
9004
9043
|
|
|
9005
9044
|
/***/ }),
|
|
9006
9045
|
|
|
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
9046
|
/***/ "9b22":
|
|
9026
9047
|
/***/ (function(module, exports) {
|
|
9027
9048
|
|
|
@@ -10656,19 +10677,12 @@ module.exports = require("core-js/modules/web.url.js");
|
|
|
10656
10677
|
|
|
10657
10678
|
/***/ }),
|
|
10658
10679
|
|
|
10659
|
-
/***/ "
|
|
10660
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
10661
|
-
|
|
10662
|
-
// extracted by mini-css-extract-plugin
|
|
10663
|
-
|
|
10664
|
-
/***/ }),
|
|
10665
|
-
|
|
10666
|
-
/***/ "bbed":
|
|
10680
|
+
/***/ "bdbe":
|
|
10667
10681
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
10668
10682
|
|
|
10669
10683
|
"use strict";
|
|
10670
|
-
/* harmony import */ var
|
|
10671
|
-
/* harmony import */ var
|
|
10684
|
+
/* 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_5ca16bab_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("2e33");
|
|
10685
|
+
/* 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_5ca16bab_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_5ca16bab_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0__);
|
|
10672
10686
|
/* unused harmony reexport * */
|
|
10673
10687
|
|
|
10674
10688
|
|
|
@@ -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":"9cdb1272-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":"9cdb1272-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=5ca16bab&scoped=true&
|
|
14982
|
+
var Tooltipvue_type_template_id_5ca16bab_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_5ca16bab_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=5ca16bab&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":"9cdb1272-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 (';
|
|
15184
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;
|
|
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,10 @@ var _titleCase = function titleCase(str) {
|
|
|
15432
15549
|
});
|
|
15433
15550
|
};
|
|
15434
15551
|
|
|
15552
|
+
var _capitalise = function capitalise(str) {
|
|
15553
|
+
return str.charAt(0).toUpperCase() + str.slice(1);
|
|
15554
|
+
};
|
|
15555
|
+
|
|
15435
15556
|
/* harmony default export */ var Tooltipvue_type_script_lang_js_ = ({
|
|
15436
15557
|
components: {
|
|
15437
15558
|
PubmedViewer: PubmedViewer
|
|
@@ -15445,23 +15566,36 @@ var _titleCase = function titleCase(str) {
|
|
|
15445
15566
|
content: {
|
|
15446
15567
|
type: Object,
|
|
15447
15568
|
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
15569
|
}
|
|
15457
15570
|
},
|
|
15458
15571
|
data: function data() {
|
|
15459
15572
|
return {
|
|
15460
15573
|
activeSpecies: undefined,
|
|
15461
15574
|
appendToBody: false,
|
|
15462
|
-
pubmedSearchUrl: ''
|
|
15575
|
+
pubmedSearchUrl: '',
|
|
15576
|
+
loading: false,
|
|
15577
|
+
axons: [],
|
|
15578
|
+
dendrites: [],
|
|
15579
|
+
components: [],
|
|
15580
|
+
axonsWithDatasets: [],
|
|
15581
|
+
dendritesWithDatasets: [],
|
|
15582
|
+
uberons: [{
|
|
15583
|
+
id: undefined,
|
|
15584
|
+
name: undefined
|
|
15585
|
+
}]
|
|
15463
15586
|
};
|
|
15464
15587
|
},
|
|
15588
|
+
inject: ['sparcAPI', 'flatmapAPI'],
|
|
15589
|
+
watch: {
|
|
15590
|
+
'content.featureIds': {
|
|
15591
|
+
handler: function handler() {
|
|
15592
|
+
this.pathwayQuery(this.content.featureIds);
|
|
15593
|
+
}
|
|
15594
|
+
}
|
|
15595
|
+
},
|
|
15596
|
+
mounted: function mounted() {
|
|
15597
|
+
this.getOrganCuries();
|
|
15598
|
+
},
|
|
15465
15599
|
methods: {
|
|
15466
15600
|
resourceSelected: function resourceSelected(action) {
|
|
15467
15601
|
this.$emit("resource-selected", action);
|
|
@@ -15469,21 +15603,184 @@ var _titleCase = function titleCase(str) {
|
|
|
15469
15603
|
titleCase: function titleCase(title) {
|
|
15470
15604
|
return _titleCase(title);
|
|
15471
15605
|
},
|
|
15606
|
+
capitalise: function capitalise(text) {
|
|
15607
|
+
return _capitalise(text);
|
|
15608
|
+
},
|
|
15472
15609
|
onClose: function onClose() {
|
|
15473
15610
|
this.$emit("onClose");
|
|
15474
15611
|
},
|
|
15475
15612
|
openUrl: function openUrl(url) {
|
|
15476
15613
|
window.open(url, '_blank');
|
|
15477
15614
|
},
|
|
15615
|
+
openAxons: function openAxons() {
|
|
15616
|
+
components_EventBus.$emit('onActionClick', {
|
|
15617
|
+
type: 'Facets',
|
|
15618
|
+
labels: this.axonsWithDatasets.map(function (a) {
|
|
15619
|
+
return a.name;
|
|
15620
|
+
})
|
|
15621
|
+
});
|
|
15622
|
+
},
|
|
15623
|
+
openDendrites: function openDendrites() {
|
|
15624
|
+
components_EventBus.$emit('onActionClick', {
|
|
15625
|
+
type: 'Facets',
|
|
15626
|
+
labels: this.dendritesWithDatasets.map(function (a) {
|
|
15627
|
+
return a.name;
|
|
15628
|
+
})
|
|
15629
|
+
});
|
|
15630
|
+
},
|
|
15478
15631
|
pubmedSearchUrlUpdate: function pubmedSearchUrlUpdate(val) {
|
|
15479
15632
|
this.pubmedSearchUrl = val;
|
|
15633
|
+
},
|
|
15634
|
+
findComponents: function findComponents(connectivity) {
|
|
15635
|
+
var dnodes = connectivity.connectivity.flat(); // get nodes from edgelist
|
|
15636
|
+
|
|
15637
|
+
var nodes = _toConsumableArray(new Set(dnodes)); // remove duplicates
|
|
15638
|
+
|
|
15639
|
+
|
|
15640
|
+
var found = [];
|
|
15641
|
+
var terminal = false;
|
|
15642
|
+
nodes.forEach(function (node) {
|
|
15643
|
+
var n = node.flat(); // Find all terms on the node
|
|
15644
|
+
|
|
15645
|
+
terminal = false; // Check if the node is an axon or dendrite
|
|
15646
|
+
|
|
15647
|
+
n.forEach(function (s) {
|
|
15648
|
+
if (connectivity.axons.includes(s)) {
|
|
15649
|
+
terminal = true;
|
|
15650
|
+
}
|
|
15651
|
+
|
|
15652
|
+
if (connectivity.dendrites.includes(s)) {
|
|
15653
|
+
terminal = true;
|
|
15654
|
+
}
|
|
15655
|
+
});
|
|
15656
|
+
|
|
15657
|
+
if (!terminal) {
|
|
15658
|
+
found.push(node);
|
|
15659
|
+
}
|
|
15660
|
+
}); // remove duplicates
|
|
15661
|
+
|
|
15662
|
+
var foundUnique = _toConsumableArray(new Set(found.map(function (n) {
|
|
15663
|
+
return n[0];
|
|
15664
|
+
})));
|
|
15665
|
+
|
|
15666
|
+
return foundUnique;
|
|
15667
|
+
},
|
|
15668
|
+
getOrganCuries: function getOrganCuries() {
|
|
15669
|
+
var _this = this;
|
|
15670
|
+
|
|
15671
|
+
fetch("".concat(this.sparcAPI, "get-organ-curies/")).then(function (response) {
|
|
15672
|
+
return response.json();
|
|
15673
|
+
}).then(function (data) {
|
|
15674
|
+
_this.uberons = data.uberon.array;
|
|
15675
|
+
});
|
|
15676
|
+
},
|
|
15677
|
+
buildConnectivitySqlStatement: function buildConnectivitySqlStatement(keastIds) {
|
|
15678
|
+
var sql = 'select knowledge from knowledge where entity in (';
|
|
15679
|
+
|
|
15680
|
+
if (keastIds.length === 1) {
|
|
15681
|
+
sql += "'".concat(keastIds[0], "')");
|
|
15682
|
+
} else if (keastIds.length > 1) {
|
|
15683
|
+
for (var i in keastIds) {
|
|
15684
|
+
sql += "'".concat(keastIds[i], "'").concat(i >= keastIds.length - 1 ? ')' : ',', " ");
|
|
15685
|
+
}
|
|
15686
|
+
}
|
|
15687
|
+
|
|
15688
|
+
return sql;
|
|
15689
|
+
},
|
|
15690
|
+
buildLabelSqlStatement: function buildLabelSqlStatement(uberons) {
|
|
15691
|
+
var sql = 'select label from labels where entity in (';
|
|
15692
|
+
|
|
15693
|
+
if (uberons.length === 1) {
|
|
15694
|
+
sql += "'".concat(uberons[0], "')");
|
|
15695
|
+
} else if (uberons.length > 1) {
|
|
15696
|
+
for (var i in uberons) {
|
|
15697
|
+
sql += "'".concat(uberons[i], "'").concat(i >= uberons.length - 1 ? ')' : ',', " ");
|
|
15698
|
+
}
|
|
15699
|
+
}
|
|
15700
|
+
|
|
15701
|
+
return sql;
|
|
15702
|
+
},
|
|
15703
|
+
createLabelLookup: function createLabelLookup(uberons) {
|
|
15704
|
+
var _this2 = this;
|
|
15705
|
+
|
|
15706
|
+
return new Promise(function (resolve) {
|
|
15707
|
+
var uberonMap = {};
|
|
15708
|
+
var data = {
|
|
15709
|
+
sql: _this2.buildLabelSqlStatement(uberons)
|
|
15710
|
+
};
|
|
15711
|
+
fetch("".concat(_this2.flatmapAPI, "knowledge/query/"), {
|
|
15712
|
+
method: 'POST',
|
|
15713
|
+
headers: {
|
|
15714
|
+
'Content-Type': 'application/json'
|
|
15715
|
+
},
|
|
15716
|
+
body: JSON.stringify(data)
|
|
15717
|
+
}).then(function (response) {
|
|
15718
|
+
return response.json();
|
|
15719
|
+
}).then(function (data) {
|
|
15720
|
+
uberons.forEach(function (el, i) {
|
|
15721
|
+
uberonMap[el] = data.values[i][0];
|
|
15722
|
+
});
|
|
15723
|
+
resolve(uberonMap);
|
|
15724
|
+
});
|
|
15725
|
+
});
|
|
15726
|
+
},
|
|
15727
|
+
pathwayQuery: function pathwayQuery(keastIds) {
|
|
15728
|
+
var _this3 = this;
|
|
15729
|
+
|
|
15730
|
+
this.axons = [];
|
|
15731
|
+
this.dendrites = [];
|
|
15732
|
+
this.components = [];
|
|
15733
|
+
this.loading = true;
|
|
15734
|
+
if (!keastIds || keastIds.length == 0) return;
|
|
15735
|
+
var data = {
|
|
15736
|
+
sql: this.buildConnectivitySqlStatement(keastIds)
|
|
15737
|
+
};
|
|
15738
|
+
fetch("".concat(this.flatmapAPI, "knowledge/query/"), {
|
|
15739
|
+
method: 'POST',
|
|
15740
|
+
headers: {
|
|
15741
|
+
'Content-Type': 'application/json'
|
|
15742
|
+
},
|
|
15743
|
+
body: JSON.stringify(data)
|
|
15744
|
+
}).then(function (response) {
|
|
15745
|
+
return response.json();
|
|
15746
|
+
}).then(function (data) {
|
|
15747
|
+
var connectivity = JSON.parse(data.values[0][0]);
|
|
15748
|
+
|
|
15749
|
+
var components = _this3.findComponents(connectivity); // Create list of ids to get labels for
|
|
15750
|
+
|
|
15751
|
+
|
|
15752
|
+
var conIds = connectivity.axons.concat(connectivity.dendrites.concat(components));
|
|
15753
|
+
|
|
15754
|
+
_this3.createLabelLookup(conIds).then(function (lookUp) {
|
|
15755
|
+
_this3.axons = connectivity.axons.map(function (a) {
|
|
15756
|
+
return lookUp[a];
|
|
15757
|
+
});
|
|
15758
|
+
_this3.dendrites = connectivity.dendrites.map(function (d) {
|
|
15759
|
+
return lookUp[d];
|
|
15760
|
+
});
|
|
15761
|
+
_this3.components = components.map(function (c) {
|
|
15762
|
+
return lookUp[c];
|
|
15763
|
+
});
|
|
15764
|
+
}); // Filter for the anatomy which is annotated on datasets
|
|
15765
|
+
|
|
15766
|
+
|
|
15767
|
+
_this3.axonsWithDatasets = _this3.uberons.filter(function (ub) {
|
|
15768
|
+
return connectivity.axons.indexOf(ub.id) !== -1;
|
|
15769
|
+
});
|
|
15770
|
+
_this3.dendritesWithDatasets = _this3.uberons.filter(function (ub) {
|
|
15771
|
+
return connectivity.dendrites.indexOf(ub.id) !== -1;
|
|
15772
|
+
});
|
|
15773
|
+
_this3.loading = false;
|
|
15774
|
+
}).catch(function (error) {
|
|
15775
|
+
console.error('Error:', error);
|
|
15776
|
+
});
|
|
15480
15777
|
}
|
|
15481
15778
|
}
|
|
15482
15779
|
});
|
|
15483
15780
|
// CONCATENATED MODULE: ./src/components/Tooltip.vue?vue&type=script&lang=js&
|
|
15484
15781
|
/* 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
|
|
15782
|
+
// EXTERNAL MODULE: ./src/components/Tooltip.vue?vue&type=style&index=0&id=5ca16bab&scoped=true&lang=scss&
|
|
15783
|
+
var Tooltipvue_type_style_index_0_id_5ca16bab_scoped_true_lang_scss_ = __webpack_require__("bdbe");
|
|
15487
15784
|
|
|
15488
15785
|
// CONCATENATED MODULE: ./src/components/Tooltip.vue
|
|
15489
15786
|
|
|
@@ -15496,11 +15793,11 @@ var Tooltipvue_type_style_index_0_id_4802b201_scoped_true_lang_scss_ = __webpack
|
|
|
15496
15793
|
|
|
15497
15794
|
var Tooltip_component = normalizeComponent(
|
|
15498
15795
|
components_Tooltipvue_type_script_lang_js_,
|
|
15499
|
-
|
|
15500
|
-
|
|
15796
|
+
Tooltipvue_type_template_id_5ca16bab_scoped_true_render,
|
|
15797
|
+
Tooltipvue_type_template_id_5ca16bab_scoped_true_staticRenderFns,
|
|
15501
15798
|
false,
|
|
15502
15799
|
null,
|
|
15503
|
-
"
|
|
15800
|
+
"5ca16bab",
|
|
15504
15801
|
null
|
|
15505
15802
|
|
|
15506
15803
|
)
|
|
@@ -15548,7 +15845,7 @@ var svg_sprite_ = __webpack_require__("429c");
|
|
|
15548
15845
|
|
|
15549
15846
|
|
|
15550
15847
|
|
|
15551
|
-
|
|
15848
|
+
|
|
15552
15849
|
//
|
|
15553
15850
|
//
|
|
15554
15851
|
//
|
|
@@ -15929,7 +16226,7 @@ var mapResize = function mapResize(map) {
|
|
|
15929
16226
|
eventType: eventType
|
|
15930
16227
|
}; // Disable the nueron pop up for now.
|
|
15931
16228
|
|
|
15932
|
-
if (data && data.type !== "marker") _this.checkAndCreatePopups(
|
|
16229
|
+
if (data && data.type !== "marker") _this.checkAndCreatePopups(payload);
|
|
15933
16230
|
|
|
15934
16231
|
_this.$emit("resource-selected", payload);
|
|
15935
16232
|
} else {
|
|
@@ -15970,16 +16267,32 @@ var mapResize = function mapResize(map) {
|
|
|
15970
16267
|
actions: []
|
|
15971
16268
|
};
|
|
15972
16269
|
var foundAnnotations = false;
|
|
15973
|
-
this.tooltipVisible = false; //
|
|
16270
|
+
this.tooltipVisible = false; // nerve cuff check
|
|
16271
|
+
|
|
16272
|
+
if (data.feature.nodeId) {
|
|
16273
|
+
var paths = this.mapImp.nodePathModels(data.feature.nodeId);
|
|
16274
|
+
|
|
16275
|
+
if (paths.size > 0) {
|
|
16276
|
+
foundAnnotations = true;
|
|
16277
|
+
this.tooltipVisible = true;
|
|
16278
|
+
this.tooltipContent = content;
|
|
16279
|
+
this.tooltipContent.uberon = feature;
|
|
16280
|
+
this.tooltipContent.title = data.label;
|
|
16281
|
+
this.tooltipContent.featureIds = _toConsumableArray(paths);
|
|
16282
|
+
}
|
|
16283
|
+
|
|
16284
|
+
return true;
|
|
16285
|
+
} // neural data check
|
|
16286
|
+
|
|
15974
16287
|
|
|
15975
16288
|
if (feature) {
|
|
15976
|
-
if (feature.includes(
|
|
16289
|
+
if (feature.includes('ilxtr:neuron')) {
|
|
15977
16290
|
foundAnnotations = true;
|
|
15978
16291
|
this.tooltipVisible = true;
|
|
15979
16292
|
this.tooltipContent = content;
|
|
15980
16293
|
this.tooltipContent.uberon = feature;
|
|
15981
16294
|
this.tooltipContent.title = data.label;
|
|
15982
|
-
this.tooltipContent.
|
|
16295
|
+
this.tooltipContent.featureIds = [feature];
|
|
15983
16296
|
this.tooltipContent.actions.push({
|
|
15984
16297
|
title: "Search for dataset",
|
|
15985
16298
|
label: "Neuron Datasets",
|
|
@@ -16181,11 +16494,18 @@ var mapResize = function mapResize(map) {
|
|
|
16181
16494
|
if (this.mapImp) {
|
|
16182
16495
|
if (term === undefined || term === "") {
|
|
16183
16496
|
this.mapImp.clearSearchResults();
|
|
16497
|
+
return true;
|
|
16184
16498
|
} else {
|
|
16185
16499
|
var searchResults = this.mapImp.search(term);
|
|
16186
|
-
|
|
16500
|
+
|
|
16501
|
+
if (searchResults && searchResults.__featureIds.length > 0) {
|
|
16502
|
+
this.mapImp.showSearchResults(searchResults);
|
|
16503
|
+
return true;
|
|
16504
|
+
} else this.mapImp.clearSearchResults();
|
|
16187
16505
|
}
|
|
16188
16506
|
}
|
|
16507
|
+
|
|
16508
|
+
return false;
|
|
16189
16509
|
}
|
|
16190
16510
|
},
|
|
16191
16511
|
props: {
|
|
@@ -16245,8 +16565,18 @@ var mapResize = function mapResize(map) {
|
|
|
16245
16565
|
flatmapAPI: {
|
|
16246
16566
|
type: String,
|
|
16247
16567
|
default: "https://mapcore-demo.org/flatmaps/"
|
|
16568
|
+
},
|
|
16569
|
+
sparcAPI: {
|
|
16570
|
+
type: String,
|
|
16571
|
+
default: "https://api.sparc.science/"
|
|
16248
16572
|
}
|
|
16249
16573
|
},
|
|
16574
|
+
provide: function provide() {
|
|
16575
|
+
return {
|
|
16576
|
+
sparcAPI: this.sparcAPI,
|
|
16577
|
+
flatmapAPI: this.flatmapAPI
|
|
16578
|
+
};
|
|
16579
|
+
},
|
|
16250
16580
|
data: function data() {
|
|
16251
16581
|
return {
|
|
16252
16582
|
checkedItems: [],
|
|
@@ -16274,7 +16604,9 @@ var mapResize = function mapResize(map) {
|
|
|
16274
16604
|
loading: false,
|
|
16275
16605
|
flatmapMarker: flatmap_marker,
|
|
16276
16606
|
drawerOpen: true,
|
|
16277
|
-
tooltipContent: {
|
|
16607
|
+
tooltipContent: {
|
|
16608
|
+
featureIds: []
|
|
16609
|
+
},
|
|
16278
16610
|
colourRadio: true,
|
|
16279
16611
|
outlinesRadio: true
|
|
16280
16612
|
};
|
|
@@ -16303,8 +16635,8 @@ var mapResize = function mapResize(map) {
|
|
|
16303
16635
|
});
|
|
16304
16636
|
// CONCATENATED MODULE: ./src/components/FlatmapVuer.vue?vue&type=script&lang=js&
|
|
16305
16637
|
/* 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
|
|
16638
|
+
// EXTERNAL MODULE: ./src/components/FlatmapVuer.vue?vue&type=style&index=0&id=032efe9d&scoped=true&lang=scss&
|
|
16639
|
+
var FlatmapVuervue_type_style_index_0_id_032efe9d_scoped_true_lang_scss_ = __webpack_require__("d538");
|
|
16308
16640
|
|
|
16309
16641
|
// CONCATENATED MODULE: ./src/components/FlatmapVuer.vue
|
|
16310
16642
|
|
|
@@ -16321,18 +16653,18 @@ var FlatmapVuer_component = normalizeComponent(
|
|
|
16321
16653
|
staticRenderFns,
|
|
16322
16654
|
false,
|
|
16323
16655
|
null,
|
|
16324
|
-
"
|
|
16656
|
+
"032efe9d",
|
|
16325
16657
|
null
|
|
16326
16658
|
|
|
16327
16659
|
)
|
|
16328
16660
|
|
|
16329
16661
|
/* 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
|
|
16662
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"9cdb1272-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&
|
|
16663
|
+
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)}
|
|
16664
|
+
var MultiFlatmapVuervue_type_template_id_f20f0c88_scoped_true_staticRenderFns = []
|
|
16333
16665
|
|
|
16334
16666
|
|
|
16335
|
-
// CONCATENATED MODULE: ./src/components/MultiFlatmapVuer.vue?vue&type=template&id=
|
|
16667
|
+
// CONCATENATED MODULE: ./src/components/MultiFlatmapVuer.vue?vue&type=template&id=f20f0c88&scoped=true&
|
|
16336
16668
|
|
|
16337
16669
|
// EXTERNAL MODULE: ./node_modules/element-ui/lib/theme-chalk/popover.css
|
|
16338
16670
|
var popover = __webpack_require__("06f1");
|
|
@@ -16432,12 +16764,14 @@ var es_object_keys_js_ = __webpack_require__("ea64");
|
|
|
16432
16764
|
//
|
|
16433
16765
|
//
|
|
16434
16766
|
//
|
|
16767
|
+
//
|
|
16435
16768
|
|
|
16436
16769
|
/* eslint-disable no-alert, no-console */
|
|
16437
16770
|
|
|
16438
16771
|
|
|
16439
16772
|
|
|
16440
16773
|
|
|
16774
|
+
|
|
16441
16775
|
locale_default.a.use(en_default.a);
|
|
16442
16776
|
external_vue_default.a.use(lib_col_default.a);
|
|
16443
16777
|
external_vue_default.a.use(lib_row_default.a);
|
|
@@ -16450,35 +16784,40 @@ external_vue_default.a.use(lib_popover_default.a);
|
|
|
16450
16784
|
FlatmapVuer: FlatmapVuer
|
|
16451
16785
|
},
|
|
16452
16786
|
mounted: function mounted() {
|
|
16787
|
+
var _this = this;
|
|
16788
|
+
|
|
16453
16789
|
this.initialise();
|
|
16790
|
+
components_EventBus.$on('onActionClick', function (action) {
|
|
16791
|
+
_this.FlatmapSelected(action);
|
|
16792
|
+
});
|
|
16454
16793
|
},
|
|
16455
16794
|
methods: {
|
|
16456
16795
|
initialise: function initialise() {
|
|
16457
|
-
var
|
|
16796
|
+
var _this2 = this;
|
|
16458
16797
|
|
|
16459
16798
|
return new Promise(function (resolve) {
|
|
16460
|
-
fetch(
|
|
16799
|
+
fetch(_this2.flatmapAPI).then(function (response) {
|
|
16461
16800
|
return response.json();
|
|
16462
16801
|
}).then(function (data) {
|
|
16463
|
-
|
|
16464
|
-
Object.keys(
|
|
16802
|
+
_this2.speciesLis = {};
|
|
16803
|
+
Object.keys(_this2.availableSpecies).forEach(function (key) {
|
|
16465
16804
|
for (var i = 0; i < data.length; i++) {
|
|
16466
|
-
if (data[i].
|
|
16467
|
-
|
|
16805
|
+
if (data[i].taxon === _this2.availableSpecies[key].taxo) {
|
|
16806
|
+
_this2.speciesList[key] = _this2.availableSpecies[key];
|
|
16468
16807
|
break;
|
|
16469
16808
|
}
|
|
16470
16809
|
}
|
|
16471
16810
|
});
|
|
16472
16811
|
|
|
16473
|
-
if (!
|
|
16474
|
-
if (
|
|
16475
|
-
|
|
16812
|
+
if (!_this2.state) {
|
|
16813
|
+
if (_this2.initial && _this2.speciesList[_this2.initial] !== undefined) {
|
|
16814
|
+
_this2.activeSpecies = _this2.initial;
|
|
16476
16815
|
} else {
|
|
16477
|
-
|
|
16816
|
+
_this2.activeSpecies = Object.keys(_this2.speciesList)[0];
|
|
16478
16817
|
}
|
|
16479
16818
|
|
|
16480
16819
|
external_vue_default.a.nextTick(function () {
|
|
16481
|
-
if (
|
|
16820
|
+
if (_this2.$refs[_this2.activeSpecies]) _this2.$refs[_this2.activeSpecies][0].createFlatmap();
|
|
16482
16821
|
});
|
|
16483
16822
|
}
|
|
16484
16823
|
|
|
@@ -16544,23 +16883,23 @@ external_vue_default.a.use(lib_popover_default.a);
|
|
|
16544
16883
|
* @public
|
|
16545
16884
|
*/
|
|
16546
16885
|
setState: function setState(state) {
|
|
16547
|
-
var
|
|
16886
|
+
var _this3 = this;
|
|
16548
16887
|
|
|
16549
16888
|
if (state) {
|
|
16550
16889
|
this.initialise().then(function () {
|
|
16551
|
-
if (state.species && state.species !==
|
|
16552
|
-
|
|
16890
|
+
if (state.species && state.species !== _this3.activeSpecies) {
|
|
16891
|
+
_this3.activeSpecies = state.species;
|
|
16553
16892
|
|
|
16554
16893
|
if (state.state) {
|
|
16555
16894
|
//Wait for next tick when the refs are ready for rendering
|
|
16556
|
-
|
|
16557
|
-
|
|
16895
|
+
_this3.$nextTick(function () {
|
|
16896
|
+
_this3.$refs[_this3.activeSpecies][0].createFlatmap(state.state);
|
|
16558
16897
|
|
|
16559
|
-
|
|
16898
|
+
_this3.$emit('flatmapChanged', _this3.activeSpecies);
|
|
16560
16899
|
});
|
|
16561
16900
|
}
|
|
16562
16901
|
} else if (state.state) {
|
|
16563
|
-
var map =
|
|
16902
|
+
var map = _this3.getCurrentFlatmap();
|
|
16564
16903
|
|
|
16565
16904
|
map.setState(state.state);
|
|
16566
16905
|
}
|
|
@@ -16633,6 +16972,10 @@ external_vue_default.a.use(lib_popover_default.a);
|
|
|
16633
16972
|
flatmapAPI: {
|
|
16634
16973
|
type: String,
|
|
16635
16974
|
default: "https://mapcore-demo.org/flatmaps/"
|
|
16975
|
+
},
|
|
16976
|
+
sparcAPI: {
|
|
16977
|
+
type: String,
|
|
16978
|
+
default: "https://api.sparc.science/"
|
|
16636
16979
|
}
|
|
16637
16980
|
},
|
|
16638
16981
|
data: function data() {
|
|
@@ -16654,8 +16997,8 @@ external_vue_default.a.use(lib_popover_default.a);
|
|
|
16654
16997
|
});
|
|
16655
16998
|
// CONCATENATED MODULE: ./src/components/MultiFlatmapVuer.vue?vue&type=script&lang=js&
|
|
16656
16999
|
/* 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
|
|
17000
|
+
// EXTERNAL MODULE: ./src/components/MultiFlatmapVuer.vue?vue&type=style&index=0&id=f20f0c88&scoped=true&lang=scss&
|
|
17001
|
+
var MultiFlatmapVuervue_type_style_index_0_id_f20f0c88_scoped_true_lang_scss_ = __webpack_require__("4635");
|
|
16659
17002
|
|
|
16660
17003
|
// CONCATENATED MODULE: ./src/components/MultiFlatmapVuer.vue
|
|
16661
17004
|
|
|
@@ -16668,11 +17011,11 @@ var MultiFlatmapVuervue_type_style_index_0_id_01b30450_scoped_true_lang_scss_ =
|
|
|
16668
17011
|
|
|
16669
17012
|
var MultiFlatmapVuer_component = normalizeComponent(
|
|
16670
17013
|
components_MultiFlatmapVuervue_type_script_lang_js_,
|
|
16671
|
-
|
|
16672
|
-
|
|
17014
|
+
MultiFlatmapVuervue_type_template_id_f20f0c88_scoped_true_render,
|
|
17015
|
+
MultiFlatmapVuervue_type_template_id_f20f0c88_scoped_true_staticRenderFns,
|
|
16673
17016
|
false,
|
|
16674
17017
|
null,
|
|
16675
|
-
"
|
|
17018
|
+
"f20f0c88",
|
|
16676
17019
|
null
|
|
16677
17020
|
|
|
16678
17021
|
)
|