@policystudio/policy-studio-ui-vue 1.0.85 → 1.0.88
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/dist/css/psui_styles.css
CHANGED
|
@@ -18538,12 +18538,16 @@ html {
|
|
|
18538
18538
|
.psui-el-table-results {
|
|
18539
18539
|
position: relative;
|
|
18540
18540
|
vertical-align: top;
|
|
18541
|
-
width:
|
|
18541
|
+
width: auto;
|
|
18542
18542
|
max-width: 100%;
|
|
18543
18543
|
font-size: 16px;
|
|
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:
|
|
18582
|
+
padding-left: 1.25rem;
|
|
18568
18583
|
--text-opacity: 1;
|
|
18569
18584
|
color: #798490;
|
|
18570
18585
|
color: rgba(121, 132, 144, var(--text-opacity));
|
package/package.json
CHANGED
|
@@ -4,18 +4,32 @@
|
|
|
4
4
|
}
|
|
5
5
|
|
|
6
6
|
.psui-el-table-results {
|
|
7
|
-
@apply psui-relative psui-align-top psui-w-
|
|
7
|
+
@apply psui-relative psui-align-top psui-w-auto psui-max-w-full psui-text-p;
|
|
8
|
+
|
|
9
|
+
tr {
|
|
10
|
+
th, td {
|
|
11
|
+
&:last-child {
|
|
12
|
+
@apply psui-pr-2;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
|
8
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-
|
|
32
|
+
@apply psui-pl-5 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
|
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
class="psui-el-table-results-wrapper"
|
|
4
4
|
:style="{ maxHeight: tableMaxHeight }"
|
|
5
5
|
>
|
|
6
|
+
<!-- <pre>{{ collapsedRows }}</pre> -->
|
|
6
7
|
<table
|
|
7
8
|
ref="table"
|
|
8
9
|
class="psui-el-table-results"
|
|
@@ -172,7 +173,7 @@ export default {
|
|
|
172
173
|
type: Function
|
|
173
174
|
},
|
|
174
175
|
/**
|
|
175
|
-
* It sets the
|
|
176
|
+
* It sets the disabled texts conditionals.
|
|
176
177
|
*/
|
|
177
178
|
disabledText: {
|
|
178
179
|
type: String
|
|
@@ -220,10 +221,20 @@ export default {
|
|
|
220
221
|
return []
|
|
221
222
|
}
|
|
222
223
|
},
|
|
224
|
+
/**
|
|
225
|
+
* It sets if rows is collapsible.
|
|
226
|
+
*/
|
|
223
227
|
isCollapsible: {
|
|
224
228
|
type: Boolean,
|
|
225
229
|
default: true
|
|
226
230
|
},
|
|
231
|
+
/**
|
|
232
|
+
* It sets the level to show opened rows.
|
|
233
|
+
*/
|
|
234
|
+
customLevelOpened: {
|
|
235
|
+
type: Number,
|
|
236
|
+
default: 1
|
|
237
|
+
},
|
|
227
238
|
},
|
|
228
239
|
data: () => ({
|
|
229
240
|
collapsedRows : []
|
|
@@ -266,7 +277,7 @@ export default {
|
|
|
266
277
|
const newRowsCollpased = []
|
|
267
278
|
if ( this.showRowsCollapsed ) {
|
|
268
279
|
this.getRows.forEach(element => {
|
|
269
|
-
if ( element?.items?.length ) {
|
|
280
|
+
if ( element?.items?.length && ( this.customLevelOpened == null || element.index.split('-').length > this.customLevelOpened)) {
|
|
270
281
|
newRowsCollpased.push(element.index)
|
|
271
282
|
}
|
|
272
283
|
})
|