@policystudio/policy-studio-ui-vue 1.1.66 → 1.1.68

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.
@@ -2444,7 +2444,7 @@ video {
2444
2444
  text-align: left;
2445
2445
  padding-top: 0;
2446
2446
  padding-bottom: 0;
2447
- min-width: 497px;
2447
+ min-width: 100px;
2448
2448
  position: sticky;
2449
2449
  }
2450
2450
 
@@ -2459,6 +2459,17 @@ video {
2459
2459
  padding-bottom: 0.625rem;
2460
2460
  }
2461
2461
 
2462
+ .psui-el-table-results.layout-flexible thead tr:first-of-type th > div > .title {
2463
+ font-size: 12px;
2464
+ line-height: 130%;
2465
+ letter-spacing: 0.6px;
2466
+ --text-opacity: 1;
2467
+ color: #515E6A;
2468
+ color: rgba(81, 94, 106, var(--text-opacity));
2469
+ font-weight: 700;
2470
+ text-transform: uppercase;
2471
+ }
2472
+
2462
2473
  .psui-el-table-results.layout-flexible thead tr:first-of-type p {
2463
2474
  font-size: 16px;
2464
2475
  line-height: 130%;
@@ -2590,6 +2601,10 @@ video {
2590
2601
  left: 357px;
2591
2602
  }
2592
2603
 
2604
+ .psui-el-table-results.layout-flexible tbody tr td:nth-child(2) > div {
2605
+ justify-content: center;
2606
+ }
2607
+
2593
2608
  .psui-el-table-results.layout-flexible tbody tr td:nth-child(3) {
2594
2609
  position: sticky;
2595
2610
  z-index: 10;
@@ -2598,6 +2613,10 @@ video {
2598
2613
  padding-right: 22px;
2599
2614
  }
2600
2615
 
2616
+ .psui-el-table-results.layout-flexible tbody tr td:nth-child(3) > div {
2617
+ justify-content: center;
2618
+ }
2619
+
2601
2620
  .psui-el-table-results.layout-flexible tbody tr td .psui-el-tooltip-dialog {
2602
2621
  text-align: left;
2603
2622
  max-width: 180px;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@policystudio/policy-studio-ui-vue",
3
- "version": "1.1.66",
3
+ "version": "1.1.68",
4
4
  "description": "Policy Studio UI",
5
5
  "main": "src/index.js",
6
6
  "author": "Policy Studio Team",
@@ -399,13 +399,18 @@
399
399
  @apply psui-text-left;
400
400
  padding-top: 0;
401
401
  padding-bottom: 0;
402
- min-width: 497px;
402
+ min-width: 100px;
403
403
  position: sticky;
404
404
 
405
405
  > div {
406
406
  @apply psui-flex psui-flex-row psui-border-b psui-border-gray-30;
407
407
  padding-top: 0.5rem;
408
408
  padding-bottom: 0.625rem;
409
+
410
+ > .title {
411
+ @apply psui-text-accentSmall psui-text-gray-60 psui-font-bold psui-uppercase;
412
+
413
+ }
409
414
  }
410
415
  }
411
416
 
@@ -510,6 +515,9 @@
510
515
  @apply psui-sticky psui-z-10;
511
516
  min-width: 140px;
512
517
  left: 357px;
518
+ > div {
519
+ @apply psui-justify-center;
520
+ }
513
521
  }
514
522
 
515
523
  &:nth-child(3) {
@@ -517,6 +525,9 @@
517
525
  min-width: 140px;
518
526
  left: 497px;
519
527
  padding-right: 22px;
528
+ > div {
529
+ @apply psui-justify-center;
530
+ }
520
531
  }
521
532
 
522
533
  .psui-el-tooltip-dialog {
@@ -271,27 +271,27 @@
271
271
  :value="item.data[column.key] == '--' ? 0 : item.data[column.key]"
272
272
  :force-break-even="item.is_disabled || item.data[column.key] === '--' ? true : false"
273
273
  />
274
- <PsRichTooltip
275
- v-if="column.isSwitch && item.data[column.key] != null"
276
- :ignoreDialog="!item.data.is_disabled || item.is_excluded"
277
- position="top"
278
- layout="blue"
279
- >
280
- <template v-slot:trigger>
281
- <PsSwitch
282
- :disabled="item.data.is_disabled"
283
- :value="item.data[column.key]"
284
- :background-color="switchButtonBackgroundColor"
285
- :class="{'psui-pointer-events-none':preventClickOnSwitchButtons}"
286
- size="small"
287
- @change="$emit('switchButtonItemChanged', item)"
288
- />
289
- </template>
290
- <template v-slot:content>
291
- {{ item.tooltip_text }}
292
- </template>
293
- </PsRichTooltip>
294
274
 
275
+ <div
276
+ v-if="column.isSwitch && item.data[column.key] != null"
277
+ class="psui-inline-flex"
278
+ v-tooltip="{
279
+ content: !item.data.is_disabled || item.is_excluded ? false : `<p class='psui-text-white psui-text-xsmall'>${item.tooltip_text}</p>`,
280
+ classes: 'layout-blue'
281
+ }"
282
+ >
283
+ <div class="flex psui-items-center psui-relative">
284
+ <PsSwitch
285
+ :disabled="item.data.is_disabled"
286
+ :value="item.data[column.key]"
287
+ :background-color="switchButtonBackgroundColor"
288
+ class="psui-justify-self-center"
289
+ :class="{'psui-pointer-events-none':preventClickOnSwitchButtons}"
290
+ size="small"
291
+ @change="$emit('switchButtonItemChanged', item)"
292
+ />
293
+ </div>
294
+ </div>
295
295
  </div>
296
296
 
297
297
  <!-- only comparison layout -->