@abi-software/map-utilities 1.7.8-beta.2 → 1.7.8-demo.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/map-utilities.js +10029 -9951
- package/dist/map-utilities.umd.cjs +60 -58
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/components/CompetencyQueries/CompetencyQueries.js +51 -0
- package/src/components/ConnectivityList/ConnectivityList.vue +151 -151
- package/src/components/ConnectivityList/ConnectivityListNew.vue +580 -0
- package/src/components/Tooltip/CreateTooltipContent.vue +38 -139
- package/src/components/index.js +4 -0
- package/src/components/utilities.js +8 -0
- package/src/components.d.ts +1 -1
package/package.json
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { removeDuplicates } from '../utilities';
|
|
2
|
+
|
|
1
3
|
/**
|
|
2
4
|
* @private
|
|
3
5
|
* Competency Queries
|
|
@@ -28,6 +30,54 @@ async function _postRequest(API_URL, payload) {
|
|
|
28
30
|
}
|
|
29
31
|
}
|
|
30
32
|
|
|
33
|
+
/**
|
|
34
|
+
* CQ query 27: Single Connectivity List
|
|
35
|
+
* @param {*} flatmapAPI
|
|
36
|
+
* @param {*} knowledgeSource mapuuid
|
|
37
|
+
* @param {*} pathId
|
|
38
|
+
* @returns combined connectivity list
|
|
39
|
+
*/
|
|
40
|
+
async function querySingleConnectivityList(flatmapAPI, knowledgeSource, pathId) {
|
|
41
|
+
const data = await competencyQuery({
|
|
42
|
+
flatmapAPI: flatmapAPI,
|
|
43
|
+
knowledgeSource: knowledgeSource,
|
|
44
|
+
queryId: 27,
|
|
45
|
+
parameters: [
|
|
46
|
+
{
|
|
47
|
+
column: 'path_id',
|
|
48
|
+
value: pathId
|
|
49
|
+
},
|
|
50
|
+
]
|
|
51
|
+
});
|
|
52
|
+
|
|
53
|
+
if (data?.results?.values) {
|
|
54
|
+
const connectivityList = data.results.values.map((value) => {
|
|
55
|
+
// value => [
|
|
56
|
+
// "sckan_id",
|
|
57
|
+
// "path_id",
|
|
58
|
+
// "sckan_node_id",
|
|
59
|
+
// "sckan_node_label",
|
|
60
|
+
// "source_id", // mapuuid
|
|
61
|
+
// "node_id", // map node id
|
|
62
|
+
// "node_label" // map node label
|
|
63
|
+
// ]
|
|
64
|
+
return {
|
|
65
|
+
sckanId: value[0],
|
|
66
|
+
mapUUID: value[4],
|
|
67
|
+
pathId: value[1],
|
|
68
|
+
sckanNodeId: value[2] ? JSON.parse(value[2]) : [],
|
|
69
|
+
sckanNodeLabel: value[3] || "",
|
|
70
|
+
mapNodeId: value[5] ? JSON.parse(value[5]) : [],
|
|
71
|
+
mapNodeLabel: value[6] || "",
|
|
72
|
+
};
|
|
73
|
+
});
|
|
74
|
+
// remove duplicates
|
|
75
|
+
return removeDuplicates(connectivityList);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
return [];
|
|
79
|
+
}
|
|
80
|
+
|
|
31
81
|
/**
|
|
32
82
|
* Competency Query
|
|
33
83
|
* @public
|
|
@@ -392,4 +442,5 @@ export {
|
|
|
392
442
|
queryPathsByDestination,
|
|
393
443
|
queryPathsByRoute,
|
|
394
444
|
queryForwardBackwardConnections,
|
|
445
|
+
querySingleConnectivityList,
|
|
395
446
|
};
|
|
@@ -19,172 +19,172 @@
|
|
|
19
19
|
{{ connectivityError.errorMessage }}
|
|
20
20
|
</template>
|
|
21
21
|
</el-popover>
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
>
|
|
32
|
-
<template #reference>
|
|
33
|
-
<el-icon class="info"><el-icon-warning /></el-icon>
|
|
34
|
-
</template>
|
|
35
|
-
<span style="word-break: keep-all">
|
|
36
|
-
<i>Origin</i> {{ originDescription }}
|
|
37
|
-
</span>
|
|
38
|
-
</el-popover>
|
|
39
|
-
</div>
|
|
40
|
-
<div
|
|
41
|
-
v-for="(origin, i) in origins"
|
|
42
|
-
class="attribute-content"
|
|
43
|
-
:origin-item-label="origin"
|
|
44
|
-
:key="origin"
|
|
45
|
-
@mouseenter="onConnectivityHovered(origin, $event)"
|
|
46
|
-
@mouseleave="onConnectivityHovered()"
|
|
47
|
-
>
|
|
48
|
-
<el-popover
|
|
49
|
-
width="150"
|
|
50
|
-
trigger="hover"
|
|
51
|
-
:teleported="false"
|
|
52
|
-
popper-class="popover-origin-help"
|
|
53
|
-
>
|
|
54
|
-
<template #reference>
|
|
55
|
-
<el-icon
|
|
56
|
-
class="magnify-glass"
|
|
57
|
-
v-show="shouldShowMagnifyGlass(origin,)"
|
|
58
|
-
@click="onConnectivityClicked(origin)"
|
|
59
|
-
>
|
|
60
|
-
<el-icon-search />
|
|
61
|
-
</el-icon>
|
|
62
|
-
</template>
|
|
63
|
-
<span>Search connectivity</span>
|
|
64
|
-
</el-popover>
|
|
65
|
-
<span>{{ capitalise(origin) }}</span>
|
|
66
|
-
</div>
|
|
67
|
-
<el-button
|
|
68
|
-
v-show="
|
|
69
|
-
originsWithDatasets && originsWithDatasets.length > 0 &&
|
|
70
|
-
shouldShowExploreButton(originsWithDatasets)
|
|
71
|
-
"
|
|
72
|
-
class="button"
|
|
73
|
-
id="open-dendrites-button"
|
|
74
|
-
@click="openDendrites"
|
|
22
|
+
{{ entry.paths }}
|
|
23
|
+
<div v-if="origins && origins.length > 0" class="block">
|
|
24
|
+
<div class="attribute-title-container">
|
|
25
|
+
<span class="attribute-title">Origin</span>
|
|
26
|
+
<el-popover
|
|
27
|
+
width="250"
|
|
28
|
+
trigger="hover"
|
|
29
|
+
:teleported="false"
|
|
30
|
+
popper-class="popover-origin-help"
|
|
75
31
|
>
|
|
76
|
-
|
|
77
|
-
|
|
32
|
+
<template #reference>
|
|
33
|
+
<el-icon class="info"><el-icon-warning /></el-icon>
|
|
34
|
+
</template>
|
|
35
|
+
<span style="word-break: keep-all">
|
|
36
|
+
<i>Origin</i> {{ originDescription }}
|
|
37
|
+
</span>
|
|
38
|
+
</el-popover>
|
|
78
39
|
</div>
|
|
79
40
|
<div
|
|
80
|
-
v-
|
|
81
|
-
class="
|
|
41
|
+
v-for="(origin, i) in origins"
|
|
42
|
+
class="attribute-content"
|
|
43
|
+
:origin-item-label="origin"
|
|
44
|
+
:key="origin"
|
|
45
|
+
@mouseenter="onConnectivityHovered(origin, $event)"
|
|
46
|
+
@mouseleave="onConnectivityHovered()"
|
|
82
47
|
>
|
|
83
|
-
<
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
class="attribute-content"
|
|
89
|
-
:component-item-label="component"
|
|
90
|
-
:key="component"
|
|
91
|
-
@mouseenter="onConnectivityHovered(component, $event)"
|
|
92
|
-
@mouseleave="onConnectivityHovered()"
|
|
48
|
+
<el-popover
|
|
49
|
+
width="150"
|
|
50
|
+
trigger="hover"
|
|
51
|
+
:teleported="false"
|
|
52
|
+
popper-class="popover-origin-help"
|
|
93
53
|
>
|
|
94
|
-
<
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
54
|
+
<template #reference>
|
|
55
|
+
<el-icon
|
|
56
|
+
class="magnify-glass"
|
|
57
|
+
v-show="shouldShowMagnifyGlass(origin,)"
|
|
58
|
+
@click="onConnectivityClicked(origin)"
|
|
59
|
+
>
|
|
60
|
+
<el-icon-search />
|
|
61
|
+
</el-icon>
|
|
62
|
+
</template>
|
|
63
|
+
<span>Search connectivity</span>
|
|
64
|
+
</el-popover>
|
|
65
|
+
<span>{{ capitalise(origin) }}</span>
|
|
66
|
+
</div>
|
|
67
|
+
<el-button
|
|
68
|
+
v-show="
|
|
69
|
+
originsWithDatasets && originsWithDatasets.length > 0 &&
|
|
70
|
+
shouldShowExploreButton(originsWithDatasets)
|
|
71
|
+
"
|
|
72
|
+
class="button"
|
|
73
|
+
id="open-dendrites-button"
|
|
74
|
+
@click="openDendrites"
|
|
75
|
+
>
|
|
76
|
+
Explore origin data
|
|
77
|
+
</el-button>
|
|
78
|
+
</div>
|
|
79
|
+
<div
|
|
80
|
+
v-if="components && components.length > 0"
|
|
81
|
+
class="block"
|
|
82
|
+
>
|
|
83
|
+
<div class="attribute-title-container">
|
|
84
|
+
<span class="attribute-title">Components</span>
|
|
113
85
|
</div>
|
|
114
86
|
<div
|
|
115
|
-
v-
|
|
116
|
-
class="
|
|
87
|
+
v-for="(component, i) in components"
|
|
88
|
+
class="attribute-content"
|
|
89
|
+
:component-item-label="component"
|
|
90
|
+
:key="component"
|
|
91
|
+
@mouseenter="onConnectivityHovered(component, $event)"
|
|
92
|
+
@mouseleave="onConnectivityHovered()"
|
|
117
93
|
>
|
|
118
|
-
<
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
:teleported="false"
|
|
124
|
-
popper-class="popover-origin-help"
|
|
125
|
-
>
|
|
126
|
-
<template #reference>
|
|
127
|
-
<el-icon class="info"><el-icon-warning /></el-icon>
|
|
128
|
-
</template>
|
|
129
|
-
<span style="word-break: keep-all">
|
|
130
|
-
<i>Destination</i> is where the axons terminate
|
|
131
|
-
</span>
|
|
132
|
-
</el-popover>
|
|
133
|
-
</div>
|
|
134
|
-
<div
|
|
135
|
-
v-for="(destination, i) in destinations"
|
|
136
|
-
class="attribute-content"
|
|
137
|
-
:destination-item-label="destination"
|
|
138
|
-
:key="destination"
|
|
139
|
-
@mouseenter="onConnectivityHovered(destination, $event)"
|
|
140
|
-
@mouseleave="onConnectivityHovered()"
|
|
94
|
+
<el-popover
|
|
95
|
+
width="150"
|
|
96
|
+
trigger="hover"
|
|
97
|
+
:teleported="false"
|
|
98
|
+
popper-class="popover-origin-help"
|
|
141
99
|
>
|
|
142
|
-
<
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
<
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
"
|
|
167
|
-
class="button"
|
|
168
|
-
@click="openAxons"
|
|
100
|
+
<template #reference>
|
|
101
|
+
<el-icon
|
|
102
|
+
class="magnify-glass"
|
|
103
|
+
v-show="shouldShowMagnifyGlass(component)"
|
|
104
|
+
@click="onConnectivityClicked(component)"
|
|
105
|
+
>
|
|
106
|
+
<el-icon-search />
|
|
107
|
+
</el-icon>
|
|
108
|
+
</template>
|
|
109
|
+
<span>Search connectivity</span>
|
|
110
|
+
</el-popover>
|
|
111
|
+
<span>{{ capitalise(component) }}</span>
|
|
112
|
+
</div>
|
|
113
|
+
</div>
|
|
114
|
+
<div
|
|
115
|
+
v-if="destinations && destinations.length > 0"
|
|
116
|
+
class="block"
|
|
117
|
+
>
|
|
118
|
+
<div class="attribute-title-container">
|
|
119
|
+
<span class="attribute-title">Destination</span>
|
|
120
|
+
<el-popover
|
|
121
|
+
width="250"
|
|
122
|
+
trigger="hover"
|
|
123
|
+
:teleported="false"
|
|
124
|
+
popper-class="popover-origin-help"
|
|
169
125
|
>
|
|
170
|
-
|
|
171
|
-
|
|
126
|
+
<template #reference>
|
|
127
|
+
<el-icon class="info"><el-icon-warning /></el-icon>
|
|
128
|
+
</template>
|
|
129
|
+
<span style="word-break: keep-all">
|
|
130
|
+
<i>Destination</i> is where the axons terminate
|
|
131
|
+
</span>
|
|
132
|
+
</el-popover>
|
|
172
133
|
</div>
|
|
173
134
|
<div
|
|
174
|
-
v-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
"
|
|
179
|
-
|
|
135
|
+
v-for="(destination, i) in destinations"
|
|
136
|
+
class="attribute-content"
|
|
137
|
+
:destination-item-label="destination"
|
|
138
|
+
:key="destination"
|
|
139
|
+
@mouseenter="onConnectivityHovered(destination, $event)"
|
|
140
|
+
@mouseleave="onConnectivityHovered()"
|
|
180
141
|
>
|
|
181
|
-
<el-
|
|
182
|
-
|
|
183
|
-
|
|
142
|
+
<el-popover
|
|
143
|
+
width="150"
|
|
144
|
+
trigger="hover"
|
|
145
|
+
:teleported="false"
|
|
146
|
+
popper-class="popover-origin-help"
|
|
184
147
|
>
|
|
185
|
-
|
|
186
|
-
|
|
148
|
+
<template #reference>
|
|
149
|
+
<el-icon
|
|
150
|
+
class="magnify-glass"
|
|
151
|
+
v-show="shouldShowMagnifyGlass(destination)"
|
|
152
|
+
@click="onConnectivityClicked(destination)"
|
|
153
|
+
>
|
|
154
|
+
<el-icon-search />
|
|
155
|
+
</el-icon>
|
|
156
|
+
</template>
|
|
157
|
+
<span>Search connectivity</span>
|
|
158
|
+
</el-popover>
|
|
159
|
+
<span>{{ capitalise(destination) }}</span>
|
|
187
160
|
</div>
|
|
161
|
+
<el-button
|
|
162
|
+
v-show="
|
|
163
|
+
destinationsWithDatasets &&
|
|
164
|
+
destinationsWithDatasets.length > 0 &&
|
|
165
|
+
shouldShowExploreButton(destinationsWithDatasets)
|
|
166
|
+
"
|
|
167
|
+
class="button"
|
|
168
|
+
@click="openAxons"
|
|
169
|
+
>
|
|
170
|
+
Explore destination data
|
|
171
|
+
</el-button>
|
|
172
|
+
</div>
|
|
173
|
+
<div
|
|
174
|
+
v-show="
|
|
175
|
+
componentsWithDatasets &&
|
|
176
|
+
componentsWithDatasets.length > 0 &&
|
|
177
|
+
shouldShowExploreButton(componentsWithDatasets)
|
|
178
|
+
"
|
|
179
|
+
class="block"
|
|
180
|
+
>
|
|
181
|
+
<el-button
|
|
182
|
+
class="button"
|
|
183
|
+
@click="openAll"
|
|
184
|
+
>
|
|
185
|
+
Search for data on components
|
|
186
|
+
</el-button>
|
|
187
|
+
</div>
|
|
188
188
|
</div>
|
|
189
189
|
</template>
|
|
190
190
|
|