@policystudio/policy-studio-ui-vue 1.1.5 → 1.1.6

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.5",
3
+ "version": "1.1.6",
4
4
  "description": "Policy Studio UI",
5
5
  "main": "src/index.js",
6
6
  "author": "Policy Studio Team",
@@ -78,18 +78,11 @@ export default {
78
78
  default: false,
79
79
  },
80
80
  /**
81
- * It sets the vertical position.
81
+ * It sets the vertical and horizontal position.
82
82
  */
83
83
  position: {
84
84
  type: String,
85
- validator: (value)=> ['bottom','top', 'custom'].includes(value)
86
- },
87
- /**
88
- * It sets the custom positions.
89
- */
90
- customPosition: {
91
- type: String,
92
- default: '',
85
+ validator: (value)=> ['custom'].includes(value)
93
86
  },
94
87
  },
95
88
  data() {
@@ -153,14 +146,9 @@ export default {
153
146
  PSDropdownDialog.style.left = `${rectTrigger.x}px`
154
147
  }
155
148
 
156
- if(this.position == 'top') {
157
- PSDropdownDialog.style.top = `${(rectTrigger.y - rectDialog.height) - 10}px`
158
- }
159
-
160
149
  if(this.position == 'custom') {
161
- PSDropdownDialog.style = this.customPosition
162
- PSDropdownDialog.style.display = 'block'
163
- PSDropdownDialog.style.position = 'absolute'
150
+ PSDropdownDialog.style.top = `${rectTrigger.y}px`
151
+ PSDropdownDialog.style.left = `${rectTrigger.x + 80}px`
164
152
  }
165
153
 
166
154
  if (rectTrigger.top < 10) {
@@ -125,7 +125,6 @@
125
125
  v-if="shouldShowDropdown(item)"
126
126
  :class="[isHoveringRow === index ? 'opacity-1' : 'opacity-0']"
127
127
  position="custom"
128
- custom-position="top: 0; left: 5rem;"
129
128
  >
130
129
  <template v-slot:dropdownTrigger>
131
130
  <PsIcon
@@ -295,22 +295,6 @@ Simple.args = {
295
295
  ],
296
296
  summaryData: [
297
297
  {
298
- actions: [
299
- {
300
- icon: 'delete_outline',
301
- text: 'Remove prototype from your policy',
302
- callback: () => {}
303
- },
304
- {
305
- icon: 'add_circle_outline',
306
- text: 'Add requirements',
307
- callback: () => {}
308
- },
309
- {
310
- icon: 'more_horiz',
311
- callback: () => {}
312
- },
313
- ],
314
298
  'data': {
315
299
  'forecast_units_affected': 337.5,
316
300
  'forecast_emissions_savings': -1470.2228427746163,