@policystudio/policy-studio-ui-vue 1.1.49 → 1.1.51

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.
@@ -3012,8 +3012,8 @@ video {
3012
3012
 
3013
3013
  .psui-el-switch.disabled .psui-el-switch-button {
3014
3014
  --bg-opacity: 1;
3015
- background-color: #E6ECF2;
3016
- background-color: rgba(230, 236, 242, var(--bg-opacity));
3015
+ background-color: #D6DDE5;
3016
+ background-color: rgba(214, 221, 229, var(--bg-opacity));
3017
3017
  }
3018
3018
 
3019
3019
  .psui-el-switch.size-big {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@policystudio/policy-studio-ui-vue",
3
- "version": "1.1.49",
3
+ "version": "1.1.51",
4
4
  "description": "Policy Studio UI",
5
5
  "main": "src/index.js",
6
6
  "author": "Policy Studio Team",
@@ -5,7 +5,7 @@
5
5
  &.disabled {
6
6
  pointer-events: none;
7
7
  .psui-el-switch-button {
8
- @apply psui-bg-gray-20;
8
+ @apply psui-bg-gray-30;
9
9
  }
10
10
  }
11
11
 
@@ -229,7 +229,6 @@
229
229
  Show projections in the chart
230
230
  </template>
231
231
  </PsTooltip>
232
-
233
232
  <p v-if="!column.isSwitch">
234
233
  <template v-if="column.hasScoreHelper">
235
234
  <PsTooltip
@@ -249,7 +248,6 @@
249
248
  {{ getItemContent(column, item) }}
250
249
  </template>
251
250
  </p>
252
-
253
251
  <PsProgressBar
254
252
  v-if="column.isChart && formatFunction && item.data[column.key] != null"
255
253
  :value="formatFunction(column.key, item.data[column.key], item.data) == '--' ? 0 : item.data[column.key]"
@@ -438,6 +436,10 @@ export default {
438
436
  },
439
437
  switchButtonBackgroundColor:{
440
438
  type:String,
439
+ },
440
+ preventIsDisabledOnItems:{
441
+ type: Boolean,
442
+ default: false
441
443
  }
442
444
  },
443
445
  data: () => ({
@@ -564,7 +566,7 @@ export default {
564
566
  getItemContent(column, item) {
565
567
  if ( column.isSwitch ) return
566
568
 
567
- if (this.formatFunction && !item.is_disabled) {
569
+ if (this.formatFunction && !item.is_disabled || this.preventIsDisabledOnItems) {
568
570
  return this.formatFunction(column.key, item.data[column.key], item.data, item.study_id)
569
571
  } else if (item.is_disabled) {
570
572
  return '--'