@abi-software/flatmapvuer 0.4.1-beta.0 → 0.4.1-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/flatmapvuer.common.js +450 -549
- package/dist/flatmapvuer.common.js.map +1 -1
- package/dist/flatmapvuer.css +1 -1
- package/dist/flatmapvuer.umd.js +450 -549
- package/dist/flatmapvuer.umd.js.map +1 -1
- package/dist/flatmapvuer.umd.min.js +2 -2
- package/dist/flatmapvuer.umd.min.js.map +1 -1
- package/package-lock.json +22 -4
- package/package.json +2 -2
- package/src/App.vue +1 -1
- package/src/components/FlatmapVuer.vue +27 -11
- package/src/components/SelectionsGroup.vue +2 -2
- package/src/services/flatmapQueries.js +32 -33
package/dist/flatmapvuer.umd.js
CHANGED
|
@@ -96,13 +96,6 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
96
96
|
/************************************************************************/
|
|
97
97
|
/******/ ({
|
|
98
98
|
|
|
99
|
-
/***/ "06b8":
|
|
100
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
101
|
-
|
|
102
|
-
// extracted by mini-css-extract-plugin
|
|
103
|
-
|
|
104
|
-
/***/ }),
|
|
105
|
-
|
|
106
99
|
/***/ "06f1":
|
|
107
100
|
/***/ (function(module, exports, __webpack_require__) {
|
|
108
101
|
|
|
@@ -770,13 +763,6 @@ module.exports = require("core-js/modules/es.string.search.js");
|
|
|
770
763
|
|
|
771
764
|
/***/ }),
|
|
772
765
|
|
|
773
|
-
/***/ "1f48":
|
|
774
|
-
/***/ (function(module, exports) {
|
|
775
|
-
|
|
776
|
-
module.exports = require("core-js/modules/es.date.to-primitive.js");
|
|
777
|
-
|
|
778
|
-
/***/ }),
|
|
779
|
-
|
|
780
766
|
/***/ "222e":
|
|
781
767
|
/***/ (function(module, exports, __webpack_require__) {
|
|
782
768
|
|
|
@@ -1401,17 +1387,6 @@ exports.default = {
|
|
|
1401
1387
|
}
|
|
1402
1388
|
};
|
|
1403
1389
|
|
|
1404
|
-
/***/ }),
|
|
1405
|
-
|
|
1406
|
-
/***/ "4217":
|
|
1407
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1408
|
-
|
|
1409
|
-
"use strict";
|
|
1410
|
-
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_FlatmapVuer_vue_vue_type_style_index_0_id_3bcd7b15_prod_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("ee41");
|
|
1411
|
-
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_FlatmapVuer_vue_vue_type_style_index_0_id_3bcd7b15_prod_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_FlatmapVuer_vue_vue_type_style_index_0_id_3bcd7b15_prod_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0__);
|
|
1412
|
-
/* unused harmony reexport * */
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
1390
|
/***/ }),
|
|
1416
1391
|
|
|
1417
1392
|
/***/ "429c":
|
|
@@ -7067,17 +7042,6 @@ main.install = function (Vue) {
|
|
|
7067
7042
|
|
|
7068
7043
|
/******/ });
|
|
7069
7044
|
|
|
7070
|
-
/***/ }),
|
|
7071
|
-
|
|
7072
|
-
/***/ "7b79":
|
|
7073
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
7074
|
-
|
|
7075
|
-
"use strict";
|
|
7076
|
-
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_SelectionsGroup_vue_vue_type_style_index_0_id_1f69f0e7_prod_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("06b8");
|
|
7077
|
-
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_SelectionsGroup_vue_vue_type_style_index_0_id_1f69f0e7_prod_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_SelectionsGroup_vue_vue_type_style_index_0_id_1f69f0e7_prod_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0__);
|
|
7078
|
-
/* unused harmony reexport * */
|
|
7079
|
-
|
|
7080
|
-
|
|
7081
7045
|
/***/ }),
|
|
7082
7046
|
|
|
7083
7047
|
/***/ "7f4d":
|
|
@@ -8690,6 +8654,17 @@ tag.install = function (Vue) {
|
|
|
8690
8654
|
|
|
8691
8655
|
module.exports = require("vue");
|
|
8692
8656
|
|
|
8657
|
+
/***/ }),
|
|
8658
|
+
|
|
8659
|
+
/***/ "9382":
|
|
8660
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
8661
|
+
|
|
8662
|
+
"use strict";
|
|
8663
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_FlatmapVuer_vue_vue_type_style_index_0_id_01bcf386_prod_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("abf8");
|
|
8664
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_FlatmapVuer_vue_vue_type_style_index_0_id_01bcf386_prod_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_FlatmapVuer_vue_vue_type_style_index_0_id_01bcf386_prod_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0__);
|
|
8665
|
+
/* unused harmony reexport * */
|
|
8666
|
+
|
|
8667
|
+
|
|
8693
8668
|
/***/ }),
|
|
8694
8669
|
|
|
8695
8670
|
/***/ "93b4":
|
|
@@ -8710,6 +8685,13 @@ module.exports = require("core-js/modules/es.object.to-string.js");
|
|
|
8710
8685
|
|
|
8711
8686
|
/***/ }),
|
|
8712
8687
|
|
|
8688
|
+
/***/ "9b03":
|
|
8689
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
8690
|
+
|
|
8691
|
+
// extracted by mini-css-extract-plugin
|
|
8692
|
+
|
|
8693
|
+
/***/ }),
|
|
8694
|
+
|
|
8713
8695
|
/***/ "9b22":
|
|
8714
8696
|
/***/ (function(module, exports) {
|
|
8715
8697
|
|
|
@@ -9158,6 +9140,13 @@ module.exports = require("core-js/modules/es.json.stringify.js");
|
|
|
9158
9140
|
|
|
9159
9141
|
/***/ }),
|
|
9160
9142
|
|
|
9143
|
+
/***/ "abf8":
|
|
9144
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
9145
|
+
|
|
9146
|
+
// extracted by mini-css-extract-plugin
|
|
9147
|
+
|
|
9148
|
+
/***/ }),
|
|
9149
|
+
|
|
9161
9150
|
/***/ "adec":
|
|
9162
9151
|
/***/ (function(module, exports, __webpack_require__) {
|
|
9163
9152
|
|
|
@@ -11097,6 +11086,17 @@ _select_src_option__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"].install = fun
|
|
|
11097
11086
|
|
|
11098
11087
|
/******/ });
|
|
11099
11088
|
|
|
11089
|
+
/***/ }),
|
|
11090
|
+
|
|
11091
|
+
/***/ "e777":
|
|
11092
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
11093
|
+
|
|
11094
|
+
"use strict";
|
|
11095
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_SelectionsGroup_vue_vue_type_style_index_0_id_404813f2_prod_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("9b03");
|
|
11096
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_SelectionsGroup_vue_vue_type_style_index_0_id_404813f2_prod_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_SelectionsGroup_vue_vue_type_style_index_0_id_404813f2_prod_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0__);
|
|
11097
|
+
/* unused harmony reexport * */
|
|
11098
|
+
|
|
11099
|
+
|
|
11100
11100
|
/***/ }),
|
|
11101
11101
|
|
|
11102
11102
|
/***/ "e974":
|
|
@@ -11329,13 +11329,6 @@ module.exports = require("core-js/modules/es.promise.js");
|
|
|
11329
11329
|
|
|
11330
11330
|
/***/ }),
|
|
11331
11331
|
|
|
11332
|
-
/***/ "ee41":
|
|
11333
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
11334
|
-
|
|
11335
|
-
// extracted by mini-css-extract-plugin
|
|
11336
|
-
|
|
11337
|
-
/***/ }),
|
|
11338
|
-
|
|
11339
11332
|
/***/ "eedf":
|
|
11340
11333
|
/***/ (function(module, exports, __webpack_require__) {
|
|
11341
11334
|
|
|
@@ -13385,7 +13378,7 @@ if (typeof window !== 'undefined') {
|
|
|
13385
13378
|
// Indicate to webpack that this file can be concatenated
|
|
13386
13379
|
/* harmony default export */ var setPublicPath = (null);
|
|
13387
13380
|
|
|
13388
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
13381
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"1a046c7e-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/FlatmapVuer.vue?vue&type=template&id=01bcf386&scoped=true&
|
|
13389
13382
|
var render = function render() {
|
|
13390
13383
|
var _vm = this,
|
|
13391
13384
|
_c = _vm._self._c;
|
|
@@ -13679,7 +13672,7 @@ var render = function render() {
|
|
|
13679
13672
|
attrs: {
|
|
13680
13673
|
"title": "Systems",
|
|
13681
13674
|
"labelKey": "name",
|
|
13682
|
-
"identifierKey": "
|
|
13675
|
+
"identifierKey": "id",
|
|
13683
13676
|
"selections": _vm.systems,
|
|
13684
13677
|
"colourStyle": "background"
|
|
13685
13678
|
},
|
|
@@ -13712,19 +13705,6 @@ var render = function render() {
|
|
|
13712
13705
|
"changed": _vm.sckanSelected,
|
|
13713
13706
|
"checkAll": _vm.checkAllSCKAN
|
|
13714
13707
|
}
|
|
13715
|
-
}) : _vm._e(), _vm.layers && _vm.layers.length > 0 ? _c('selections-group', {
|
|
13716
|
-
key: "layersSelection",
|
|
13717
|
-
ref: "layersSelection",
|
|
13718
|
-
attrs: {
|
|
13719
|
-
"title": "Layers",
|
|
13720
|
-
"labelKey": "description",
|
|
13721
|
-
"identifierKey": "id",
|
|
13722
|
-
"selections": _vm.layers
|
|
13723
|
-
},
|
|
13724
|
-
on: {
|
|
13725
|
-
"changed": _vm.layersSelected,
|
|
13726
|
-
"checkAll": _vm.checkAllLayers
|
|
13727
|
-
}
|
|
13728
13708
|
}) : _vm._e(), _vm.pathways && _vm.pathways.length > 0 ? _c('selections-group', {
|
|
13729
13709
|
key: "pathwaysSelection",
|
|
13730
13710
|
ref: "pathwaysSelection",
|
|
@@ -13877,7 +13857,7 @@ var render = function render() {
|
|
|
13877
13857
|
};
|
|
13878
13858
|
var staticRenderFns = [];
|
|
13879
13859
|
|
|
13880
|
-
// CONCATENATED MODULE: ./src/components/FlatmapVuer.vue?vue&type=template&id=
|
|
13860
|
+
// CONCATENATED MODULE: ./src/components/FlatmapVuer.vue?vue&type=template&id=01bcf386&scoped=true&
|
|
13881
13861
|
|
|
13882
13862
|
// EXTERNAL MODULE: external "core-js/modules/es.symbol.js"
|
|
13883
13863
|
var es_symbol_js_ = __webpack_require__("9b22");
|
|
@@ -14467,7 +14447,7 @@ var es_number_constructor_js_ = __webpack_require__("f989");
|
|
|
14467
14447
|
var external_vue_ = __webpack_require__("8bbf");
|
|
14468
14448
|
var external_vue_default = /*#__PURE__*/__webpack_require__.n(external_vue_);
|
|
14469
14449
|
|
|
14470
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
14450
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"1a046c7e-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/Tooltip.vue?vue&type=template&id=4ffcf7c8&scoped=true&
|
|
14471
14451
|
var Tooltipvue_type_template_id_4ffcf7c8_scoped_true_render = function render() {
|
|
14472
14452
|
var _vm = this,
|
|
14473
14453
|
_c = _vm._self._c;
|
|
@@ -14660,7 +14640,7 @@ var locale_default = /*#__PURE__*/__webpack_require__.n(locale);
|
|
|
14660
14640
|
|
|
14661
14641
|
var EventBus = new external_vue_default.a();
|
|
14662
14642
|
/* harmony default export */ var components_EventBus = (EventBus);
|
|
14663
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
14643
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"1a046c7e-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/ExternalResourceCard.vue?vue&type=template&id=14172b61&scoped=true&
|
|
14664
14644
|
var ExternalResourceCardvue_type_template_id_14172b61_scoped_true_render = function render() {
|
|
14665
14645
|
var _vm = this,
|
|
14666
14646
|
_c = _vm._self._c;
|
|
@@ -15024,8 +15004,8 @@ var Tooltip_component = normalizeComponent(
|
|
|
15024
15004
|
)
|
|
15025
15005
|
|
|
15026
15006
|
/* harmony default export */ var Tooltip = (Tooltip_component.exports);
|
|
15027
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
15028
|
-
var
|
|
15007
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"1a046c7e-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/SelectionsGroup.vue?vue&type=template&id=404813f2&scoped=true&
|
|
15008
|
+
var SelectionsGroupvue_type_template_id_404813f2_scoped_true_render = function render() {
|
|
15029
15009
|
var _vm = this,
|
|
15030
15010
|
_c = _vm._self._c;
|
|
15031
15011
|
return _c('div', {
|
|
@@ -15084,7 +15064,7 @@ var SelectionsGroupvue_type_template_id_1f69f0e7_scoped_true_render = function r
|
|
|
15084
15064
|
staticClass: "my-checkbox",
|
|
15085
15065
|
attrs: {
|
|
15086
15066
|
"label": item[_vm.identifierKey],
|
|
15087
|
-
"checked": !('
|
|
15067
|
+
"checked": !('enabled' in item) || item.enabled === true
|
|
15088
15068
|
},
|
|
15089
15069
|
on: {
|
|
15090
15070
|
"change": function change($event) {
|
|
@@ -15110,9 +15090,9 @@ var SelectionsGroupvue_type_template_id_1f69f0e7_scoped_true_render = function r
|
|
|
15110
15090
|
}, [_vm._v(" " + _vm._s(item[_vm.labelKey]) + " ")])])], 1)], 1)], 1)]);
|
|
15111
15091
|
}), 1)])], 1);
|
|
15112
15092
|
};
|
|
15113
|
-
var
|
|
15093
|
+
var SelectionsGroupvue_type_template_id_404813f2_scoped_true_staticRenderFns = [];
|
|
15114
15094
|
|
|
15115
|
-
// CONCATENATED MODULE: ./src/components/SelectionsGroup.vue?vue&type=template&id=
|
|
15095
|
+
// CONCATENATED MODULE: ./src/components/SelectionsGroup.vue?vue&type=template&id=404813f2&scoped=true&
|
|
15116
15096
|
|
|
15117
15097
|
// EXTERNAL MODULE: ./node_modules/element-ui/lib/theme-chalk/checkbox-group.css
|
|
15118
15098
|
var checkbox_group = __webpack_require__("d4df");
|
|
@@ -15170,7 +15150,7 @@ external_vue_default.a.use(lib_row_default.a);
|
|
|
15170
15150
|
this.checkAll = true;
|
|
15171
15151
|
this.checkedItems = [];
|
|
15172
15152
|
this.selections.forEach(function (item) {
|
|
15173
|
-
if (!('
|
|
15153
|
+
if (!('enabled' in item) || item.enabled === true) {
|
|
15174
15154
|
_this.checkedItems.push(item[_this.identifierKey]);
|
|
15175
15155
|
} else {
|
|
15176
15156
|
_this.checkAll = false;
|
|
@@ -15270,8 +15250,8 @@ external_vue_default.a.use(lib_row_default.a);
|
|
|
15270
15250
|
});
|
|
15271
15251
|
// CONCATENATED MODULE: ./src/components/SelectionsGroup.vue?vue&type=script&lang=js&
|
|
15272
15252
|
/* harmony default export */ var components_SelectionsGroupvue_type_script_lang_js_ = (SelectionsGroupvue_type_script_lang_js_);
|
|
15273
|
-
// EXTERNAL MODULE: ./src/components/SelectionsGroup.vue?vue&type=style&index=0&id=
|
|
15274
|
-
var
|
|
15253
|
+
// EXTERNAL MODULE: ./src/components/SelectionsGroup.vue?vue&type=style&index=0&id=404813f2&prod&scoped=true&lang=scss&
|
|
15254
|
+
var SelectionsGroupvue_type_style_index_0_id_404813f2_prod_scoped_true_lang_scss_ = __webpack_require__("e777");
|
|
15275
15255
|
|
|
15276
15256
|
// CONCATENATED MODULE: ./src/components/SelectionsGroup.vue
|
|
15277
15257
|
|
|
@@ -15284,11 +15264,11 @@ var SelectionsGroupvue_type_style_index_0_id_1f69f0e7_prod_scoped_true_lang_scss
|
|
|
15284
15264
|
|
|
15285
15265
|
var SelectionsGroup_component = normalizeComponent(
|
|
15286
15266
|
components_SelectionsGroupvue_type_script_lang_js_,
|
|
15287
|
-
|
|
15288
|
-
|
|
15267
|
+
SelectionsGroupvue_type_template_id_404813f2_scoped_true_render,
|
|
15268
|
+
SelectionsGroupvue_type_template_id_404813f2_scoped_true_staticRenderFns,
|
|
15289
15269
|
false,
|
|
15290
15270
|
null,
|
|
15291
|
-
"
|
|
15271
|
+
"404813f2",
|
|
15292
15272
|
null
|
|
15293
15273
|
|
|
15294
15274
|
)
|
|
@@ -15297,7 +15277,7 @@ var SelectionsGroup_component = normalizeComponent(
|
|
|
15297
15277
|
// EXTERNAL MODULE: external "@abi-software/svg-sprite"
|
|
15298
15278
|
var svg_sprite_ = __webpack_require__("429c");
|
|
15299
15279
|
|
|
15300
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
15280
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"1a046c7e-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/legends/SvgLegends.vue?vue&type=template&id=3d3218c8&scoped=true&
|
|
15301
15281
|
var SvgLegendsvue_type_template_id_3d3218c8_scoped_true_render = function render() {
|
|
15302
15282
|
var _vm = this,
|
|
15303
15283
|
_c = _vm._self._c;
|
|
@@ -15413,80 +15393,6 @@ var SvgLegends_component = normalizeComponent(
|
|
|
15413
15393
|
/* harmony default export */ var SvgLegends = (SvgLegends_component.exports);
|
|
15414
15394
|
// CONCATENATED MODULE: ./src/icons/flatmap-marker.js
|
|
15415
15395
|
/* harmony default export */ var flatmap_marker = ('<div class="flatmap-marker"><svg display="block" height="41px" width="27px" viewBox="0 0 27 41"><g fill-rule="nonzero"><g transform="translate(3.0, 29.0)" fill="#000000"><ellipse opacity="0.04" cx="10.5" cy="5.80029008" rx="10.5" ry="5.25002273"></ellipse><ellipse opacity="0.04" cx="10.5" cy="5.80029008" rx="10.5" ry="5.25002273"></ellipse><ellipse opacity="0.04" cx="10.5" cy="5.80029008" rx="9.5" ry="4.77275007"></ellipse><ellipse opacity="0.04" cx="10.5" cy="5.80029008" rx="8.5" ry="4.29549936"></ellipse><ellipse opacity="0.04" cx="10.5" cy="5.80029008" rx="7.5" ry="3.81822308"></ellipse><ellipse opacity="0.04" cx="10.5" cy="5.80029008" rx="6.5" ry="3.34094679"></ellipse><ellipse opacity="0.04" cx="10.5" cy="5.80029008" rx="5.5" ry="2.86367051"></ellipse><ellipse opacity="0.04" cx="10.5" cy="5.80029008" rx="4.5" ry="2.38636864"></ellipse></g><g fill="#005974"><path d="M27,13.5 C27,19.074644 20.250001,27.000002 14.75,34.500002 C14.016665,35.500004 12.983335,35.500004 12.25,34.500002 C6.7499993,27.000002 0,19.222562 0,13.5 C0,6.0441559 6.0441559,0 13.5,0 C20.955844,0 27,6.0441559 27,13.5 Z"></path></g><g opacity="0.25" fill="#000000"><path d="M13.5,0 C6.0441559,0 0,6.0441559 0,13.5 C0,19.222562 6.7499993,27 12.25,34.5 C13,35.522727 14.016664,35.500004 14.75,34.5 C20.250001,27 27,19.074644 27,13.5 C27,6.0441559 20.955844,0 13.5,0 Z M13.5,1 C20.415404,1 26,6.584596 26,13.5 C26,15.898657 24.495584,19.181431 22.220703,22.738281 C19.945823,26.295132 16.705119,30.142167 13.943359,33.908203 C13.743445,34.180814 13.612715,34.322738 13.5,34.441406 C13.387285,34.322738 13.256555,34.180814 13.056641,33.908203 C10.284481,30.127985 7.4148684,26.314159 5.015625,22.773438 C2.6163816,19.232715 1,15.953538 1,13.5 C1,6.584596 6.584596,1 13.5,1 Z"></path></g><g transform="translate(6.0, 7.0)" fill="#FFFFFF"></g><g transform="translate(8.0, 8.0)"><circle fill="#000000" opacity="0.25" cx="5.5" cy="5.5" r="5.4999962"></circle><circle fill="#FFFFFF" cx="5.5" cy="5.5" r="5.4999962"></circle></g></g></svg></div>');
|
|
15416
|
-
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js
|
|
15417
|
-
|
|
15418
|
-
function _classCallCheck(instance, Constructor) {
|
|
15419
|
-
if (!(instance instanceof Constructor)) {
|
|
15420
|
-
throw new TypeError("Cannot call a class as a function");
|
|
15421
|
-
}
|
|
15422
|
-
}
|
|
15423
|
-
// EXTERNAL MODULE: external "core-js/modules/es.symbol.to-primitive.js"
|
|
15424
|
-
var es_symbol_to_primitive_js_ = __webpack_require__("fb89");
|
|
15425
|
-
|
|
15426
|
-
// EXTERNAL MODULE: external "core-js/modules/es.date.to-primitive.js"
|
|
15427
|
-
var es_date_to_primitive_js_ = __webpack_require__("1f48");
|
|
15428
|
-
|
|
15429
|
-
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/toPrimitive.js
|
|
15430
|
-
|
|
15431
|
-
|
|
15432
|
-
|
|
15433
|
-
|
|
15434
|
-
|
|
15435
|
-
|
|
15436
|
-
|
|
15437
|
-
|
|
15438
|
-
function _toPrimitive(input, hint) {
|
|
15439
|
-
if (_typeof(input) !== "object" || input === null) return input;
|
|
15440
|
-
var prim = input[Symbol.toPrimitive];
|
|
15441
|
-
if (prim !== undefined) {
|
|
15442
|
-
var res = prim.call(input, hint || "default");
|
|
15443
|
-
if (_typeof(res) !== "object") return res;
|
|
15444
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
15445
|
-
}
|
|
15446
|
-
return (hint === "string" ? String : Number)(input);
|
|
15447
|
-
}
|
|
15448
|
-
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
|
|
15449
|
-
|
|
15450
|
-
|
|
15451
|
-
function _toPropertyKey(arg) {
|
|
15452
|
-
var key = _toPrimitive(arg, "string");
|
|
15453
|
-
return _typeof(key) === "symbol" ? key : String(key);
|
|
15454
|
-
}
|
|
15455
|
-
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/createClass.js
|
|
15456
|
-
|
|
15457
|
-
function _defineProperties(target, props) {
|
|
15458
|
-
for (var i = 0; i < props.length; i++) {
|
|
15459
|
-
var descriptor = props[i];
|
|
15460
|
-
descriptor.enumerable = descriptor.enumerable || false;
|
|
15461
|
-
descriptor.configurable = true;
|
|
15462
|
-
if ("value" in descriptor) descriptor.writable = true;
|
|
15463
|
-
Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
|
|
15464
|
-
}
|
|
15465
|
-
}
|
|
15466
|
-
function _createClass(Constructor, protoProps, staticProps) {
|
|
15467
|
-
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
15468
|
-
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
15469
|
-
Object.defineProperty(Constructor, "prototype", {
|
|
15470
|
-
writable: false
|
|
15471
|
-
});
|
|
15472
|
-
return Constructor;
|
|
15473
|
-
}
|
|
15474
|
-
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
15475
|
-
|
|
15476
|
-
function _defineProperty(obj, key, value) {
|
|
15477
|
-
key = _toPropertyKey(key);
|
|
15478
|
-
if (key in obj) {
|
|
15479
|
-
Object.defineProperty(obj, key, {
|
|
15480
|
-
value: value,
|
|
15481
|
-
enumerable: true,
|
|
15482
|
-
configurable: true,
|
|
15483
|
-
writable: true
|
|
15484
|
-
});
|
|
15485
|
-
} else {
|
|
15486
|
-
obj[key] = value;
|
|
15487
|
-
}
|
|
15488
|
-
return obj;
|
|
15489
|
-
}
|
|
15490
15396
|
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js
|
|
15491
15397
|
|
|
15492
15398
|
function _arrayWithoutHoles(arr) {
|
|
@@ -15526,15 +15432,15 @@ var es_array_flat_js_ = __webpack_require__("da6e");
|
|
|
15526
15432
|
// EXTERNAL MODULE: external "core-js/modules/es.array.unscopables.flat.js"
|
|
15527
15433
|
var es_array_unscopables_flat_js_ = __webpack_require__("722b");
|
|
15528
15434
|
|
|
15435
|
+
// EXTERNAL MODULE: external "core-js/modules/es.array.filter.js"
|
|
15436
|
+
var es_array_filter_js_ = __webpack_require__("1a89");
|
|
15437
|
+
|
|
15529
15438
|
// EXTERNAL MODULE: external "core-js/modules/web.url-search-params.js"
|
|
15530
15439
|
var web_url_search_params_js_ = __webpack_require__("712c");
|
|
15531
15440
|
|
|
15532
15441
|
// EXTERNAL MODULE: external "core-js/modules/es.regexp.to-string.js"
|
|
15533
15442
|
var es_regexp_to_string_js_ = __webpack_require__("30df");
|
|
15534
15443
|
|
|
15535
|
-
// EXTERNAL MODULE: external "core-js/modules/es.array.filter.js"
|
|
15536
|
-
var es_array_filter_js_ = __webpack_require__("1a89");
|
|
15537
|
-
|
|
15538
15444
|
// CONCATENATED MODULE: ./src/services/flatmapQueries.js
|
|
15539
15445
|
|
|
15540
15446
|
|
|
@@ -15553,9 +15459,6 @@ var es_array_filter_js_ = __webpack_require__("1a89");
|
|
|
15553
15459
|
|
|
15554
15460
|
|
|
15555
15461
|
|
|
15556
|
-
|
|
15557
|
-
|
|
15558
|
-
|
|
15559
15462
|
|
|
15560
15463
|
|
|
15561
15464
|
/* eslint-disable no-alert, no-console */
|
|
@@ -15572,275 +15475,72 @@ var inArray = function inArray(ar1, ar2) {
|
|
|
15572
15475
|
var as2 = JSON.stringify(ar2);
|
|
15573
15476
|
return as1.indexOf(as2) !== -1;
|
|
15574
15477
|
};
|
|
15575
|
-
var flatmapQueries_FlatmapQueries =
|
|
15576
|
-
function
|
|
15577
|
-
var
|
|
15578
|
-
|
|
15579
|
-
|
|
15580
|
-
|
|
15581
|
-
|
|
15582
|
-
|
|
15583
|
-
|
|
15584
|
-
|
|
15585
|
-
|
|
15586
|
-
|
|
15587
|
-
|
|
15588
|
-
|
|
15589
|
-
|
|
15590
|
-
return {
|
|
15591
|
-
url: url,
|
|
15592
|
-
id: "pubmed"
|
|
15593
|
-
};
|
|
15594
|
-
})
|
|
15595
|
-
};
|
|
15596
|
-
return tooltipData;
|
|
15597
|
-
});
|
|
15598
|
-
_defineProperty(this, "getOrganCuries", function () {
|
|
15599
|
-
var _this = this;
|
|
15600
|
-
return new Promise(function (resolve) {
|
|
15601
|
-
fetch("".concat(_this.sparcAPI, "get-organ-curies/")).then(function (response) {
|
|
15602
|
-
return response.json();
|
|
15603
|
-
}).then(function (data) {
|
|
15604
|
-
resolve(data.uberon.array);
|
|
15605
|
-
});
|
|
15606
|
-
});
|
|
15607
|
-
});
|
|
15608
|
-
_defineProperty(this, "createComponentsLabelList", function (components, lookUp) {
|
|
15609
|
-
var _this2 = this;
|
|
15610
|
-
var labelList = [];
|
|
15611
|
-
components.forEach(function (n) {
|
|
15612
|
-
labelList.push(_this2.createLabelFromNeuralNode(n[0]), lookUp);
|
|
15613
|
-
if (n.length === 2) {
|
|
15614
|
-
labelList.push(_this2.createLabelFromNeuralNode(n[1]), lookUp);
|
|
15615
|
-
}
|
|
15478
|
+
var flatmapQueries_FlatmapQueries = function FlatmapQueries() {
|
|
15479
|
+
this.initialise = function (sparcApi, flatmapApi) {
|
|
15480
|
+
var _this = this;
|
|
15481
|
+
this.sparcApi = sparcApi;
|
|
15482
|
+
this.flatmapApi = flatmapApi;
|
|
15483
|
+
this.destinations = [];
|
|
15484
|
+
this.origins = [];
|
|
15485
|
+
this.components = [];
|
|
15486
|
+
this.uberons = [];
|
|
15487
|
+
this.urls = [];
|
|
15488
|
+
this.controller = undefined;
|
|
15489
|
+
this.getOrganCuries().then(function (uberons) {
|
|
15490
|
+
_this.uberons = uberons;
|
|
15491
|
+
_this.createLabelLookup(uberons).then(function (lookUp) {
|
|
15492
|
+
_this.lookUp = lookUp;
|
|
15616
15493
|
});
|
|
15617
|
-
return labelList;
|
|
15618
15494
|
});
|
|
15619
|
-
|
|
15620
|
-
|
|
15621
|
-
|
|
15622
|
-
|
|
15623
|
-
|
|
15624
|
-
|
|
15495
|
+
};
|
|
15496
|
+
this.createTooltipData = function (eventData) {
|
|
15497
|
+
var tooltipData = {
|
|
15498
|
+
destinations: this.destinations,
|
|
15499
|
+
origins: this.origins,
|
|
15500
|
+
components: this.components,
|
|
15501
|
+
destinationsWithDatasets: this.destinationsWithDatasets,
|
|
15502
|
+
originsWithDatasets: this.originsWithDatasets,
|
|
15503
|
+
componentsWithDatasets: this.componentsWithDatasets,
|
|
15504
|
+
title: eventData.label,
|
|
15505
|
+
featureId: eventData.resource,
|
|
15506
|
+
hyperlinks: eventData.feature.hyperlinks ? eventData.feature.hyperlinks : this.urls.map(function (url) {
|
|
15507
|
+
return {
|
|
15508
|
+
url: url,
|
|
15509
|
+
id: "pubmed"
|
|
15625
15510
|
};
|
|
15626
|
-
|
|
15627
|
-
|
|
15628
|
-
|
|
15629
|
-
|
|
15630
|
-
|
|
15631
|
-
|
|
15632
|
-
|
|
15633
|
-
|
|
15634
|
-
|
|
15635
|
-
|
|
15636
|
-
|
|
15637
|
-
if (entity > -1 && label > -1) {
|
|
15638
|
-
payload.values.forEach(function (pair) {
|
|
15639
|
-
uberonMap[pair[entity]] = pair[label];
|
|
15640
|
-
});
|
|
15641
|
-
}
|
|
15642
|
-
resolve(uberonMap);
|
|
15643
|
-
});
|
|
15644
|
-
});
|
|
15645
|
-
});
|
|
15646
|
-
_defineProperty(this, "buildConnectivitySqlStatement", function (keastIds) {
|
|
15647
|
-
var sql = 'select knowledge from knowledge where entity in (';
|
|
15648
|
-
if (keastIds.length === 1) {
|
|
15649
|
-
sql += "'".concat(keastIds[0], "')");
|
|
15650
|
-
} else if (keastIds.length > 1) {
|
|
15651
|
-
for (var i in keastIds) {
|
|
15652
|
-
sql += "'".concat(keastIds[i], "'").concat(i >= keastIds.length - 1 ? ')' : ',', " ");
|
|
15653
|
-
}
|
|
15654
|
-
}
|
|
15655
|
-
return sql;
|
|
15656
|
-
});
|
|
15657
|
-
_defineProperty(this, "buildLabelSqlStatement", function (uberons) {
|
|
15658
|
-
var sql = 'select entity, label from labels where entity in (';
|
|
15659
|
-
if (uberons.length === 1) {
|
|
15660
|
-
sql += "'".concat(uberons[0], "')");
|
|
15661
|
-
} else if (uberons.length > 1) {
|
|
15662
|
-
for (var i in uberons) {
|
|
15663
|
-
sql += "'".concat(uberons[i], "'").concat(i >= uberons.length - 1 ? ')' : ',', " ");
|
|
15664
|
-
}
|
|
15665
|
-
}
|
|
15666
|
-
return sql;
|
|
15667
|
-
});
|
|
15668
|
-
_defineProperty(this, "findAllIdsFromConnectivity", function (connectivity) {
|
|
15669
|
-
var dnodes = connectivity.connectivity.flat(); // get nodes from edgelist
|
|
15670
|
-
var nodes = _toConsumableArray(new Set(dnodes)); // remove duplicates
|
|
15671
|
-
var found = [];
|
|
15672
|
-
nodes.forEach(function (n) {
|
|
15673
|
-
if (Array.isArray(n)) {
|
|
15674
|
-
found.push(n.flat());
|
|
15675
|
-
} else {
|
|
15676
|
-
found.push(n);
|
|
15677
|
-
}
|
|
15678
|
-
});
|
|
15679
|
-
return _toConsumableArray(new Set(found.flat()));
|
|
15680
|
-
});
|
|
15681
|
-
_defineProperty(this, "flattenConntectivity", function (connectivity) {
|
|
15682
|
-
var dnodes = connectivity.flat(); // get nodes from edgelist
|
|
15683
|
-
var nodes = _toConsumableArray(new Set(dnodes)); // remove duplicates
|
|
15684
|
-
var found = [];
|
|
15685
|
-
nodes.forEach(function (n) {
|
|
15686
|
-
if (Array.isArray(n)) {
|
|
15687
|
-
found.push(n.flat());
|
|
15688
|
-
} else {
|
|
15689
|
-
found.push(n);
|
|
15690
|
-
}
|
|
15691
|
-
});
|
|
15692
|
-
return found.flat();
|
|
15693
|
-
});
|
|
15694
|
-
_defineProperty(this, "findComponents", function (connectivity) {
|
|
15695
|
-
var dnodes = connectivity.connectivity.flat(); // get nodes from edgelist
|
|
15696
|
-
var nodes = flatmapQueries_removeDuplicates(dnodes);
|
|
15697
|
-
var found = [];
|
|
15698
|
-
var terminal = false;
|
|
15699
|
-
nodes.forEach(function (node) {
|
|
15700
|
-
terminal = false;
|
|
15701
|
-
// Check if the node is an destination or origin (note that they are labelled dendrite and axon as opposed to origin and destination)
|
|
15702
|
-
if (inArray(connectivity.axons, node)) {
|
|
15703
|
-
terminal = true;
|
|
15704
|
-
}
|
|
15705
|
-
if (inArray(connectivity.dendrites, node)) {
|
|
15706
|
-
terminal = true;
|
|
15707
|
-
}
|
|
15708
|
-
if (!terminal) {
|
|
15709
|
-
found.push(node);
|
|
15710
|
-
}
|
|
15711
|
-
});
|
|
15712
|
-
return found;
|
|
15713
|
-
});
|
|
15714
|
-
_defineProperty(this, "retrieveFlatmapKnowledgeForEvent", /*#__PURE__*/function () {
|
|
15715
|
-
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(eventData) {
|
|
15716
|
-
var _this4 = this;
|
|
15717
|
-
var signal, keastIds, data, prom1, prom2;
|
|
15718
|
-
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
15719
|
-
while (1) {
|
|
15720
|
-
switch (_context.prev = _context.next) {
|
|
15721
|
-
case 0:
|
|
15722
|
-
// check if there is an existing query
|
|
15723
|
-
if (this.controller) this.controller.abort();
|
|
15724
|
-
|
|
15725
|
-
// set up the abort controller
|
|
15726
|
-
this.controller = new AbortController();
|
|
15727
|
-
signal = this.controller.signal;
|
|
15728
|
-
keastIds = eventData.resource;
|
|
15729
|
-
this.destinations = [];
|
|
15730
|
-
this.origins = [];
|
|
15731
|
-
this.components = [];
|
|
15732
|
-
if (!(!keastIds || keastIds.length == 0)) {
|
|
15733
|
-
_context.next = 9;
|
|
15734
|
-
break;
|
|
15735
|
-
}
|
|
15736
|
-
return _context.abrupt("return");
|
|
15737
|
-
case 9:
|
|
15738
|
-
data = {
|
|
15739
|
-
sql: this.buildConnectivitySqlStatement(keastIds)
|
|
15740
|
-
};
|
|
15741
|
-
prom1 = new Promise(function (resolve) {
|
|
15742
|
-
fetch("".concat(_this4.flatmapApi, "knowledge/query/"), {
|
|
15743
|
-
method: 'POST',
|
|
15744
|
-
headers: {
|
|
15745
|
-
'Content-Type': 'application/json'
|
|
15746
|
-
},
|
|
15747
|
-
body: JSON.stringify(data),
|
|
15748
|
-
signal: signal
|
|
15749
|
-
}).then(function (response) {
|
|
15750
|
-
return response.json();
|
|
15751
|
-
}).then(function (data) {
|
|
15752
|
-
if (_this4.connectivityExists(data)) {
|
|
15753
|
-
var connectivity = JSON.parse(data.values[0][0]);
|
|
15754
|
-
_this4.processConnectivity(connectivity).then(function () {
|
|
15755
|
-
resolve(true);
|
|
15756
|
-
});
|
|
15757
|
-
} else {
|
|
15758
|
-
console.log('No connectivity data found');
|
|
15759
|
-
resolve(true);
|
|
15760
|
-
}
|
|
15761
|
-
}).catch(function (error) {
|
|
15762
|
-
console.error('Error:', error);
|
|
15763
|
-
resolve(false);
|
|
15764
|
-
});
|
|
15765
|
-
});
|
|
15766
|
-
prom2 = this.pubmedQueryOnIds(eventData);
|
|
15767
|
-
_context.next = 14;
|
|
15768
|
-
return Promise.all([prom1, prom2]);
|
|
15769
|
-
case 14:
|
|
15770
|
-
return _context.abrupt("return", _context.sent);
|
|
15771
|
-
case 15:
|
|
15772
|
-
case "end":
|
|
15773
|
-
return _context.stop();
|
|
15774
|
-
}
|
|
15775
|
-
}
|
|
15776
|
-
}, _callee, this);
|
|
15777
|
-
}));
|
|
15778
|
-
return function (_x) {
|
|
15779
|
-
return _ref.apply(this, arguments);
|
|
15780
|
-
};
|
|
15781
|
-
}());
|
|
15782
|
-
_defineProperty(this, "connectivityExists", function (data) {
|
|
15783
|
-
if (data.values && data.values.length > 0 && JSON.parse(data.values[0][0]).connectivity && JSON.parse(data.values[0][0]).connectivity.length > 0) {
|
|
15784
|
-
return true;
|
|
15785
|
-
} else {
|
|
15786
|
-
return false;
|
|
15787
|
-
}
|
|
15788
|
-
});
|
|
15789
|
-
_defineProperty(this, "createLabelFromNeuralNode", function (node, lookUp) {
|
|
15790
|
-
var label = lookUp[node[0]];
|
|
15791
|
-
if (node.length === 2 && node[1].length > 0) {
|
|
15792
|
-
node[1].forEach(function (n) {
|
|
15793
|
-
if (lookUp[n] == undefined) {
|
|
15794
|
-
label += ", ".concat(n);
|
|
15795
|
-
} else {
|
|
15796
|
-
label += ", ".concat(lookUp[n]);
|
|
15797
|
-
}
|
|
15798
|
-
});
|
|
15799
|
-
}
|
|
15800
|
-
return label;
|
|
15801
|
-
});
|
|
15802
|
-
_defineProperty(this, "findComponents", function (connectivity) {
|
|
15803
|
-
var dnodes = connectivity.connectivity.flat(); // get nodes from edgelist
|
|
15804
|
-
var nodes = flatmapQueries_removeDuplicates(dnodes);
|
|
15805
|
-
var found = [];
|
|
15806
|
-
var terminal = false;
|
|
15807
|
-
nodes.forEach(function (node) {
|
|
15808
|
-
terminal = false;
|
|
15809
|
-
// Check if the node is an destination or origin (note that they are labelled dendrite and axon as opposed to origin and destination)
|
|
15810
|
-
if (inArray(connectivity.axons, node)) {
|
|
15811
|
-
terminal = true;
|
|
15812
|
-
}
|
|
15813
|
-
if (inArray(connectivity.dendrites, node)) {
|
|
15814
|
-
terminal = true;
|
|
15815
|
-
}
|
|
15816
|
-
if (!terminal) {
|
|
15817
|
-
found.push(node);
|
|
15818
|
-
}
|
|
15511
|
+
})
|
|
15512
|
+
};
|
|
15513
|
+
return tooltipData;
|
|
15514
|
+
};
|
|
15515
|
+
this.getOrganCuries = function () {
|
|
15516
|
+
var _this2 = this;
|
|
15517
|
+
return new Promise(function (resolve) {
|
|
15518
|
+
fetch("".concat(_this2.sparcAPI, "get-organ-curies/")).then(function (response) {
|
|
15519
|
+
return response.json();
|
|
15520
|
+
}).then(function (data) {
|
|
15521
|
+
resolve(data.uberon.array);
|
|
15819
15522
|
});
|
|
15820
|
-
return found;
|
|
15821
|
-
});
|
|
15822
|
-
_defineProperty(this, "stripPMIDPrefix", function (pubmedId) {
|
|
15823
|
-
return pubmedId.split(':')[1];
|
|
15824
15523
|
});
|
|
15825
|
-
|
|
15826
|
-
|
|
15827
|
-
|
|
15828
|
-
|
|
15829
|
-
|
|
15830
|
-
|
|
15831
|
-
|
|
15832
|
-
|
|
15524
|
+
};
|
|
15525
|
+
this.createComponentsLabelList = function (components, lookUp) {
|
|
15526
|
+
var _this3 = this;
|
|
15527
|
+
var labelList = [];
|
|
15528
|
+
components.forEach(function (n) {
|
|
15529
|
+
labelList.push(_this3.createLabelFromNeuralNode(n[0]), lookUp);
|
|
15530
|
+
if (n.length === 2) {
|
|
15531
|
+
labelList.push(_this3.createLabelFromNeuralNode(n[1]), lookUp);
|
|
15833
15532
|
}
|
|
15834
|
-
return sql;
|
|
15835
15533
|
});
|
|
15836
|
-
|
|
15837
|
-
|
|
15838
|
-
|
|
15839
|
-
|
|
15534
|
+
return labelList;
|
|
15535
|
+
};
|
|
15536
|
+
this.createLabelLookup = function (uberons) {
|
|
15537
|
+
var _this4 = this;
|
|
15538
|
+
return new Promise(function (resolve) {
|
|
15539
|
+
var uberonMap = {};
|
|
15840
15540
|
var data = {
|
|
15841
|
-
sql:
|
|
15541
|
+
sql: _this4.buildLabelSqlStatement(uberons)
|
|
15842
15542
|
};
|
|
15843
|
-
|
|
15543
|
+
fetch("".concat(_this4.flatmapApi, "knowledge/query/"), {
|
|
15844
15544
|
method: 'POST',
|
|
15845
15545
|
headers: {
|
|
15846
15546
|
'Content-Type': 'application/json'
|
|
@@ -15848,135 +15548,331 @@ var flatmapQueries_FlatmapQueries = /*#__PURE__*/function () {
|
|
|
15848
15548
|
body: JSON.stringify(data)
|
|
15849
15549
|
}).then(function (response) {
|
|
15850
15550
|
return response.json();
|
|
15851
|
-
}).
|
|
15852
|
-
|
|
15853
|
-
|
|
15854
|
-
|
|
15855
|
-
|
|
15856
|
-
|
|
15857
|
-
var keastIds = eventData.resource;
|
|
15858
|
-
var source = eventData.feature.source;
|
|
15859
|
-
if (!keastIds || keastIds.length === 0) return;
|
|
15860
|
-
var sql = this.buildPubmedSqlStatement(keastIds);
|
|
15861
|
-
return this.flatmapQuery(sql).then(function (data) {
|
|
15862
|
-
// Create pubmed url on paths if we have them
|
|
15863
|
-
if (data.values.length > 0) {
|
|
15864
|
-
_this5.urls = [_this5.pubmedSearchUrl(data.values.map(function (id) {
|
|
15865
|
-
return _this5.stripPMIDPrefix(id[0]);
|
|
15866
|
-
}))];
|
|
15867
|
-
return true;
|
|
15868
|
-
} else {
|
|
15869
|
-
// Create pubmed url on models
|
|
15870
|
-
_this5.pubmedQueryOnModels(source).then(function () {
|
|
15871
|
-
return true;
|
|
15551
|
+
}).then(function (payload) {
|
|
15552
|
+
var entity = payload.keys.indexOf("entity");
|
|
15553
|
+
var label = payload.keys.indexOf("label");
|
|
15554
|
+
if (entity > -1 && label > -1) {
|
|
15555
|
+
payload.values.forEach(function (pair) {
|
|
15556
|
+
uberonMap[pair[entity]] = pair[label];
|
|
15872
15557
|
});
|
|
15873
15558
|
}
|
|
15559
|
+
resolve(uberonMap);
|
|
15874
15560
|
});
|
|
15875
15561
|
});
|
|
15876
|
-
|
|
15877
|
-
|
|
15878
|
-
|
|
15879
|
-
|
|
15880
|
-
|
|
15881
|
-
|
|
15882
|
-
|
|
15562
|
+
};
|
|
15563
|
+
this.buildConnectivitySqlStatement = function (keastIds) {
|
|
15564
|
+
var sql = 'select knowledge from knowledge where entity in (';
|
|
15565
|
+
if (keastIds.length === 1) {
|
|
15566
|
+
sql += "'".concat(keastIds[0], "')");
|
|
15567
|
+
} else if (keastIds.length > 1) {
|
|
15568
|
+
for (var i in keastIds) {
|
|
15569
|
+
sql += "'".concat(keastIds[i], "'").concat(i >= keastIds.length - 1 ? ')' : ',', " ");
|
|
15570
|
+
}
|
|
15571
|
+
}
|
|
15572
|
+
return sql;
|
|
15573
|
+
};
|
|
15574
|
+
this.buildLabelSqlStatement = function (uberons) {
|
|
15575
|
+
var sql = 'select entity, label from labels where entity in (';
|
|
15576
|
+
if (uberons.length === 1) {
|
|
15577
|
+
sql += "'".concat(uberons[0], "')");
|
|
15578
|
+
} else if (uberons.length > 1) {
|
|
15579
|
+
for (var i in uberons) {
|
|
15580
|
+
sql += "'".concat(uberons[i], "'").concat(i >= uberons.length - 1 ? ')' : ',', " ");
|
|
15581
|
+
}
|
|
15582
|
+
}
|
|
15583
|
+
return sql;
|
|
15584
|
+
};
|
|
15585
|
+
this.findAllIdsFromConnectivity = function (connectivity) {
|
|
15586
|
+
var dnodes = connectivity.connectivity.flat(); // get nodes from edgelist
|
|
15587
|
+
var nodes = _toConsumableArray(new Set(dnodes)); // remove duplicates
|
|
15588
|
+
var found = [];
|
|
15589
|
+
nodes.forEach(function (n) {
|
|
15590
|
+
if (Array.isArray(n)) {
|
|
15591
|
+
found.push(n.flat());
|
|
15592
|
+
} else {
|
|
15593
|
+
found.push(n);
|
|
15594
|
+
}
|
|
15595
|
+
});
|
|
15596
|
+
return _toConsumableArray(new Set(found.flat()));
|
|
15597
|
+
};
|
|
15598
|
+
this.flattenConntectivity = function (connectivity) {
|
|
15599
|
+
var dnodes = connectivity.flat(); // get nodes from edgelist
|
|
15600
|
+
var nodes = _toConsumableArray(new Set(dnodes)); // remove duplicates
|
|
15601
|
+
var found = [];
|
|
15602
|
+
nodes.forEach(function (n) {
|
|
15603
|
+
if (Array.isArray(n)) {
|
|
15604
|
+
found.push(n.flat());
|
|
15605
|
+
} else {
|
|
15606
|
+
found.push(n);
|
|
15607
|
+
}
|
|
15608
|
+
});
|
|
15609
|
+
return found.flat();
|
|
15610
|
+
};
|
|
15611
|
+
this.findComponents = function (connectivity) {
|
|
15612
|
+
var dnodes = connectivity.connectivity.flat(); // get nodes from edgelist
|
|
15613
|
+
var nodes = flatmapQueries_removeDuplicates(dnodes);
|
|
15614
|
+
var found = [];
|
|
15615
|
+
var terminal = false;
|
|
15616
|
+
nodes.forEach(function (node) {
|
|
15617
|
+
terminal = false;
|
|
15618
|
+
// Check if the node is an destination or origin (note that they are labelled dendrite and axon as opposed to origin and destination)
|
|
15619
|
+
if (inArray(connectivity.axons, node)) {
|
|
15620
|
+
terminal = true;
|
|
15621
|
+
}
|
|
15622
|
+
if (inArray(connectivity.dendrites, node)) {
|
|
15623
|
+
terminal = true;
|
|
15624
|
+
}
|
|
15625
|
+
if (!terminal) {
|
|
15626
|
+
found.push(node);
|
|
15627
|
+
}
|
|
15628
|
+
});
|
|
15629
|
+
return found;
|
|
15630
|
+
};
|
|
15631
|
+
this.retrieveFlatmapKnowledgeForEvent = /*#__PURE__*/function () {
|
|
15632
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(eventData) {
|
|
15633
|
+
var _this5 = this;
|
|
15634
|
+
var signal, keastIds, data, prom1, prom2, results;
|
|
15635
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
15636
|
+
while (1) {
|
|
15637
|
+
switch (_context.prev = _context.next) {
|
|
15638
|
+
case 0:
|
|
15639
|
+
// check if there is an existing query
|
|
15640
|
+
if (this.controller) this.controller.abort();
|
|
15641
|
+
|
|
15642
|
+
// set up the abort controller
|
|
15643
|
+
this.controller = new AbortController();
|
|
15644
|
+
signal = this.controller.signal;
|
|
15645
|
+
keastIds = eventData.resource;
|
|
15646
|
+
this.destinations = [];
|
|
15647
|
+
this.origins = [];
|
|
15648
|
+
this.components = [];
|
|
15649
|
+
if (!(!keastIds || keastIds.length == 0)) {
|
|
15650
|
+
_context.next = 9;
|
|
15651
|
+
break;
|
|
15652
|
+
}
|
|
15653
|
+
return _context.abrupt("return");
|
|
15654
|
+
case 9:
|
|
15655
|
+
data = {
|
|
15656
|
+
sql: this.buildConnectivitySqlStatement(keastIds)
|
|
15657
|
+
};
|
|
15658
|
+
prom1 = new Promise(function (resolve) {
|
|
15659
|
+
fetch("".concat(_this5.flatmapApi, "knowledge/query/"), {
|
|
15660
|
+
method: 'POST',
|
|
15661
|
+
headers: {
|
|
15662
|
+
'Content-Type': 'application/json'
|
|
15663
|
+
},
|
|
15664
|
+
body: JSON.stringify(data),
|
|
15665
|
+
signal: signal
|
|
15666
|
+
}).then(function (response) {
|
|
15667
|
+
return response.json();
|
|
15668
|
+
}).then(function (data) {
|
|
15669
|
+
if (_this5.connectivityExists(data)) {
|
|
15670
|
+
var connectivity = JSON.parse(data.values[0][0]);
|
|
15671
|
+
_this5.processConnectivity(connectivity).then(function () {
|
|
15672
|
+
resolve(true);
|
|
15673
|
+
});
|
|
15674
|
+
} else {
|
|
15675
|
+
console.log('No connectivity data found');
|
|
15676
|
+
resolve(false);
|
|
15677
|
+
}
|
|
15678
|
+
}).catch(function (error) {
|
|
15679
|
+
console.error('Error:', error);
|
|
15680
|
+
resolve(false);
|
|
15681
|
+
});
|
|
15682
|
+
});
|
|
15683
|
+
prom2 = this.pubmedQueryOnIds(eventData);
|
|
15684
|
+
_context.next = 14;
|
|
15685
|
+
return Promise.all([prom1, prom2]);
|
|
15686
|
+
case 14:
|
|
15687
|
+
results = _context.sent;
|
|
15688
|
+
return _context.abrupt("return", results.every(Boolean));
|
|
15689
|
+
case 16:
|
|
15690
|
+
case "end":
|
|
15691
|
+
return _context.stop();
|
|
15692
|
+
}
|
|
15693
|
+
}
|
|
15694
|
+
}, _callee, this);
|
|
15695
|
+
}));
|
|
15696
|
+
return function (_x) {
|
|
15697
|
+
return _ref.apply(this, arguments);
|
|
15698
|
+
};
|
|
15699
|
+
}();
|
|
15700
|
+
this.connectivityExists = function (data) {
|
|
15701
|
+
if (data.values && data.values.length > 0 && JSON.parse(data.values[0][0]).connectivity && JSON.parse(data.values[0][0]).connectivity.length > 0) {
|
|
15702
|
+
return true;
|
|
15703
|
+
} else {
|
|
15704
|
+
return false;
|
|
15705
|
+
}
|
|
15706
|
+
};
|
|
15707
|
+
this.createLabelFromNeuralNode = function (node, lookUp) {
|
|
15708
|
+
var label = lookUp[node[0]];
|
|
15709
|
+
if (node.length === 2 && node[1].length > 0) {
|
|
15710
|
+
node[1].forEach(function (n) {
|
|
15711
|
+
if (lookUp[n] == undefined) {
|
|
15712
|
+
label += ", ".concat(n);
|
|
15883
15713
|
} else {
|
|
15884
|
-
|
|
15714
|
+
label += ", ".concat(lookUp[n]);
|
|
15885
15715
|
}
|
|
15886
|
-
|
|
15887
|
-
return;
|
|
15888
15716
|
});
|
|
15717
|
+
}
|
|
15718
|
+
return label;
|
|
15719
|
+
};
|
|
15720
|
+
this.flattenAndFindDatasets = function (components, axons, dendrites) {
|
|
15721
|
+
// process the nodes for finding datasets (Note this is not critical to the tooltip, only for the 'search on components' button)
|
|
15722
|
+
var componentsFlat = this.flattenConntectivity(components);
|
|
15723
|
+
var axonsFlat = this.flattenConntectivity(axons);
|
|
15724
|
+
var dendritesFlat = this.flattenConntectivity(dendrites);
|
|
15725
|
+
|
|
15726
|
+
// Filter for the anatomy which is annotated on datasets
|
|
15727
|
+
this.destinationsWithDatasets = this.uberons.filter(function (ub) {
|
|
15728
|
+
return axonsFlat.indexOf(ub.id) !== -1;
|
|
15889
15729
|
});
|
|
15890
|
-
|
|
15891
|
-
|
|
15892
|
-
var params = new URLSearchParams();
|
|
15893
|
-
params.append('term', ids);
|
|
15894
|
-
return url + params.toString();
|
|
15730
|
+
this.originsWithDatasets = this.uberons.filter(function (ub) {
|
|
15731
|
+
return dendritesFlat.indexOf(ub.id) !== -1;
|
|
15895
15732
|
});
|
|
15896
|
-
this.
|
|
15897
|
-
|
|
15898
|
-
this.destinations = [];
|
|
15899
|
-
this.origins = [];
|
|
15900
|
-
this.components = [];
|
|
15901
|
-
this.uberons = [];
|
|
15902
|
-
this.urls = [];
|
|
15903
|
-
this.controller = undefined;
|
|
15904
|
-
this.getOrganCuries().then(function (uberons) {
|
|
15905
|
-
_this7.uberons = uberons;
|
|
15906
|
-
_this7.createLabelLookup(uberons).then(function (lookUp) {
|
|
15907
|
-
_this7.lookUp = lookUp;
|
|
15908
|
-
});
|
|
15733
|
+
this.componentsWithDatasets = this.uberons.filter(function (ub) {
|
|
15734
|
+
return componentsFlat.indexOf(ub.id) !== -1;
|
|
15909
15735
|
});
|
|
15910
|
-
}
|
|
15911
|
-
|
|
15912
|
-
|
|
15913
|
-
|
|
15914
|
-
//
|
|
15915
|
-
var
|
|
15916
|
-
|
|
15917
|
-
|
|
15918
|
-
|
|
15919
|
-
|
|
15920
|
-
|
|
15921
|
-
|
|
15922
|
-
|
|
15923
|
-
|
|
15924
|
-
|
|
15925
|
-
|
|
15926
|
-
|
|
15927
|
-
|
|
15736
|
+
};
|
|
15737
|
+
this.processConnectivity = function (connectivity) {
|
|
15738
|
+
var _this6 = this;
|
|
15739
|
+
return new Promise(function (resolve) {
|
|
15740
|
+
// Filter the origin and destinations from components
|
|
15741
|
+
var components = _this6.findComponents(connectivity);
|
|
15742
|
+
|
|
15743
|
+
// Remove duplicates
|
|
15744
|
+
var axons = flatmapQueries_removeDuplicates(connectivity.axons);
|
|
15745
|
+
var dendrites = flatmapQueries_removeDuplicates(connectivity.dendrites);
|
|
15746
|
+
|
|
15747
|
+
// Create list of ids to get labels for
|
|
15748
|
+
var conIds = _this6.findAllIdsFromConnectivity(connectivity);
|
|
15749
|
+
|
|
15750
|
+
// Create readable labels from the nodes. Setting this to 'this.origins' updates the display
|
|
15751
|
+
_this6.createLabelLookup(conIds).then(function (lookUp) {
|
|
15752
|
+
_this6.destinations = axons.map(function (a) {
|
|
15753
|
+
return _this6.createLabelFromNeuralNode(a, lookUp);
|
|
15754
|
+
});
|
|
15755
|
+
_this6.origins = dendrites.map(function (d) {
|
|
15756
|
+
return _this6.createLabelFromNeuralNode(d, lookUp);
|
|
15757
|
+
});
|
|
15758
|
+
_this6.components = components.map(function (c) {
|
|
15759
|
+
return _this6.createLabelFromNeuralNode(c, lookUp);
|
|
15760
|
+
});
|
|
15761
|
+
_this6.flattenAndFindDatasets(components, axons, dendrites);
|
|
15762
|
+
resolve(true);
|
|
15928
15763
|
});
|
|
15764
|
+
});
|
|
15765
|
+
};
|
|
15766
|
+
this.flattenConntectivity = function (connectivity) {
|
|
15767
|
+
var dnodes = connectivity.flat(); // get nodes from edgelist
|
|
15768
|
+
var nodes = _toConsumableArray(new Set(dnodes)); // remove duplicates
|
|
15769
|
+
var found = [];
|
|
15770
|
+
nodes.forEach(function (n) {
|
|
15771
|
+
if (Array.isArray(n)) {
|
|
15772
|
+
found.push(n.flat());
|
|
15773
|
+
} else {
|
|
15774
|
+
found.push(n);
|
|
15775
|
+
}
|
|
15776
|
+
});
|
|
15777
|
+
return found.flat();
|
|
15778
|
+
};
|
|
15779
|
+
this.findComponents = function (connectivity) {
|
|
15780
|
+
var dnodes = connectivity.connectivity.flat(); // get nodes from edgelist
|
|
15781
|
+
var nodes = flatmapQueries_removeDuplicates(dnodes);
|
|
15782
|
+
var found = [];
|
|
15783
|
+
var terminal = false;
|
|
15784
|
+
nodes.forEach(function (node) {
|
|
15785
|
+
terminal = false;
|
|
15786
|
+
// Check if the node is an destination or origin (note that they are labelled dendrite and axon as opposed to origin and destination)
|
|
15787
|
+
if (inArray(connectivity.axons, node)) {
|
|
15788
|
+
terminal = true;
|
|
15789
|
+
}
|
|
15790
|
+
if (inArray(connectivity.dendrites, node)) {
|
|
15791
|
+
terminal = true;
|
|
15792
|
+
}
|
|
15793
|
+
if (!terminal) {
|
|
15794
|
+
found.push(node);
|
|
15795
|
+
}
|
|
15796
|
+
});
|
|
15797
|
+
return found;
|
|
15798
|
+
};
|
|
15799
|
+
this.stripPMIDPrefix = function (pubmedId) {
|
|
15800
|
+
return pubmedId.split(':')[1];
|
|
15801
|
+
};
|
|
15802
|
+
this.buildPubmedSqlStatement = function (keastIds) {
|
|
15803
|
+
var sql = 'select distinct publication from publications where entity in (';
|
|
15804
|
+
if (keastIds.length === 1) {
|
|
15805
|
+
sql += "'".concat(keastIds[0], "')");
|
|
15806
|
+
} else if (keastIds.length > 1) {
|
|
15807
|
+
for (var i in keastIds) {
|
|
15808
|
+
sql += "'".concat(keastIds[i], "'").concat(i >= keastIds.length - 1 ? ')' : ',', " ");
|
|
15809
|
+
}
|
|
15929
15810
|
}
|
|
15930
|
-
|
|
15931
|
-
|
|
15932
|
-
|
|
15933
|
-
|
|
15934
|
-
|
|
15935
|
-
|
|
15936
|
-
|
|
15937
|
-
|
|
15938
|
-
|
|
15939
|
-
|
|
15940
|
-
|
|
15811
|
+
return sql;
|
|
15812
|
+
};
|
|
15813
|
+
this.buildPubmedSqlStatementForModels = function (model) {
|
|
15814
|
+
return "select distinct publication from publications where entity = '".concat(model, "'");
|
|
15815
|
+
};
|
|
15816
|
+
this.flatmapQuery = function (sql) {
|
|
15817
|
+
var data = {
|
|
15818
|
+
sql: sql
|
|
15819
|
+
};
|
|
15820
|
+
return fetch("".concat(this.flatmapApi, "knowledge/query/"), {
|
|
15821
|
+
method: 'POST',
|
|
15822
|
+
headers: {
|
|
15823
|
+
'Content-Type': 'application/json'
|
|
15824
|
+
},
|
|
15825
|
+
body: JSON.stringify(data)
|
|
15826
|
+
}).then(function (response) {
|
|
15827
|
+
return response.json();
|
|
15828
|
+
}).catch(function (error) {
|
|
15829
|
+
console.error('Error:', error);
|
|
15830
|
+
});
|
|
15831
|
+
};
|
|
15832
|
+
this.pubmedQueryOnIds = function (eventData) {
|
|
15833
|
+
var _this7 = this;
|
|
15834
|
+
var keastIds = eventData.resource;
|
|
15835
|
+
var source = eventData.feature.source;
|
|
15836
|
+
if (!keastIds || keastIds.length === 0) return;
|
|
15837
|
+
var sql = this.buildPubmedSqlStatement(keastIds);
|
|
15838
|
+
return this.flatmapQuery(sql).then(function (data) {
|
|
15839
|
+
// Create pubmed url on paths if we have them
|
|
15840
|
+
if (data.values.length > 0) {
|
|
15841
|
+
_this7.urls = [_this7.pubmedSearchUrl(data.values.map(function (id) {
|
|
15842
|
+
return _this7.stripPMIDPrefix(id[0]);
|
|
15843
|
+
}))];
|
|
15844
|
+
return true;
|
|
15845
|
+
} else {
|
|
15846
|
+
// Create pubmed url on models
|
|
15847
|
+
_this7.pubmedQueryOnModels(source).then(function () {
|
|
15848
|
+
return true;
|
|
15849
|
+
});
|
|
15850
|
+
}
|
|
15851
|
+
return false;
|
|
15852
|
+
});
|
|
15853
|
+
};
|
|
15854
|
+
this.pubmedQueryOnModels = function (source) {
|
|
15855
|
+
var _this8 = this;
|
|
15856
|
+
return this.flatmapQuery(this.buildPubmedSqlStatementForModels(source)).then(function (data) {
|
|
15857
|
+
if (Array.isArray(data.values) && data.values.length > 0) {
|
|
15858
|
+
_this8.urls = [_this8.pubmedSearchUrl(data.values.map(function (id) {
|
|
15859
|
+
return _this8.stripPMIDPrefix(id[0]);
|
|
15860
|
+
}))];
|
|
15861
|
+
} else {
|
|
15862
|
+
_this8.urls = []; // Clears the pubmed search button
|
|
15863
|
+
}
|
|
15941
15864
|
|
|
15942
|
-
|
|
15943
|
-
|
|
15865
|
+
return;
|
|
15866
|
+
});
|
|
15867
|
+
};
|
|
15868
|
+
this.pubmedSearchUrl = function (ids) {
|
|
15869
|
+
var url = 'https://pubmed.ncbi.nlm.nih.gov/?';
|
|
15870
|
+
var params = new URLSearchParams();
|
|
15871
|
+
params.append('term', ids);
|
|
15872
|
+
return url + params.toString();
|
|
15873
|
+
};
|
|
15874
|
+
};
|
|
15944
15875
|
|
|
15945
|
-
// Create readable labels from the nodes. Setting this to 'this.origins' updates the display
|
|
15946
|
-
_this8.createLabelLookup(conIds).then(function (lookUp) {
|
|
15947
|
-
_this8.destinations = axons.map(function (a) {
|
|
15948
|
-
return _this8.createLabelFromNeuralNode(a, lookUp);
|
|
15949
|
-
});
|
|
15950
|
-
_this8.origins = dendrites.map(function (d) {
|
|
15951
|
-
return _this8.createLabelFromNeuralNode(d, lookUp);
|
|
15952
|
-
});
|
|
15953
|
-
_this8.components = components.map(function (c) {
|
|
15954
|
-
return _this8.createLabelFromNeuralNode(c, lookUp);
|
|
15955
|
-
});
|
|
15956
|
-
_this8.flattenAndFindDatasets(components, axons, dendrites);
|
|
15957
|
-
resolve(true);
|
|
15958
|
-
});
|
|
15959
|
-
});
|
|
15960
|
-
}
|
|
15961
|
-
}, {
|
|
15962
|
-
key: "flattenConntectivity",
|
|
15963
|
-
value: function flattenConntectivity(connectivity) {
|
|
15964
|
-
var dnodes = connectivity.flat(); // get nodes from edgelist
|
|
15965
|
-
var nodes = _toConsumableArray(new Set(dnodes)); // remove duplicates
|
|
15966
|
-
var found = [];
|
|
15967
|
-
nodes.forEach(function (n) {
|
|
15968
|
-
if (Array.isArray(n)) {
|
|
15969
|
-
found.push(n.flat());
|
|
15970
|
-
} else {
|
|
15971
|
-
found.push(n);
|
|
15972
|
-
}
|
|
15973
|
-
});
|
|
15974
|
-
return found.flat();
|
|
15975
|
-
}
|
|
15976
|
-
}]);
|
|
15977
|
-
return FlatmapQueries;
|
|
15978
|
-
}();
|
|
15979
|
-
/* harmony default export */ var flatmapQueries = (flatmapQueries_FlatmapQueries);
|
|
15980
15876
|
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/FlatmapVuer.vue?vue&type=script&lang=js&
|
|
15981
15877
|
|
|
15982
15878
|
|
|
@@ -16230,7 +16126,7 @@ var createUnfilledTooltipData = function createUnfilledTooltipData() {
|
|
|
16230
16126
|
// checkNeuronClicked shows a neuron path pop up if a path was recently clicked
|
|
16231
16127
|
checkAndCreatePopups: function () {
|
|
16232
16128
|
var _checkAndCreatePopups = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(data) {
|
|
16233
|
-
var
|
|
16129
|
+
var results;
|
|
16234
16130
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
16235
16131
|
while (1) {
|
|
16236
16132
|
switch (_context.prev = _context.next) {
|
|
@@ -16238,9 +16134,9 @@ var createUnfilledTooltipData = function createUnfilledTooltipData() {
|
|
|
16238
16134
|
_context.next = 2;
|
|
16239
16135
|
return this.flatmapQueries.retrieveFlatmapKnowledgeForEvent(data);
|
|
16240
16136
|
case 2:
|
|
16241
|
-
|
|
16242
|
-
if (!
|
|
16243
|
-
if (data.feature.hyperlinks) {
|
|
16137
|
+
results = _context.sent;
|
|
16138
|
+
if (!results) {
|
|
16139
|
+
if (data.feature.hyperlinks && data.feature.hyperlinks.length > 0) {
|
|
16244
16140
|
this.resourceForTooltip = data.resource[0];
|
|
16245
16141
|
this.createTooltipFromNeuronCuration(data);
|
|
16246
16142
|
}
|
|
@@ -16506,10 +16402,18 @@ var createUnfilledTooltipData = function createUnfilledTooltipData() {
|
|
|
16506
16402
|
}
|
|
16507
16403
|
},
|
|
16508
16404
|
mapResize: function mapResize() {
|
|
16509
|
-
|
|
16510
|
-
this.mapImp
|
|
16405
|
+
try {
|
|
16406
|
+
if (this.mapImp) {
|
|
16407
|
+
this.mapImp.resize();
|
|
16408
|
+
this.showMinimap(this.displayMinimap);
|
|
16409
|
+
if (this.mapImp._minimap) {
|
|
16410
|
+
this.mapImp._minimap.resize();
|
|
16411
|
+
}
|
|
16412
|
+
}
|
|
16413
|
+
this.computePathControlsMaximumHeight();
|
|
16414
|
+
} catch (_unused) {
|
|
16415
|
+
console.error("Map resize error");
|
|
16511
16416
|
}
|
|
16512
|
-
this.computePathControlsMaximumHeight();
|
|
16513
16417
|
},
|
|
16514
16418
|
onFlatmapReady: function onFlatmapReady() {
|
|
16515
16419
|
// onFlatmapReady is used for functions that need to run immediately after the flatmap is loaded
|
|
@@ -16521,12 +16425,14 @@ var createUnfilledTooltipData = function createUnfilledTooltipData() {
|
|
|
16521
16425
|
this.backgroundChangeCallback(this.currentBackground);
|
|
16522
16426
|
this.pathways = this.mapImp.pathTypes();
|
|
16523
16427
|
this.mapImp.enableCentrelines(false);
|
|
16524
|
-
|
|
16428
|
+
//Disable layers for now
|
|
16429
|
+
//this.layers = this.mapImp.getLayers();
|
|
16525
16430
|
this.systems = this.mapImp.getSystems();
|
|
16526
16431
|
this.addResizeButtonToMinimap();
|
|
16527
16432
|
this.loading = false;
|
|
16528
16433
|
this.computePathControlsMaximumHeight();
|
|
16529
16434
|
this.drawerOpen = true;
|
|
16435
|
+
this.mapResize();
|
|
16530
16436
|
this.$emit("ready", this);
|
|
16531
16437
|
},
|
|
16532
16438
|
showMinimap: function showMinimap(flag) {
|
|
@@ -16665,7 +16571,8 @@ var createUnfilledTooltipData = function createUnfilledTooltipData() {
|
|
|
16665
16571
|
}],
|
|
16666
16572
|
centreLines: [{
|
|
16667
16573
|
label: "Display Nerves",
|
|
16668
|
-
key: "centrelines"
|
|
16574
|
+
key: "centrelines",
|
|
16575
|
+
enabled: false
|
|
16669
16576
|
}],
|
|
16670
16577
|
systems: [],
|
|
16671
16578
|
pathwaysMaxHeight: 1000,
|
|
@@ -16721,13 +16628,14 @@ var createUnfilledTooltipData = function createUnfilledTooltipData() {
|
|
|
16721
16628
|
var flatmap = __webpack_require__("4979");
|
|
16722
16629
|
this.mapManager = new flatmap.MapManager(this.flatmapAPI);
|
|
16723
16630
|
if (this.renderAtMounted) this.createFlatmap();
|
|
16724
|
-
this.flatmapQueries = new flatmapQueries_FlatmapQueries(
|
|
16631
|
+
this.flatmapQueries = new flatmapQueries_FlatmapQueries();
|
|
16632
|
+
this.flatmapQueries.initialise(this.sparcAPI, this.flatmapAPI);
|
|
16725
16633
|
}
|
|
16726
16634
|
});
|
|
16727
16635
|
// CONCATENATED MODULE: ./src/components/FlatmapVuer.vue?vue&type=script&lang=js&
|
|
16728
16636
|
/* harmony default export */ var components_FlatmapVuervue_type_script_lang_js_ = (FlatmapVuervue_type_script_lang_js_);
|
|
16729
|
-
// EXTERNAL MODULE: ./src/components/FlatmapVuer.vue?vue&type=style&index=0&id=
|
|
16730
|
-
var
|
|
16637
|
+
// EXTERNAL MODULE: ./src/components/FlatmapVuer.vue?vue&type=style&index=0&id=01bcf386&prod&scoped=true&lang=scss&
|
|
16638
|
+
var FlatmapVuervue_type_style_index_0_id_01bcf386_prod_scoped_true_lang_scss_ = __webpack_require__("9382");
|
|
16731
16639
|
|
|
16732
16640
|
// CONCATENATED MODULE: ./src/components/FlatmapVuer.vue
|
|
16733
16641
|
|
|
@@ -16744,13 +16652,13 @@ var FlatmapVuer_component = normalizeComponent(
|
|
|
16744
16652
|
staticRenderFns,
|
|
16745
16653
|
false,
|
|
16746
16654
|
null,
|
|
16747
|
-
"
|
|
16655
|
+
"01bcf386",
|
|
16748
16656
|
null
|
|
16749
16657
|
|
|
16750
16658
|
)
|
|
16751
16659
|
|
|
16752
16660
|
/* harmony default export */ var FlatmapVuer = (FlatmapVuer_component.exports);
|
|
16753
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
16661
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"1a046c7e-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/MultiFlatmapVuer.vue?vue&type=template&id=bf82e340&scoped=true&
|
|
16754
16662
|
var MultiFlatmapVuervue_type_template_id_bf82e340_scoped_true_render = function render() {
|
|
16755
16663
|
var _vm = this,
|
|
16756
16664
|
_c = _vm._self._c;
|
|
@@ -17343,13 +17251,6 @@ var MultiFlatmapVuer_component = normalizeComponent(
|
|
|
17343
17251
|
|
|
17344
17252
|
|
|
17345
17253
|
|
|
17346
|
-
/***/ }),
|
|
17347
|
-
|
|
17348
|
-
/***/ "fb89":
|
|
17349
|
-
/***/ (function(module, exports) {
|
|
17350
|
-
|
|
17351
|
-
module.exports = require("core-js/modules/es.symbol.to-primitive.js");
|
|
17352
|
-
|
|
17353
17254
|
/***/ }),
|
|
17354
17255
|
|
|
17355
17256
|
/***/ "fd22":
|