@policystudio/policy-studio-ui-vue 1.1.72 → 1.1.74

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.
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@policystudio/policy-studio-ui-vue",
3
- "version": "1.1.72",
3
+ "version": "1.1.74",
4
4
  "description": "Policy Studio UI",
5
5
  "main": "src/index.js",
6
6
  "author": "Policy Studio Team",
@@ -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="isHoveringRow == index && layout == 'flexible' ? `background-color: ${getHoveringRowColor(item)};` : item.background_color ? `background-color: ${getBackgroundColor(item.background_color)};` : ''"
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">
@@ -190,7 +190,7 @@
190
190
 
191
191
  <template v-for="(columnGroup, indexColumn) of columnGroups">
192
192
  <td
193
- :style="isHoveringRow == index && layout == 'flexible' ? `background-color: ${getHoveringRowColor(item)};` : item.background_color ? `background-color: ${getBackgroundColor(item.background_color)};` : ''"
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,11 +575,23 @@ 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
  },
581
594
  shouldShowIcon(item) {
582
- console.log('item',item)
583
595
  if(item?.actions?.length === 1) return true
584
596
  else return false
585
597
  },