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