@policystudio/policy-studio-ui-vue 1.1.73 → 1.1.75
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/dist/css/psui_styles.css
CHANGED
|
@@ -2518,6 +2518,7 @@ video {
|
|
|
2518
2518
|
--border-opacity: 1;
|
|
2519
2519
|
border-color: #E6ECF2;
|
|
2520
2520
|
border-color: rgba(230, 236, 242, var(--border-opacity));
|
|
2521
|
+
transition: background-color 0.5s ease;
|
|
2521
2522
|
}
|
|
2522
2523
|
|
|
2523
2524
|
.psui-el-table-results.layout-flexible tbody tr .title {
|
|
@@ -2533,12 +2534,19 @@ video {
|
|
|
2533
2534
|
--text-opacity: 1 !important;
|
|
2534
2535
|
color: #A2ACB7 !important;
|
|
2535
2536
|
color: rgba(162, 172, 183, var(--text-opacity)) !important;
|
|
2537
|
+
transition: background-color 0.5s ease;
|
|
2536
2538
|
}
|
|
2537
2539
|
|
|
2538
2540
|
.psui-el-table-results.layout-flexible tbody tr.removed-class td:first-child > div {
|
|
2539
2541
|
margin-left: 4px;
|
|
2540
2542
|
}
|
|
2541
2543
|
|
|
2544
|
+
.psui-el-table-results.layout-flexible tbody tr.is-disabled td.hover-color {
|
|
2545
|
+
background-color: #E6ECF2 !important;
|
|
2546
|
+
opacity: 0.99;
|
|
2547
|
+
transition: background-color 0.5s ease;
|
|
2548
|
+
}
|
|
2549
|
+
|
|
2542
2550
|
.psui-el-table-results.layout-flexible tbody tr td {
|
|
2543
2551
|
--text-opacity: 1;
|
|
2544
2552
|
color: #34404A;
|
|
@@ -2553,6 +2561,12 @@ video {
|
|
|
2553
2561
|
padding-left: 20px;
|
|
2554
2562
|
}
|
|
2555
2563
|
|
|
2564
|
+
.psui-el-table-results.layout-flexible tbody tr td.hover-color {
|
|
2565
|
+
background-color: #ECF7FB !important;
|
|
2566
|
+
opacity: 0.99;
|
|
2567
|
+
transition: background-color 0.5s ease;
|
|
2568
|
+
}
|
|
2569
|
+
|
|
2556
2570
|
.psui-el-table-results.layout-flexible tbody tr td > div {
|
|
2557
2571
|
display: flex;
|
|
2558
2572
|
align-items: center;
|
|
@@ -2644,6 +2658,7 @@ video {
|
|
|
2644
2658
|
--text-opacity: 1;
|
|
2645
2659
|
color: #A2ACB7;
|
|
2646
2660
|
color: rgba(162, 172, 183, var(--text-opacity));
|
|
2661
|
+
transition: background-color 0.5s ease;
|
|
2647
2662
|
}
|
|
2648
2663
|
|
|
2649
2664
|
.psui-el-table-results.layout-flexible tbody tr.is-first.removed-class td .title {
|
|
@@ -2757,6 +2772,7 @@ video {
|
|
|
2757
2772
|
--text-opacity: 1 !important;
|
|
2758
2773
|
color: #A2ACB7 !important;
|
|
2759
2774
|
color: rgba(162, 172, 183, var(--text-opacity)) !important;
|
|
2775
|
+
transition: background-color 0.5s ease;
|
|
2760
2776
|
}
|
|
2761
2777
|
|
|
2762
2778
|
.psui-el-table-results.layout-flexible tbody tr.is-last.removed-class td:first-child {
|
|
@@ -2797,6 +2813,7 @@ video {
|
|
|
2797
2813
|
--bg-opacity: 1;
|
|
2798
2814
|
background-color: #F3F6F9;
|
|
2799
2815
|
background-color: rgba(243, 246, 249, var(--bg-opacity));
|
|
2816
|
+
transition: background-color 0.5s ease;
|
|
2800
2817
|
}
|
|
2801
2818
|
|
|
2802
2819
|
.psui-el-checkbox {
|
package/package.json
CHANGED
|
@@ -464,6 +464,7 @@
|
|
|
464
464
|
tbody {
|
|
465
465
|
tr {
|
|
466
466
|
@apply psui-border-gray-20;
|
|
467
|
+
transition: background-color 0.5s ease;
|
|
467
468
|
|
|
468
469
|
.title {
|
|
469
470
|
@apply psui-flex psui-items-center;
|
|
@@ -473,6 +474,8 @@
|
|
|
473
474
|
&.removed-class {
|
|
474
475
|
td {
|
|
475
476
|
@apply psui-bg-gray-10 psui-text-gray-40 !important;
|
|
477
|
+
transition: background-color 0.5s ease;
|
|
478
|
+
|
|
476
479
|
&:first-child {
|
|
477
480
|
> div {
|
|
478
481
|
margin-left: 4px;
|
|
@@ -481,6 +484,16 @@
|
|
|
481
484
|
}
|
|
482
485
|
|
|
483
486
|
}
|
|
487
|
+
|
|
488
|
+
&.is-disabled {
|
|
489
|
+
td {
|
|
490
|
+
&.hover-color {
|
|
491
|
+
background-color: #E6ECF2 !important;
|
|
492
|
+
opacity: 0.99;
|
|
493
|
+
transition: background-color 0.5s ease;
|
|
494
|
+
}
|
|
495
|
+
}
|
|
496
|
+
}
|
|
484
497
|
|
|
485
498
|
td {
|
|
486
499
|
@apply psui-text-gray-70 psui-h-10 psui-text-right psui-text-small;
|
|
@@ -488,7 +501,14 @@
|
|
|
488
501
|
padding-bottom: 0.688rem;
|
|
489
502
|
min-height: 41.5px;
|
|
490
503
|
padding-left: 20px;
|
|
491
|
-
|
|
504
|
+
|
|
505
|
+
|
|
506
|
+
&.hover-color {
|
|
507
|
+
background-color: #ECF7FB !important;
|
|
508
|
+
opacity: 0.99;
|
|
509
|
+
transition: background-color 0.5s ease;
|
|
510
|
+
}
|
|
511
|
+
|
|
492
512
|
> div {
|
|
493
513
|
@apply psui-flex psui-items-center;
|
|
494
514
|
}
|
|
@@ -556,6 +576,7 @@
|
|
|
556
576
|
&.removed-class {
|
|
557
577
|
td {
|
|
558
578
|
@apply psui-bg-gray-10 psui-text-gray-40;
|
|
579
|
+
transition: background-color 0.5s ease;
|
|
559
580
|
|
|
560
581
|
.title {
|
|
561
582
|
margin-left: 6px;
|
|
@@ -669,8 +690,8 @@
|
|
|
669
690
|
&.removed-class {
|
|
670
691
|
td {
|
|
671
692
|
@apply psui-bg-gray-10 psui-text-gray-40 !important;
|
|
693
|
+
transition: background-color 0.5s ease;
|
|
672
694
|
|
|
673
|
-
|
|
674
695
|
&:first-child {
|
|
675
696
|
@apply psui-sticky;
|
|
676
697
|
|
|
@@ -704,6 +725,7 @@
|
|
|
704
725
|
|
|
705
726
|
td:first-child {
|
|
706
727
|
@apply psui-bg-gray-10;
|
|
728
|
+
transition: background-color 0.5s ease;
|
|
707
729
|
}
|
|
708
730
|
}
|
|
709
731
|
}
|
|
@@ -33,11 +33,11 @@
|
|
|
33
33
|
]"
|
|
34
34
|
:id=" item.id"
|
|
35
35
|
:data-group="item.id"
|
|
36
|
-
@mouseenter="onRowHover(index)"
|
|
37
|
-
@mouseleave="onRowHover(false)"
|
|
36
|
+
@mouseenter="onRowHover(index,item,'enter')"
|
|
37
|
+
@mouseleave="onRowHover(false,item,'leave')"
|
|
38
38
|
>
|
|
39
39
|
<td
|
|
40
|
-
:style="
|
|
40
|
+
:style="item.background_color ? `background-color: ${getBackgroundColor(item.background_color)}; transition: background-color 0.5s ease;` : ''"
|
|
41
41
|
>
|
|
42
42
|
|
|
43
43
|
<div class="psui-flex psui-relative">
|
|
@@ -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
|
|
@@ -190,7 +190,7 @@
|
|
|
190
190
|
|
|
191
191
|
<template v-for="(columnGroup, indexColumn) of columnGroups">
|
|
192
192
|
<td
|
|
193
|
-
:style="
|
|
193
|
+
:style="item.background_color ? `background-color: ${getBackgroundColor(item.background_color)}; transition: background-color 0.5s ease;` : ''"
|
|
194
194
|
v-for="column of columnGroup.columns"
|
|
195
195
|
class="psui-transition"
|
|
196
196
|
:key="indexColumn + '-' + columnGroup.key + '-' + column.key"
|
|
@@ -575,9 +575,25 @@ export default {
|
|
|
575
575
|
this.$forceUpdate()
|
|
576
576
|
this.$emit('collapse-row', this.collapsedRows)
|
|
577
577
|
},
|
|
578
|
-
onRowHover(index) {
|
|
578
|
+
onRowHover(index, item, type) {
|
|
579
|
+
const parent = document.getElementById(`${item.id}`)
|
|
580
|
+
const children = parent.children
|
|
581
|
+
|
|
582
|
+
if (type == 'enter' && item.index != 0 && item.deep != 0 && this.layout == 'flexible') {
|
|
583
|
+
for (let i = 0; i < children.length; i++) {
|
|
584
|
+
children[i].classList.add('hover-color')
|
|
585
|
+
}
|
|
586
|
+
} else {
|
|
587
|
+
parent.querySelectorAll('.hover-color').forEach(child => {
|
|
588
|
+
child.classList.remove('hover-color')
|
|
589
|
+
})
|
|
590
|
+
}
|
|
591
|
+
|
|
579
592
|
this.isHoveringRow = index
|
|
580
593
|
},
|
|
594
|
+
getIgnoreDialogIcon(item){
|
|
595
|
+
return !this.shouldShowIcon(item) || item.actions[0].ignoreDialog
|
|
596
|
+
},
|
|
581
597
|
shouldShowIcon(item) {
|
|
582
598
|
if(item?.actions?.length === 1) return true
|
|
583
599
|
else return false
|