@policystudio/policy-studio-ui-vue 1.0.70 → 1.0.73
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
|
@@ -19373,6 +19373,13 @@ html {
|
|
|
19373
19373
|
border-bottom: 1px solid #e6ecf2;
|
|
19374
19374
|
}
|
|
19375
19375
|
|
|
19376
|
+
.psui-el-accordion-item.disabled .psui-el-accordion-item-header .psui-el-accordion-item-header-wrapper {
|
|
19377
|
+
--text-opacity: 1;
|
|
19378
|
+
color: #798490;
|
|
19379
|
+
color: rgba(121, 132, 144, var(--text-opacity));
|
|
19380
|
+
pointer-events: none;
|
|
19381
|
+
}
|
|
19382
|
+
|
|
19376
19383
|
.psui-el-accordion-item-header {
|
|
19377
19384
|
display: flex;
|
|
19378
19385
|
justify-content: space-between;
|
|
@@ -19451,7 +19458,8 @@ html {
|
|
|
19451
19458
|
transform: rotate(180deg);
|
|
19452
19459
|
}
|
|
19453
19460
|
|
|
19454
|
-
.psui-el-accordion .psui-el-accordion-item.status-opened .psui-el-accordion-item-header,
|
|
19461
|
+
.psui-el-accordion .psui-el-accordion-item.status-opened .psui-el-accordion-item-header,
|
|
19462
|
+
.psui-el-accordion .psui-el-accordion-item-header:hover {
|
|
19455
19463
|
--text-opacity: 1;
|
|
19456
19464
|
color: #318FAC;
|
|
19457
19465
|
color: rgba(49, 143, 172, var(--text-opacity));
|
package/package.json
CHANGED
|
@@ -3,8 +3,18 @@
|
|
|
3
3
|
.psui-el-accordion {
|
|
4
4
|
|
|
5
5
|
&-item {
|
|
6
|
-
border-bottom: 1px solid #e6ecf2;
|
|
7
|
-
|
|
6
|
+
border-bottom: 1px solid #e6ecf2;
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
&.disabled {
|
|
10
|
+
.psui-el-accordion-item-header {
|
|
11
|
+
.psui-el-accordion-item-header-wrapper {
|
|
12
|
+
@apply psui-text-gray-50 pointer-events-none;
|
|
13
|
+
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
8
18
|
&-header {
|
|
9
19
|
@apply psui-flex psui-justify-between psui-items-center;
|
|
10
20
|
padding-top: 16px;
|
|
@@ -61,8 +71,10 @@
|
|
|
61
71
|
}
|
|
62
72
|
|
|
63
73
|
.psui-el-accordion-item {
|
|
64
|
-
&.status-opened .psui-el-accordion-item-header,
|
|
74
|
+
&.status-opened .psui-el-accordion-item-header,
|
|
75
|
+
&-header:hover {
|
|
65
76
|
@apply psui-text-blue-60;
|
|
77
|
+
|
|
66
78
|
.psui-el-accordion-item-icon {
|
|
67
79
|
@apply psui-text-blue-60;
|
|
68
80
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div class="psui-el-accordion-item" :class="
|
|
2
|
+
<div class="psui-el-accordion-item" :class="{'status-opened':isOpen, 'disabled':disabled}">
|
|
3
3
|
<div class="psui-el-accordion-item-header">
|
|
4
4
|
<slot name='custom-header' :toggle="toggle" :isOpen="isOpen">
|
|
5
5
|
<div @click="toggle" class="psui-el-accordion-item-header-wrapper" v-if="!hasCustomHeader">
|
|
6
6
|
<h2 v-if="title" class="psui-el-accordion-item-title">{{ title }}</h2>
|
|
7
7
|
<slot name='header-additionals'></slot>
|
|
8
|
-
<i class="psui-el-accordion-item-icon">{{ getIcon }}</i>
|
|
8
|
+
<i v-if="!disabled" class="psui-el-accordion-item-icon">{{ getIcon }}</i>
|
|
9
9
|
</div>
|
|
10
10
|
</slot>
|
|
11
11
|
</div>
|
|
@@ -49,11 +49,18 @@ export default {
|
|
|
49
49
|
type: String
|
|
50
50
|
},
|
|
51
51
|
/**
|
|
52
|
-
* It sets if it has a custom header
|
|
52
|
+
* It sets if it has a custom header.
|
|
53
53
|
*/
|
|
54
54
|
hasCustomHeader: {
|
|
55
55
|
type: Boolean,
|
|
56
56
|
default: false
|
|
57
|
+
},
|
|
58
|
+
/**
|
|
59
|
+
* It sets the disabled status.
|
|
60
|
+
*/
|
|
61
|
+
disabled: {
|
|
62
|
+
type: Boolean,
|
|
63
|
+
default: false
|
|
57
64
|
}
|
|
58
65
|
},
|
|
59
66
|
data() {
|
|
@@ -18,6 +18,8 @@
|
|
|
18
18
|
:placeholder="placeholder"
|
|
19
19
|
:disabled="disabled"
|
|
20
20
|
:value="value"
|
|
21
|
+
:min="minValue"
|
|
22
|
+
:max="maxValue"
|
|
21
23
|
@focus="onInputFocus"
|
|
22
24
|
@blur="onInputBlur"
|
|
23
25
|
@input="$emit('input', $event)"
|
|
@@ -105,6 +107,12 @@ export default {
|
|
|
105
107
|
type: Boolean,
|
|
106
108
|
default: false
|
|
107
109
|
},
|
|
110
|
+
minValue: {
|
|
111
|
+
type: Number
|
|
112
|
+
},
|
|
113
|
+
maxValue: {
|
|
114
|
+
type: Number
|
|
115
|
+
}
|
|
108
116
|
},
|
|
109
117
|
data: () => ({
|
|
110
118
|
isFocus: false,
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
icon="expand_more"
|
|
34
34
|
size="24"
|
|
35
35
|
class="psui-cursor-pointer psui-transform psui-transition"
|
|
36
|
-
icon-classes="
|
|
36
|
+
:icon-classes="getIconClasses(item)"
|
|
37
37
|
:style="{ display: 'flex' }"
|
|
38
38
|
:class="checkItemIsVisible(item) ? 'psui-rotate-0' : 'psui--rotate-90'"
|
|
39
39
|
@click.native="$emit('collapse-row', item)"
|
|
@@ -196,6 +196,9 @@ export default {
|
|
|
196
196
|
}
|
|
197
197
|
},
|
|
198
198
|
methods: {
|
|
199
|
+
getIconClasses(item) {
|
|
200
|
+
return this.checkItemIsVisible(item) ? 'psui-text-gray-40' : 'psui-text-blue-60'
|
|
201
|
+
},
|
|
199
202
|
addRow(item, deep = 0, index, rows) {
|
|
200
203
|
item.deep = deep
|
|
201
204
|
item.index = index
|
|
@@ -235,7 +238,6 @@ export default {
|
|
|
235
238
|
},
|
|
236
239
|
progressBarBreakEven(columnKey) {
|
|
237
240
|
const data = this.formatFunction(columnKey, this.item.data[columnKey], this.item.data)
|
|
238
|
-
console.log('data:', data)
|
|
239
241
|
if (Number(data) === 0 || data === '--') {
|
|
240
242
|
return this.item.data[columnKey]
|
|
241
243
|
}
|