@abi-software/map-side-bar 2.4.2-beta.6 → 2.4.2-beta.7

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/map-side-bar",
3
- "version": "2.4.2-beta.6",
3
+ "version": "2.4.2-beta.7",
4
4
  "files": [
5
5
  "dist/*",
6
6
  "src/*",
@@ -196,6 +196,7 @@
196
196
  <connectivity-graph
197
197
  :entry="entry.featureId[0]"
198
198
  :mapServer="envVars.FLATMAPAPI_LOCATION"
199
+ @tap-node="onTapNode"
199
200
  ref="connectivityGraphRef"
200
201
  />
201
202
  </div>
@@ -388,6 +389,12 @@ export default {
388
389
  });
389
390
  }
390
391
  },
392
+ onTapNode: function (data) {
393
+ /**
394
+ * This event is triggered by connectivity-graph's `tap-node` event.
395
+ */
396
+ this.$emit('connectivity-component-click', data);
397
+ },
391
398
  getUpdateCopyContent: function () {
392
399
  if (!this.entry) {
393
400
  return '';
@@ -38,6 +38,7 @@
38
38
  :envVars="envVars"
39
39
  :ref="'connectivityTab_' + tab.id"
40
40
  @show-connectivity="showConnectivity"
41
+ @connectivity-component-click="onConnectivityComponentClick"
41
42
  />
42
43
  </template>
43
44
  <template v-else>
@@ -155,6 +156,13 @@ export default {
155
156
  showConnectivity: function (featureIds) {
156
157
  this.$emit('show-connectivity', featureIds);
157
158
  },
159
+ /**
160
+ * This function is triggered after a connectivity component is clicked.
161
+ * @arg data
162
+ */
163
+ onConnectivityComponentClick: function (data) {
164
+ this.$emit('connectivity-component-click', data);
165
+ },
158
166
  /**
159
167
  * This event is emitted when the search filters are changed.
160
168
  * @arg `obj` {data, id}