@policystudio/policy-studio-ui-vue 1.1.76 → 1.1.77

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.76",
3
+ "version": "1.1.77",
4
4
  "description": "Policy Studio UI",
5
5
  "main": "src/index.js",
6
6
  "author": "Policy Studio Team",
@@ -202,8 +202,22 @@
202
202
  class="psui-space-x-2 psui-show-childrens-on-hover"
203
203
  :class="column.isCenteredContent ? 'psui-justify-center' : 'psui-justify-end'"
204
204
  >
205
-
206
- <PsTooltip v-if="isSelectedRow(column,item)">
205
+ <PsTooltip v-if="selectedRow == item.id && columnSelectedKey == column.key && layout == 'flexible'">
206
+ <template v-slot:trigger>
207
+ <PsIcon
208
+ icon="bar_chart"
209
+ size="16"
210
+ class="psui-cursor-pointer"
211
+ icon-classes="psui-text-blue-60 psui-leading-none psui-transition"
212
+ display="flex"
213
+ @click.native="onSelectRow(item, column)"
214
+ />
215
+ </template>
216
+ <template v-slot:content>
217
+ Close projections
218
+ </template>
219
+ </PsTooltip>
220
+ <PsTooltip v-else-if="isSelectedRow(column,item)">
207
221
  <template v-slot:trigger>
208
222
  <PsIcon
209
223
  icon="close"
@@ -219,7 +233,7 @@
219
233
  </template>
220
234
  </PsTooltip>
221
235
 
222
- <PsTooltip v-else-if="column.hasProjections && !item.is_disabled && item.disable_projection_select !== true && (item.deep != 0 && layout == 'flexible')">
236
+ <PsTooltip v-else-if="column.hasProjections && !item.is_disabled && item.disable_projection_select !== true">
223
237
  <template v-slot:trigger>
224
238
  <PsIcon
225
239
  icon="bar_chart"
@@ -576,7 +590,7 @@ export default {
576
590
  },
577
591
  onRowHover(index, item, type) {
578
592
  const parent = document.getElementById(`${item.id}`)
579
- const children = parent.children
593
+ const children = parent?.children
580
594
 
581
595
  if (type == 'enter' && item.index != 0 && item.deep != 0 && this.layout == 'flexible') {
582
596
  for (let i = 0; i < children.length; i++) {
@@ -631,10 +645,12 @@ export default {
631
645
  return this.checkRowIsVisible(item) ? 'opened' : 'closed'
632
646
  },
633
647
  onSelectRow(item, column) {
634
- this.selectedRow = item.id
635
- this.policyItemSelected = { ...item }
636
- delete this.policyItemSelected.items
637
- this.columnSelectedKey = column.key
648
+ if(this.layout != 'flexible') {
649
+ this.selectedRow = item.id
650
+ this.policyItemSelected = { ...item }
651
+ delete this.policyItemSelected.items
652
+ this.columnSelectedKey = column.key
653
+ }
638
654
  this.$emit('policy-selected', { item: item, column: column })
639
655
  },
640
656
  onCloseSelectRow(item, column) {