@policystudio/policy-studio-ui-vue 1.1.74 → 1.1.76
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
|
@@ -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
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
/>
|
|
58
58
|
</div>
|
|
59
59
|
<div
|
|
60
|
-
class="psui-flex psui-items-center
|
|
60
|
+
class="psui-flex psui-items-center psui-space-x-3"
|
|
61
61
|
:style="{paddingLeft: `${item.deep * 16}px`}"
|
|
62
62
|
>
|
|
63
63
|
<PsIcon
|
|
@@ -136,7 +136,7 @@
|
|
|
136
136
|
layout="gray"
|
|
137
137
|
class="psui-inline-flex psui-cursor-default"
|
|
138
138
|
:class="[isHoveringRow === index ? 'opacity-1' : 'opacity-0']"
|
|
139
|
-
:ignoreDialog="
|
|
139
|
+
:ignoreDialog="getIgnoreDialogIcon(item)"
|
|
140
140
|
>
|
|
141
141
|
<template v-slot:trigger>
|
|
142
142
|
<PsIcon
|
|
@@ -219,7 +219,7 @@
|
|
|
219
219
|
</template>
|
|
220
220
|
</PsTooltip>
|
|
221
221
|
|
|
222
|
-
<PsTooltip v-else-if="column.hasProjections && !item.is_disabled && item.disable_projection_select !== true">
|
|
222
|
+
<PsTooltip v-else-if="column.hasProjections && !item.is_disabled && item.disable_projection_select !== true && (item.deep != 0 && layout == 'flexible')">
|
|
223
223
|
<template v-slot:trigger>
|
|
224
224
|
<PsIcon
|
|
225
225
|
icon="bar_chart"
|
|
@@ -264,7 +264,6 @@
|
|
|
264
264
|
:value="item.data[column.key] == '--' ? 0 : item.data[column.key]"
|
|
265
265
|
:force-break-even="item.data[column.key] === '--' ? true : false"
|
|
266
266
|
/>
|
|
267
|
-
|
|
268
267
|
<div
|
|
269
268
|
v-if="column.isSwitch && item.data[column.key] != null"
|
|
270
269
|
class="psui-inline-flex"
|
|
@@ -591,6 +590,9 @@ export default {
|
|
|
591
590
|
|
|
592
591
|
this.isHoveringRow = index
|
|
593
592
|
},
|
|
593
|
+
getIgnoreDialogIcon(item){
|
|
594
|
+
return !this.shouldShowIcon(item) || item.actions[0].ignoreDialog
|
|
595
|
+
},
|
|
594
596
|
shouldShowIcon(item) {
|
|
595
597
|
if(item?.actions?.length === 1) return true
|
|
596
598
|
else return false
|