@policystudio/policy-studio-ui-vue 1.0.86 → 1.0.89

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.
@@ -18544,6 +18544,10 @@ html {
18544
18544
  line-height: 130%;
18545
18545
  }
18546
18546
 
18547
+ .psui-el-table-results tr th:last-child, .psui-el-table-results tr td:last-child {
18548
+ padding-right: 0.5rem;
18549
+ }
18550
+
18547
18551
  .psui-el-table-results thead {
18548
18552
  background-color: #ffffff ;
18549
18553
  align-items: flex-start;
@@ -18553,6 +18557,17 @@ html {
18553
18557
  z-index: 15;
18554
18558
  }
18555
18559
 
18560
+ .psui-el-table-results thead:after {
18561
+ content: '';
18562
+ display: inline-block;
18563
+ position: absolute;
18564
+ top: 0;
18565
+ width: 0.5rem;
18566
+ height: 100%;
18567
+ background-color: #ffffff ;
18568
+ right: -8px;
18569
+ }
18570
+
18556
18571
  .psui-el-table-results thead tr .title {
18557
18572
  font-size: 14px;
18558
18573
  line-height: 130%;
@@ -18564,7 +18579,7 @@ html {
18564
18579
  }
18565
18580
 
18566
18581
  .psui-el-table-results thead tr th {
18567
- padding-left: 2rem;
18582
+ padding-left: 1.5rem;
18568
18583
  --text-opacity: 1;
18569
18584
  color: #798490;
18570
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.86",
3
+ "version": "1.0.89",
4
4
  "description": "Policy Studio UI",
5
5
  "main": "src/index.js",
6
6
  "author": "Policy Studio Team",
@@ -6,16 +6,30 @@
6
6
  .psui-el-table-results {
7
7
  @apply psui-relative psui-align-top psui-w-full psui-max-w-full psui-text-p;
8
8
 
9
+ tr {
10
+ th, td {
11
+ &:last-child {
12
+ @apply psui-pr-2;
13
+ }
14
+ }
15
+ }
16
+
9
17
  thead {
10
18
  @apply psui-bg-white psui-items-start psui-shadow-elevation-10 psui-sticky psui-top-0 psui-z-15;
11
19
 
20
+ &:after {
21
+ content: '';
22
+ @apply psui-inline-block psui-absolute psui-top-0 psui-w-2 psui-h-full psui-bg-white;
23
+ right: -8px;
24
+ }
25
+
12
26
  tr {
13
27
  .title {
14
28
  @apply psui-text-small psui-font-bold psui-leading-4 psui-text-gray-80;
15
29
  }
16
30
 
17
31
  th {
18
- @apply psui-pl-8 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;
19
33
  padding-top: 13px;
20
34
  padding-bottom: 13px;
21
35
 
@@ -172,7 +172,7 @@ export default {
172
172
  type: Function
173
173
  },
174
174
  /**
175
- * It sets the format function to display values.
175
+ * It sets the disabled texts conditionals.
176
176
  */
177
177
  disabledText: {
178
178
  type: String
@@ -220,10 +220,20 @@ export default {
220
220
  return []
221
221
  }
222
222
  },
223
+ /**
224
+ * It sets if rows is collapsible.
225
+ */
223
226
  isCollapsible: {
224
227
  type: Boolean,
225
228
  default: true
226
229
  },
230
+ /**
231
+ * It sets the level to show opened rows.
232
+ */
233
+ customLevelOpened: {
234
+ type: Number,
235
+ default: 1
236
+ },
227
237
  },
228
238
  data: () => ({
229
239
  collapsedRows : []
@@ -266,7 +276,7 @@ export default {
266
276
  const newRowsCollpased = []
267
277
  if ( this.showRowsCollapsed ) {
268
278
  this.getRows.forEach(element => {
269
- if ( element?.items?.length ) {
279
+ if ( element?.items?.length && ( this.customLevelOpened == null || element.index.split('-').length > this.customLevelOpened)) {
270
280
  newRowsCollpased.push(element.index)
271
281
  }
272
282
  })