@policystudio/policy-studio-ui-vue 1.1.86 → 1.1.88

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.
@@ -2443,12 +2443,9 @@ video {
2443
2443
 
2444
2444
  .psui-el-table-results.layout-flexible thead tr:first-of-type th:first-child {
2445
2445
  padding-left: 0;
2446
+ width: 598px;
2446
2447
  }
2447
2448
 
2448
- .psui-el-table-results.layout-flexible thead tr:first-of-type th:first-child > div {
2449
- min-width: 598px;
2450
- }
2451
-
2452
2449
  .psui-el-table-results.layout-flexible thead tr:first-of-type th > div {
2453
2450
  display: flex;
2454
2451
  flex-direction: row;
@@ -2495,7 +2492,7 @@ video {
2495
2492
 
2496
2493
  .psui-el-table-results.layout-flexible thead tr:not(:first-of-type) th:first-child {
2497
2494
  text-align: left;
2498
- min-width: 330px;
2495
+ width: 352px;
2499
2496
  padding-left: 0;
2500
2497
  }
2501
2498
 
@@ -2503,7 +2500,7 @@ video {
2503
2500
  position: sticky;
2504
2501
  z-index: 10;
2505
2502
  background-color: #ffffff ;
2506
- left:330px;
2503
+ left: 352px;
2507
2504
  min-width: 140px;
2508
2505
  }
2509
2506
 
@@ -2511,7 +2508,7 @@ video {
2511
2508
  position: sticky;
2512
2509
  z-index: 10;
2513
2510
  background-color: #ffffff ;
2514
- left: 470px;
2511
+ left: 492px;
2515
2512
  }
2516
2513
 
2517
2514
  .psui-el-table-results.layout-flexible tbody tr {
@@ -2592,15 +2589,15 @@ video {
2592
2589
  left: 0;
2593
2590
  padding-top: 8px;
2594
2591
  padding-bottom: 8px;
2595
- min-width: 330px;
2592
+ width: 352px;
2596
2593
  padding-left: 0px;
2597
2594
  }
2598
2595
 
2599
2596
  .psui-el-table-results.layout-flexible tbody tr td:nth-child(2) {
2600
2597
  position: sticky;
2601
2598
  z-index: 10;
2602
- min-width: 140px;
2603
- left: 330px;
2599
+ width: 140px;
2600
+ left: 352px;
2604
2601
  }
2605
2602
 
2606
2603
  .psui-el-table-results.layout-flexible tbody tr td:nth-child(2) > div {
@@ -2611,7 +2608,7 @@ video {
2611
2608
  position: sticky;
2612
2609
  z-index: 10;
2613
2610
  min-width: 140px;
2614
- left: 470px;
2611
+ left: 492px;
2615
2612
  }
2616
2613
 
2617
2614
  .psui-el-table-results.layout-flexible tbody tr td:nth-child(3) > div {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@policystudio/policy-studio-ui-vue",
3
- "version": "1.1.86",
3
+ "version": "1.1.88",
4
4
  "description": "Policy Studio UI",
5
5
  "main": "src/index.js",
6
6
  "author": "Policy Studio Team",
@@ -404,10 +404,7 @@
404
404
 
405
405
  &:first-child {
406
406
  padding-left: 0;
407
-
408
- > div {
409
- min-width: 598px;
410
- }
407
+ width: 598px;
411
408
  }
412
409
 
413
410
  > div {
@@ -442,19 +439,19 @@
442
439
 
443
440
  &:first-child {
444
441
  @apply psui-text-left;
445
- min-width: 330px;
442
+ width: 352px;
446
443
  padding-left: 0;
447
444
  }
448
445
 
449
446
  &:nth-child(2) {
450
447
  @apply psui-sticky psui-z-10 psui-bg-white;
451
- left:330px;
448
+ left: 352px;
452
449
  min-width: 140px;
453
450
  }
454
451
 
455
452
  &:nth-child(3) {
456
453
  @apply psui-sticky psui-z-10 psui-bg-white;
457
- left: 470px;
454
+ left: 492px;
458
455
  }
459
456
  }
460
457
  }
@@ -525,14 +522,14 @@
525
522
  @apply psui-pr-8 psui-text-left psui-block psui-sticky psui-z-10 psui-left-0;
526
523
  padding-top: 8px;
527
524
  padding-bottom: 8px;
528
- min-width: 330px;
525
+ width: 352px;
529
526
  padding-left: 0px;
530
527
  }
531
528
 
532
529
  &:nth-child(2) {
533
530
  @apply psui-sticky psui-z-10;
534
- min-width: 140px;
535
- left: 330px;
531
+ width: 140px;
532
+ left: 352px;
536
533
  > div {
537
534
  @apply psui-justify-center;
538
535
  }
@@ -541,7 +538,7 @@
541
538
  &:nth-child(3) {
542
539
  @apply psui-sticky psui-z-10;
543
540
  min-width: 140px;
544
- left: 470px;
541
+ left: 492px;
545
542
  > div {
546
543
  @apply psui-justify-center;
547
544
  }
@@ -520,8 +520,12 @@ export default {
520
520
  return !item.is_disabled && item.deep != 0 ? '#ECF7FB' : item.is_disabled && item.deep != 0 ? '#E6ECF2' : ''
521
521
  },
522
522
  setCollapsedRows() {
523
- const newRowsCollpased = [...(this.itemsHiddenIndexes || [])]
524
- if ( this.showRowsCollapsed || this.layout === 'flexible' ) {
523
+ let newRowsCollpased = [...(this.itemsHiddenIndexes || [])]
524
+
525
+ if ( this.itemsHiddenIndexes && this.layout != 'flexible' ) return
526
+
527
+ if ( this.showRowsCollapsed || this.layout == 'flexible' ) {
528
+
525
529
  this.getRows.forEach(element => {
526
530
  const matchForAll = Boolean( element?.items?.length && ( this.customLevelOpened == null || element.index.split('-').length > this.customLevelOpened))
527
531
  const matchForFlexibleLayout = Boolean(element.isCollapsed === true)
@@ -529,7 +533,23 @@ export default {
529
533
  newRowsCollpased.push(element.index)
530
534
  }
531
535
  })
532
- }
536
+ }
537
+
538
+ // else {
539
+ // if ( this.itemsHiddenIndexes ) {
540
+ // this.collapsedRows = [...this.itemsHiddenIndexes]
541
+ // return
542
+ // }
543
+
544
+ // if ( this.showRowsCollapsed ) {
545
+ // this.getRows.forEach(element => {
546
+ // if ( element?.items?.length && ( this.customLevelOpened == null || element.index.split('-').length > this.customLevelOpened)) {
547
+ // newRowsCollpased.push(element.index)
548
+ // }
549
+ // })
550
+ // }
551
+ // }
552
+
533
553
  this.collapsedRows = newRowsCollpased
534
554
  },
535
555
  getIconClasses(item) {
@@ -569,6 +589,7 @@ export default {
569
589
  }
570
590
 
571
591
  const index = this.collapsedRows.indexOf(item.index)
592
+
572
593
  if(index > -1) {
573
594
  this.collapsedRows.splice(index, 1)
574
595
  delete item.isCollapsed
@@ -577,6 +598,7 @@ export default {
577
598
  item.isCollapsed = true
578
599
  }
579
600
  this.$forceUpdate()
601
+
580
602
  this.$emit('collapse-row', this.collapsedRows, $event)
581
603
  },
582
604
  onRowHover(index, item, type) {