@abi-software/flatmapvuer 0.3.0-beta-1 → 0.3.0-beta-2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/flatmapvuer.common.js +40 -34
- package/dist/flatmapvuer.common.js.map +1 -1
- package/dist/flatmapvuer.css +1 -1
- package/dist/flatmapvuer.umd.js +40 -34
- 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 +1 -1
- package/package.json +1 -1
- package/src/components/Tooltip.vue +8 -5
package/package-lock.json
CHANGED
package/package.json
CHANGED
|
@@ -194,7 +194,7 @@ export default {
|
|
|
194
194
|
return sql
|
|
195
195
|
},
|
|
196
196
|
buildLabelSqlStatement: function(uberons) {
|
|
197
|
-
let sql = 'select label from labels where entity in ('
|
|
197
|
+
let sql = 'select entity, label from labels where entity in ('
|
|
198
198
|
if (uberons.length === 1) {
|
|
199
199
|
sql += `'${uberons[0]}')`
|
|
200
200
|
} else if (uberons.length > 1) {
|
|
@@ -217,10 +217,13 @@ export default {
|
|
|
217
217
|
})
|
|
218
218
|
.then(response => response.json())
|
|
219
219
|
.then(payload => {
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
220
|
+
const entity = payload.keys.indexOf("entity");
|
|
221
|
+
const label = payload.keys.indexOf("label");
|
|
222
|
+
if (entity > -1 && label > -1) {
|
|
223
|
+
payload.values.forEach(pair => {
|
|
224
|
+
uberonMap[pair[entity]] = pair[label];
|
|
225
|
+
});
|
|
226
|
+
}
|
|
224
227
|
resolve(uberonMap)
|
|
225
228
|
})
|
|
226
229
|
})
|