@policystudio/policy-studio-ui-vue 1.1.24 → 1.1.26

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.24",
3
+ "version": "1.1.26",
4
4
  "description": "Policy Studio UI",
5
5
  "main": "src/index.js",
6
6
  "author": "Policy Studio Team",
@@ -36,7 +36,7 @@
36
36
  v-if="rightLabelFormatter"
37
37
  class="psui-el-dropdown-menu-list-item-rigth-label"
38
38
  >
39
- {{ rightLabelFormatter(item.key, studyData[item.key], studyData) }}
39
+ {{ rightLabelFormatter(item.key, getStudyDataLevel[item.key], getStudyDataLevel) }}
40
40
  </div>
41
41
  <div
42
42
  v-else
@@ -142,6 +142,9 @@ export default {
142
142
  getItems() {
143
143
  return this.items
144
144
  },
145
+ getStudyDataLevel() {
146
+ return this.studyData?.data || this.studyData
147
+ },
145
148
  },
146
149
  methods: {
147
150
  selectItem(item) {
@@ -76,11 +76,17 @@
76
76
  </div>
77
77
  </template>
78
78
  <template v-slot:content>
79
+ <p
80
+ v-if="item.tooltip_text"
81
+ class="psui-font-bold psui-text-gray-80 psui-text-xsmall"
82
+ >
83
+ {{ item.tooltip_text }}
84
+ </p>
79
85
  <p
80
- v-if="item.tooltip_text || item.is_disabled"
86
+ v-else-if="item.is_disabled"
81
87
  class="psui-font-bold psui-text-gray-80 psui-text-xsmall"
82
88
  >
83
- {{ item.is_disabled ? item.title + ' buildings are not allowed.' : item.tooltip_text }}
89
+ {{ item.title }} buildings are <br>not allowed.
84
90
  </p>
85
91
  </template>
86
92
  </PsRichTooltip>
@@ -485,8 +491,6 @@ export default {
485
491
  }
486
492
  },
487
493
  checkRowIsVisible(item) {
488
- console.log('item',item.index)
489
- console.log('this.collapsedRows',this.collapsedRows)
490
494
  return this.collapsedRows.indexOf(item.index) < 0
491
495
  },
492
496
  checkRowIsCollapsed(item) {