@policystudio/policy-studio-ui-vue 1.0.88 → 1.0.90

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.
@@ -18538,7 +18538,7 @@ html {
18538
18538
  .psui-el-table-results {
18539
18539
  position: relative;
18540
18540
  vertical-align: top;
18541
- width: auto;
18541
+ width: 100%;
18542
18542
  max-width: 100%;
18543
18543
  font-size: 16px;
18544
18544
  line-height: 130%;
@@ -18579,7 +18579,7 @@ html {
18579
18579
  }
18580
18580
 
18581
18581
  .psui-el-table-results thead tr th {
18582
- padding-left: 1.25rem;
18582
+ padding-left: 1.5rem;
18583
18583
  --text-opacity: 1;
18584
18584
  color: #798490;
18585
18585
  color: rgba(121, 132, 144, var(--text-opacity));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@policystudio/policy-studio-ui-vue",
3
- "version": "1.0.88",
3
+ "version": "1.0.90",
4
4
  "description": "Policy Studio UI",
5
5
  "main": "src/index.js",
6
6
  "author": "Policy Studio Team",
@@ -4,7 +4,7 @@
4
4
  }
5
5
 
6
6
  .psui-el-table-results {
7
- @apply psui-relative psui-align-top psui-w-auto psui-max-w-full psui-text-p;
7
+ @apply psui-relative psui-align-top psui-w-full psui-max-w-full psui-text-p;
8
8
 
9
9
  tr {
10
10
  th, td {
@@ -29,7 +29,7 @@
29
29
  }
30
30
 
31
31
  th {
32
- @apply psui-pl-5 psui-text-gray-50 psui-text-right psui-w-auto psui-align-top;
32
+ @apply psui-pl-6 psui-text-gray-50 psui-text-right psui-w-auto psui-align-top;
33
33
  padding-top: 13px;
34
34
  padding-bottom: 13px;
35
35
 
@@ -3,7 +3,6 @@
3
3
  class="psui-el-table-results-wrapper"
4
4
  :style="{ maxHeight: tableMaxHeight }"
5
5
  >
6
- <!-- <pre>{{ collapsedRows }}</pre> -->
7
6
  <table
8
7
  ref="table"
9
8
  class="psui-el-table-results"
@@ -48,22 +48,29 @@ export default {
48
48
  /**
49
49
  * It sets the layout of the tooltip if needed. Usefull when using rich or dialog tooltip.
50
50
  */
51
- layout:{
52
- type: String,
51
+ layout: {
52
+ type: String,
53
53
  },
54
54
  /**
55
55
  * It sets a additional styling if needed.
56
56
  */
57
- cssClass:{
58
- type: String,
57
+ cssClass: {
58
+ type: String,
59
59
  },
60
60
  /**
61
61
  * It sets the vertical position.
62
62
  */
63
- position:{
63
+ position: {
64
64
  type: String,
65
65
  default: 'bottom',
66
- validator: (value)=> ['bottom','top'].includes(value)
66
+ validator: (value)=> ['bottom','top', 'custom'].includes(value)
67
+ },
68
+ /**
69
+ * It sets the custom positions.
70
+ */
71
+ customPosition: {
72
+ type: String,
73
+ default: '',
67
74
  }
68
75
  },
69
76
  inheritAttrs: true,
@@ -120,7 +127,7 @@ export default {
120
127
  dialog.style.left = `${windowWidth - rectDialog.width - 30}px`
121
128
  } else if ((rectTrigger.x - rectDialog.width) < 0) {
122
129
  dialog.style.left = `${rectTrigger.x + 10}px`
123
- } else if (rectDialog.width >= rectTrigger.width){
130
+ } else if (rectDialog.width >= rectTrigger.width && this.position != 'custom') {
124
131
  dialog.style.left = `${rectTrigger.x - ((rectDialog.width - rectTrigger.width)/2)}px`
125
132
  } else {
126
133
  dialog.style.left = `${rectTrigger.x + ((rectTrigger.width - rectDialog.width)/2)}px`
@@ -130,6 +137,12 @@ export default {
130
137
  dialog.style.top = `${rectTrigger.y - rectDialog.height - 10}px`
131
138
  }
132
139
 
140
+ if(this.position == 'custom') {
141
+ dialog.style = this.customPosition
142
+ dialog.style.display = 'block'
143
+ dialog.style.position = 'absolute'
144
+ }
145
+
133
146
  setTimeout(() => {
134
147
  dialog.style.opacity = 100
135
148
  }, 100)