@policystudio/policy-studio-ui-vue 1.1.23 → 1.1.26
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
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
v-if="rightLabelFormatter"
|
|
37
37
|
class="psui-el-dropdown-menu-list-item-rigth-label"
|
|
38
38
|
>
|
|
39
|
-
{{ rightLabelFormatter(item.key,
|
|
39
|
+
{{ rightLabelFormatter(item.key, getStudyDataLevel[item.key], getStudyDataLevel) }}
|
|
40
40
|
</div>
|
|
41
41
|
<div
|
|
42
42
|
v-else
|
|
@@ -142,6 +142,9 @@ export default {
|
|
|
142
142
|
getItems() {
|
|
143
143
|
return this.items
|
|
144
144
|
},
|
|
145
|
+
getStudyDataLevel() {
|
|
146
|
+
return this.studyData?.data || this.studyData
|
|
147
|
+
},
|
|
145
148
|
},
|
|
146
149
|
methods: {
|
|
147
150
|
selectItem(item) {
|
|
@@ -44,7 +44,9 @@
|
|
|
44
44
|
class="actions-button psui-transition psui-transform psui-cursor-pointer"
|
|
45
45
|
:icon-classes="item.is_disabled ? 'psui-text-gray-40' : getIconClasses(item)"
|
|
46
46
|
display="flex"
|
|
47
|
-
:class="[checkRowIsVisible(item) ? 'psui-rotate-0' : 'psui--rotate-90',
|
|
47
|
+
:class="[checkRowIsVisible(item) ? 'psui-rotate-0' : 'psui--rotate-90',
|
|
48
|
+
{ 'psui-pointer-events-none psui--rotate-90' : item.items.length == 0}
|
|
49
|
+
]"
|
|
48
50
|
@click.native="onCollapse(item)"
|
|
49
51
|
/>
|
|
50
52
|
|
|
@@ -57,7 +59,7 @@
|
|
|
57
59
|
>
|
|
58
60
|
<template v-slot:trigger>
|
|
59
61
|
<div class="flex psui-items-center psui-relative ">
|
|
60
|
-
<PsIcon v-if="item.
|
|
62
|
+
<PsIcon v-if="item.has_blocked_icon" icon="do_disturb_alt" size="14" icon-classes="psui-absolute psui--left-1 psui-text-gray-50"/>
|
|
61
63
|
<p class="title psui-text-gray-50 opacity-100-childrens-on-hover">
|
|
62
64
|
|
|
63
65
|
{{ item.title }}
|
|
@@ -75,7 +77,7 @@
|
|
|
75
77
|
</template>
|
|
76
78
|
<template v-slot:content>
|
|
77
79
|
<p
|
|
78
|
-
v-if="item.tooltip_text
|
|
80
|
+
v-if="item.tooltip_text"
|
|
79
81
|
class="psui-font-bold psui-text-gray-80 psui-text-xsmall"
|
|
80
82
|
>
|
|
81
83
|
{{ item.tooltip_text }}
|