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

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.
@@ -3416,6 +3416,7 @@ video {
3416
3416
  transition-property: all;
3417
3417
  transition-duration: 100ms;
3418
3418
  transition-timing-function: cubic-bezier(0.4, 0, 1, 1);
3419
+ overflow: auto;
3419
3420
  }
3420
3421
 
3421
3422
  .psui-el-dropdown-menu-dialog-wrapper-dialog {
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.79",
4
4
  "description": "Policy Studio UI",
5
5
  "main": "src/index.js",
6
6
  "author": "Policy Studio Team",
@@ -18,7 +18,7 @@
18
18
  }
19
19
 
20
20
  &-dialog-wrapper {
21
- @apply psui-hidden psui-origin-top-right psui-bg-white psui-fixed psui-w-auto psui-rounded-md psui-z-50 psui-opacity-0 psui-shadow-elevation-20 psui-transition-all psui-duration-100 psui-ease-in;
21
+ @apply psui-hidden psui-origin-top-right psui-bg-white psui-fixed psui-w-auto psui-rounded-md psui-z-50 psui-opacity-0 psui-shadow-elevation-20 psui-transition-all psui-duration-100 psui-ease-in psui-overflow-auto;
22
22
 
23
23
  &-dialog {
24
24
  @apply psui-w-full;
@@ -202,7 +202,6 @@
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
205
  <PsTooltip v-if="isSelectedRow(column,item)">
207
206
  <template v-slot:trigger>
208
207
  <PsIcon
@@ -219,7 +218,9 @@
219
218
  </template>
220
219
  </PsTooltip>
221
220
 
222
- <PsTooltip v-else-if="column.hasProjections && !item.is_disabled && item.disable_projection_select !== true && (item.deep != 0 && layout == 'flexible')">
221
+ <PsTooltip v-else-if="column.hasProjections && !item.is_disabled && item.disable_projection_select !== true && layout != 'flexible' ||
222
+ column.hasProjections && item.disable_projection_select != true && item.deep != 0 && layout == 'flexible'"
223
+ >
223
224
  <template v-slot:trigger>
224
225
  <PsIcon
225
226
  icon="bar_chart"
@@ -576,13 +577,13 @@ export default {
576
577
  },
577
578
  onRowHover(index, item, type) {
578
579
  const parent = document.getElementById(`${item.id}`)
579
- const children = parent.children
580
+ const children = parent?.children
580
581
 
581
582
  if (type == 'enter' && item.index != 0 && item.deep != 0 && this.layout == 'flexible') {
582
583
  for (let i = 0; i < children.length; i++) {
583
584
  children[i].classList.add('hover-color')
584
585
  }
585
- } else {
586
+ } else if(parent) {
586
587
  parent.querySelectorAll('.hover-color').forEach(child => {
587
588
  child.classList.remove('hover-color')
588
589
  })
@@ -631,10 +632,12 @@ export default {
631
632
  return this.checkRowIsVisible(item) ? 'opened' : 'closed'
632
633
  },
633
634
  onSelectRow(item, column) {
634
- this.selectedRow = item.id
635
- this.policyItemSelected = { ...item }
636
- delete this.policyItemSelected.items
637
- this.columnSelectedKey = column.key
635
+ if(this.layout != 'flexible') {
636
+ this.selectedRow = item.id
637
+ this.policyItemSelected = { ...item }
638
+ delete this.policyItemSelected.items
639
+ this.columnSelectedKey = column.key
640
+ }
638
641
  this.$emit('policy-selected', { item: item, column: column })
639
642
  },
640
643
  onCloseSelectRow(item, column) {