@policystudio/policy-studio-ui-vue 1.1.80 → 1.1.82
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
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
class="psui-flex psui-text-gray-40 pl-4 psui-cursor-pointer leading-none hover:psui-text-blue-60 transition-all"
|
|
54
54
|
size="15"
|
|
55
55
|
display="flex"
|
|
56
|
-
@click.native="$emit('removeOrAddButtonChange',item)"
|
|
56
|
+
@click.native="$emit('removeOrAddButtonChange', item, $event)"
|
|
57
57
|
/>
|
|
58
58
|
</div>
|
|
59
59
|
<div
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
:class="[checkRowIsVisible(item) ? 'psui-rotate-0' : 'psui--rotate-90',
|
|
71
71
|
{ 'psui-pointer-events-none psui--rotate-90' : item.items.length == 0}
|
|
72
72
|
]"
|
|
73
|
-
@click.native="onCollapse(item)"
|
|
73
|
+
@click.native="onCollapse(item, $event)"
|
|
74
74
|
/>
|
|
75
75
|
|
|
76
76
|
<div
|
|
@@ -228,7 +228,7 @@
|
|
|
228
228
|
class="psui-cursor-pointer"
|
|
229
229
|
icon-classes="psui-text-blue-60 psui-opacity-0 psui-leading-none psui-transition"
|
|
230
230
|
display="flex"
|
|
231
|
-
@click.native="onSelectRow(item, column)"
|
|
231
|
+
@click.native="onSelectRow(item, column, $event)"
|
|
232
232
|
/>
|
|
233
233
|
</template>
|
|
234
234
|
<template v-slot:content>
|
|
@@ -279,13 +279,13 @@
|
|
|
279
279
|
class="psui-w-2 psui-h-2 psui-bg-yellow-20 psui-absolute psui--right-2 psui--top-2 psui-rounded-md"
|
|
280
280
|
/>
|
|
281
281
|
<PsSwitch
|
|
282
|
-
:disabled="item.data.is_disabled"
|
|
282
|
+
:disabled="item.data.is_disabled || item.is_excluded"
|
|
283
283
|
:value="item.data[column.key]"
|
|
284
284
|
:background-color="switchButtonBackgroundColor"
|
|
285
285
|
class="psui-justify-self-center"
|
|
286
286
|
:class="{'psui-pointer-events-none':preventClickOnSwitchButtons}"
|
|
287
287
|
size="small"
|
|
288
|
-
@change="$emit('switchButtonItemChanged', item)"
|
|
288
|
+
@change="$emit('switchButtonItemChanged', item, $event)"
|
|
289
289
|
/>
|
|
290
290
|
</div>
|
|
291
291
|
</div>
|
|
@@ -565,7 +565,7 @@ export default {
|
|
|
565
565
|
}
|
|
566
566
|
return isHidden
|
|
567
567
|
},
|
|
568
|
-
onCollapse(item) {
|
|
568
|
+
onCollapse(item, $event) {
|
|
569
569
|
if(this.itemsHiddenIndexes && this.itemsHiddenIndexes.some(it => it == item.index.toString()) && this.layout == 'flexible') {
|
|
570
570
|
return
|
|
571
571
|
}
|
|
@@ -577,7 +577,7 @@ export default {
|
|
|
577
577
|
this.collapsedRows.push(item.index)
|
|
578
578
|
}
|
|
579
579
|
this.$forceUpdate()
|
|
580
|
-
this.$emit('collapse-row', this.collapsedRows)
|
|
580
|
+
this.$emit('collapse-row', this.collapsedRows, $event)
|
|
581
581
|
},
|
|
582
582
|
onRowHover(index, item, type) {
|
|
583
583
|
const parent = document.getElementById(`${item.id}`)
|
|
@@ -635,14 +635,14 @@ export default {
|
|
|
635
635
|
getStatusClass(item) {
|
|
636
636
|
return this.checkRowIsVisible(item) ? 'opened' : 'closed'
|
|
637
637
|
},
|
|
638
|
-
onSelectRow(item, column) {
|
|
638
|
+
onSelectRow(item, column, $event) {
|
|
639
639
|
if(this.layout != 'flexible') {
|
|
640
640
|
this.selectedRow = item.id
|
|
641
641
|
this.policyItemSelected = { ...item }
|
|
642
642
|
delete this.policyItemSelected.items
|
|
643
643
|
this.columnSelectedKey = column.key
|
|
644
644
|
}
|
|
645
|
-
this.$emit('policy-selected', { item: item, column: column })
|
|
645
|
+
this.$emit('policy-selected', { item: item, column: column }, $event)
|
|
646
646
|
},
|
|
647
647
|
onCloseSelectRow(item, column) {
|
|
648
648
|
eventBus.$emit('resetPolicyImpactItemSelected', item, column)
|