@policystudio/policy-studio-ui-vue 1.2.0-access.92 → 1.2.0-access.93

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.
@@ -6989,6 +6989,10 @@ video {
6989
6989
  cursor: default;
6990
6990
  }
6991
6991
 
6992
+ .psui-cursor-not-allowed {
6993
+ cursor: not-allowed;
6994
+ }
6995
+
6992
6996
  .psui-cursor-pointer {
6993
6997
  cursor: pointer;
6994
6998
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@policystudio/policy-studio-ui-vue",
3
- "version": "1.2.0-access.92",
3
+ "version": "1.2.0-access.93",
4
4
  "description": "Policy Studio UI",
5
5
  "author": "Policy Studio Team",
6
6
  "scripts": {
@@ -41,19 +41,21 @@
41
41
  >
42
42
  <div class="psui-flex psui-relative psui-h-full">
43
43
  <div
44
- v-tooltip="{
45
- classes: 'layout-gray-50',
46
- content: item.remove_add_tooltip,
47
- }"
44
+ v-tooltip="item.remove_add_button_disabled
45
+ ? getTooltipContent(item)
46
+ : { classes: 'layout-gray-50', content: item.remove_add_tooltip }"
48
47
  >
49
48
  <PsIcon
50
49
  v-if="item.remove_add_button"
51
50
  :icon="item.remove_add_button_icon"
52
- class="psui-flex psui-text-gray-60 pl-4 psui-cursor-pointer leading-none hover:psui-text-blue-60 transition-all"
51
+ class="psui-flex pl-4 leading-none transition-all"
52
+ :class="item.remove_add_button_disabled
53
+ ? 'psui-text-gray-40 psui-cursor-not-allowed'
54
+ : 'psui-text-gray-60 psui-cursor-pointer hover:psui-text-blue-60'"
53
55
  size="18"
54
56
  display="flex"
55
- @click.native="emit('removeOrAddButtonChange', item, $event)"
56
- @keydown.enter.native="emit('removeOrAddButtonChange', item, $event)"
57
+ @click.native="!item.remove_add_button_disabled && emit('removeOrAddButtonChange', item, $event)"
58
+ @keydown.enter.native="!item.remove_add_button_disabled && emit('removeOrAddButtonChange', item, $event)"
57
59
  />
58
60
  </div>
59
61
  <div