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

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.
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.60",
4
4
  "description": "Policy Studio UI",
5
5
  "main": "src/index.js",
6
6
  "author": "Policy Studio Team",
@@ -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 -->