@policystudio/policy-studio-ui-vue 1.1.59 → 1.1.61

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.
@@ -2431,6 +2431,7 @@ video {
2431
2431
  text-align: left;
2432
2432
  padding-top: 0;
2433
2433
  padding-bottom: 0;
2434
+ min-width: 596px;
2434
2435
  }
2435
2436
 
2436
2437
  .psui-el-table-results.layout-flexible thead tr:first-of-type th > div {
@@ -2452,6 +2453,7 @@ video {
2452
2453
 
2453
2454
  .psui-el-table-results.layout-flexible thead tr:not(:first-of-type) th:first-child {
2454
2455
  text-align: left;
2456
+ min-width: 388px;
2455
2457
  }
2456
2458
 
2457
2459
  .psui-el-table-results.layout-flexible tbody tr {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@policystudio/policy-studio-ui-vue",
3
- "version": "1.1.59",
3
+ "version": "1.1.61",
4
4
  "description": "Policy Studio UI",
5
5
  "main": "src/index.js",
6
6
  "author": "Policy Studio Team",
@@ -385,6 +385,7 @@
385
385
  @apply psui-text-left;
386
386
  padding-top: 0;
387
387
  padding-bottom: 0;
388
+ min-width: 596px;
388
389
 
389
390
  > div {
390
391
  @apply psui-flex psui-flex-row psui-border-b psui-border-gray-30;
@@ -405,6 +406,7 @@
405
406
  th {
406
407
  &:first-child {
407
408
  @apply psui-text-left;
409
+ min-width: 388px;
408
410
  }
409
411
  }
410
412
  }
@@ -259,15 +259,27 @@
259
259
  :value="item.data[column.key] == '--' ? 0 : item.data[column.key]"
260
260
  :force-break-even="item.is_disabled || item.data[column.key] === '--' ? true : false"
261
261
  />
262
- <PsSwitch
263
- v-if="column.isSwitch && item.data[column.key] != null"
264
- :disabled="item.data.is_disabled"
265
- :value="item.data[column.key]"
266
- :background-color="switchButtonBackgroundColor"
267
- :class="{'psui-pointer-events-none':preventClickOnSwitchButtons}"
268
- size="small"
269
- @change="$emit('switchButtonItemChanged', item)"
270
- />
262
+ <PsRichTooltip
263
+ v-if="column.isSwitch && item.data[column.key] != null"
264
+ :ignoreDialog="!item.data.is_disabled"
265
+ position="top"
266
+ layout="blue"
267
+ >
268
+ <template v-slot:trigger>
269
+ <PsSwitch
270
+ :disabled="item.data.is_disabled"
271
+ :value="item.data[column.key]"
272
+ :background-color="switchButtonBackgroundColor"
273
+ :class="{'psui-pointer-events-none':preventClickOnSwitchButtons}"
274
+ size="small"
275
+ @change="$emit('switchButtonItemChanged', item)"
276
+ />
277
+ </template>
278
+ <template v-slot:content>
279
+ {{ item.tooltip_text }}
280
+ </template>
281
+ </PsRichTooltip>
282
+
271
283
  </div>
272
284
 
273
285
  <!-- only comparison layout -->