@policystudio/policy-studio-ui-vue 1.1.75 → 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.75",
3
+ "version": "1.1.77",
4
4
  "description": "Policy Studio UI",
5
5
  "main": "src/index.js",
6
6
  "author": "Policy Studio Team",
@@ -143,6 +143,8 @@ export default {
143
143
  PSDropdownDialog.style.position = 'fixed'
144
144
  PSDropdownDialog.style.top = `${rectTrigger.y + rectTrigger.height}px`
145
145
 
146
+ PSDropdownDialog.style.minWidth = `${rectTrigger.width}px`
147
+
146
148
  if (rectTrigger.x + rectDialog.width + 20 > windowWidth) {
147
149
  PSDropdownDialog.style.left = `${
148
150
  windowWidth - rectDialog.width - 30
@@ -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"
@@ -264,7 +278,6 @@
264
278
  :value="item.data[column.key] == '--' ? 0 : item.data[column.key]"
265
279
  :force-break-even="item.data[column.key] === '--' ? true : false"
266
280
  />
267
-
268
281
  <div
269
282
  v-if="column.isSwitch && item.data[column.key] != null"
270
283
  class="psui-inline-flex"
@@ -577,7 +590,7 @@ export default {
577
590
  },
578
591
  onRowHover(index, item, type) {
579
592
  const parent = document.getElementById(`${item.id}`)
580
- const children = parent.children
593
+ const children = parent?.children
581
594
 
582
595
  if (type == 'enter' && item.index != 0 && item.deep != 0 && this.layout == 'flexible') {
583
596
  for (let i = 0; i < children.length; i++) {
@@ -632,10 +645,12 @@ export default {
632
645
  return this.checkRowIsVisible(item) ? 'opened' : 'closed'
633
646
  },
634
647
  onSelectRow(item, column) {
635
- this.selectedRow = item.id
636
- this.policyItemSelected = { ...item }
637
- delete this.policyItemSelected.items
638
- 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
+ }
639
654
  this.$emit('policy-selected', { item: item, column: column })
640
655
  },
641
656
  onCloseSelectRow(item, column) {