@abi-software/flatmapvuer 1.3.1 → 1.3.2-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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abi-software/flatmapvuer",
3
- "version": "1.3.1",
3
+ "version": "1.3.2-beta.0",
4
4
  "license": "Apache-2.0",
5
5
  "files": [
6
6
  "dist/*",
@@ -1996,7 +1996,7 @@ export default {
1996
1996
  }
1997
1997
  // If connectivityInfoSidebar is set to `true`
1998
1998
  // Connectivity info will show in sidebar
1999
- if (this.connectivityInfoSidebar && this.viewingMode !== 'Annotation') {
1999
+ if ((this.connectivityInfoSidebar && this.isTooltipEntry()) && this.viewingMode !== 'Annotation') {
2000
2000
  // move the map center to highlighted area
2001
2001
  // this method is moved to sidebar connectivity info
2002
2002
  // const featureIds = [feature];
@@ -2007,14 +2007,41 @@ export default {
2007
2007
  // And connectivityInfoSidebar is not set (default) or set to `false`
2008
2008
  // Provenance popup will be shown on map
2009
2009
  // Tooltip will be shown for Annotation view
2010
- if (!this.disableUI && (!this.connectivityInfoSidebar || this.viewingMode === 'Annotation')) {
2010
+ if (
2011
+ !this.disableUI && (
2012
+ this.viewingMode === 'Annotation' ||
2013
+ (
2014
+ this.viewingMode === 'Exploration' &&
2015
+ !this.connectivityInfoSidebar &&
2016
+ this.isTooltipEntry()
2017
+ )
2018
+ )
2019
+ ) {
2011
2020
  this.tooltipDisplay = true;
2012
2021
  this.$nextTick(() => {
2013
- this.mapImp.showPopup(featureId, this.$refs.tooltip.$el, options)
2014
- this.popUpCssHacks()
2015
- })
2022
+ this.mapImp.showPopup(featureId, this.$refs.tooltip.$el, options);
2023
+ this.popUpCssHacks();
2024
+ });
2025
+
2016
2026
  }
2017
2027
  },
2028
+ isTooltipEntry: function () {
2029
+ const {
2030
+ components,
2031
+ destinations,
2032
+ origins,
2033
+ provenanceTaxonomy,
2034
+ provenanceTaxonomyLabel
2035
+ } = this.tooltipEntry;
2036
+
2037
+ return Boolean(
2038
+ components?.length ||
2039
+ destinations?.length ||
2040
+ origins?.length ||
2041
+ provenanceTaxonomy?.length ||
2042
+ provenanceTaxonomyLabel?.length
2043
+ );
2044
+ },
2018
2045
  /**
2019
2046
  * Move the map to the left side
2020
2047
  * to the visible area of the feature IDs
@@ -8,6 +8,7 @@ export {}
8
8
  declare module 'vue' {
9
9
  export interface GlobalComponents {
10
10
  DynamicLegends: typeof import('./components/legends/DynamicLegends.vue')['default']
11
+ ElAutocomplete: typeof import('element-plus/es')['ElAutocomplete']
11
12
  ElButton: typeof import('element-plus/es')['ElButton']
12
13
  ElCheckbox: typeof import('element-plus/es')['ElCheckbox']
13
14
  ElCheckboxGroup: typeof import('element-plus/es')['ElCheckboxGroup']
@@ -23,6 +24,7 @@ declare module 'vue' {
23
24
  ElRadioGroup: typeof import('element-plus/es')['ElRadioGroup']
24
25
  ElRow: typeof import('element-plus/es')['ElRow']
25
26
  ElSelect: typeof import('element-plus/es')['ElSelect']
27
+ ElSwitch: typeof import('element-plus/es')['ElSwitch']
26
28
  FlatmapVuer: typeof import('./components/FlatmapVuer.vue')['default']
27
29
  MultiFlatmapVuer: typeof import('./components/MultiFlatmapVuer.vue')['default']
28
30
  SelectionsGroup: typeof import('./components/SelectionsGroup.vue')['default']