@policystudio/policy-studio-ui-vue 1.1.42 → 1.1.44

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": "@policystudio/policy-studio-ui-vue",
3
- "version": "1.1.42",
3
+ "version": "1.1.44",
4
4
  "description": "Policy Studio UI",
5
5
  "main": "src/index.js",
6
6
  "author": "Policy Studio Team",
@@ -188,7 +188,7 @@
188
188
  class="psui-cursor-pointer"
189
189
  icon-classes="psui-text-blue-60 psui-leading-none psui-transition"
190
190
  display="flex"
191
- @click.native="onCloseSelectRow(item)"
191
+ @click.native="onCloseSelectRow(item,column)"
192
192
  />
193
193
  </template>
194
194
  <template v-slot:content>
@@ -436,8 +436,8 @@ export default {
436
436
  },
437
437
  mounted () {
438
438
  this.setCollapsedRows()
439
- this.$eventBus.$on('resetPolicyImpactItemSelected', (item) => {
440
- this.$eventBus.$emit('setPolicyItemSelected', { item, columnSelectedKey: 'forecast_emissions_savings' })
439
+ this.$eventBus.$on('resetPolicyImpactItemSelected', (item, columnKey = 'forecast_emissions_savings') => {
440
+ this.$eventBus.$emit('setPolicyItemSelected', { item, columnSelectedKey: columnKey })
441
441
  this.selectedRow = null
442
442
  })
443
443
  },
@@ -538,8 +538,8 @@ export default {
538
538
  this.columnSelectedKey = column.key
539
539
  this.$emit('policy-selected', { item: item, column: column })
540
540
  },
541
- onCloseSelectRow(item) {
542
- this.$eventBus.$emit('resetPolicyImpactItemSelected', item)
541
+ onCloseSelectRow(item, column) {
542
+ this.$eventBus.$emit('resetPolicyImpactItemSelected', item, column)
543
543
  },
544
544
  isSelectedRow(column,item) {
545
545
  if(!item.id){