@policystudio/policy-studio-ui-vue 1.1.48 → 1.1.50
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
|
@@ -3012,8 +3012,8 @@ video {
|
|
|
3012
3012
|
|
|
3013
3013
|
.psui-el-switch.disabled .psui-el-switch-button {
|
|
3014
3014
|
--bg-opacity: 1;
|
|
3015
|
-
background-color: #
|
|
3016
|
-
background-color: rgba(
|
|
3015
|
+
background-color: #D6DDE5;
|
|
3016
|
+
background-color: rgba(214, 221, 229, var(--bg-opacity));
|
|
3017
3017
|
}
|
|
3018
3018
|
|
|
3019
3019
|
.psui-el-switch.size-big {
|
|
@@ -3041,12 +3041,6 @@ video {
|
|
|
3041
3041
|
content: '';
|
|
3042
3042
|
}
|
|
3043
3043
|
|
|
3044
|
-
.psui-el-switch.size-small .psui-el-switch-button.toggle-true {
|
|
3045
|
-
--bg-opacity: 1;
|
|
3046
|
-
background-color: #5DB883;
|
|
3047
|
-
background-color: rgba(93, 184, 131, var(--bg-opacity));
|
|
3048
|
-
}
|
|
3049
|
-
|
|
3050
3044
|
.psui-el-switch.size-small .psui-el-switch-button.toggle-true::before {
|
|
3051
3045
|
position: absolute;
|
|
3052
3046
|
height: 0.75rem;
|
|
@@ -3081,9 +3075,6 @@ video {
|
|
|
3081
3075
|
left: 0;
|
|
3082
3076
|
right: 0;
|
|
3083
3077
|
bottom: 0;
|
|
3084
|
-
--bg-opacity: 1;
|
|
3085
|
-
background-color: #A2ACB7;
|
|
3086
|
-
background-color: rgba(162, 172, 183, var(--bg-opacity));
|
|
3087
3078
|
border-radius: 9999px;
|
|
3088
3079
|
transition-property: all;
|
|
3089
3080
|
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
@@ -3105,12 +3096,6 @@ video {
|
|
|
3105
3096
|
content: '';
|
|
3106
3097
|
}
|
|
3107
3098
|
|
|
3108
|
-
.psui-el-switch .psui-el-switch-button.toggle-true {
|
|
3109
|
-
--bg-opacity: 1;
|
|
3110
|
-
background-color: #5DB883;
|
|
3111
|
-
background-color: rgba(93, 184, 131, var(--bg-opacity));
|
|
3112
|
-
}
|
|
3113
|
-
|
|
3114
3099
|
.psui-el-switch .psui-el-switch-button.toggle-true::before {
|
|
3115
3100
|
position: absolute;
|
|
3116
3101
|
height: 1.25rem;
|
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
&.disabled {
|
|
6
6
|
pointer-events: none;
|
|
7
7
|
.psui-el-switch-button {
|
|
8
|
-
@apply psui-bg-gray-
|
|
8
|
+
@apply psui-bg-gray-30;
|
|
9
9
|
}
|
|
10
10
|
}
|
|
11
11
|
|
|
@@ -28,8 +28,6 @@
|
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
&.toggle-true {
|
|
31
|
-
@apply psui-bg-green-20;
|
|
32
|
-
|
|
33
31
|
&::before {
|
|
34
32
|
@apply psui-absolute psui-h-3 psui-w-3 psui-bg-white psui-rounded-full psui-transition-all psui-ease-in-out psui-duration-300 psui-shadow-elevation-20;
|
|
35
33
|
left: 16px;
|
|
@@ -46,7 +44,7 @@
|
|
|
46
44
|
@apply psui-opacity-0 psui-w-0 psui-h-0;
|
|
47
45
|
}
|
|
48
46
|
.psui-el-switch-button {
|
|
49
|
-
@apply psui-absolute psui-inline-block psui-cursor-pointer psui-top-0 psui-left-0 psui-right-0 psui-bottom-0 psui-
|
|
47
|
+
@apply psui-absolute psui-inline-block psui-cursor-pointer psui-top-0 psui-left-0 psui-right-0 psui-bottom-0 psui-rounded-full psui-transition-all psui-ease-in-out psui-duration-500;
|
|
50
48
|
|
|
51
49
|
&.toggle-false{
|
|
52
50
|
&::before {
|
|
@@ -58,7 +56,6 @@
|
|
|
58
56
|
}
|
|
59
57
|
|
|
60
58
|
&.toggle-true {
|
|
61
|
-
@apply psui-bg-green-20;
|
|
62
59
|
|
|
63
60
|
&::before {
|
|
64
61
|
@apply psui-absolute psui-h-5 psui-w-5 psui-bg-white psui-rounded-full psui-transition-all psui-ease-in-out psui-duration-300 psui-shadow-elevation-20;
|
|
@@ -23,6 +23,10 @@ export default {
|
|
|
23
23
|
value:{
|
|
24
24
|
type: Boolean,
|
|
25
25
|
},
|
|
26
|
+
backgroundColor: {
|
|
27
|
+
type: String,
|
|
28
|
+
default:'psui-bg-green-20'
|
|
29
|
+
},
|
|
26
30
|
/**
|
|
27
31
|
* It sets disabling mode.
|
|
28
32
|
*/
|
|
@@ -42,7 +46,7 @@ export default {
|
|
|
42
46
|
computed:{
|
|
43
47
|
getToggleClass(){
|
|
44
48
|
if(this.disabled) return 'toggle-false'
|
|
45
|
-
return this.value ?
|
|
49
|
+
return this.value ? `toggle-true ${this.backgroundColor}` : 'toggle-false psui-bg-gray-40'
|
|
46
50
|
},
|
|
47
51
|
getComponentClass(){
|
|
48
52
|
return `size-${this.size}`
|
|
@@ -261,11 +261,11 @@
|
|
|
261
261
|
:value="item.data[column.key] == '--' ? 0 : item.data[column.key]"
|
|
262
262
|
:force-break-even="item.is_disabled || item.data[column.key] === '--' ? true : false"
|
|
263
263
|
/>
|
|
264
|
-
|
|
265
264
|
<PsSwitch
|
|
266
265
|
v-if="column.isSwitch && item.data[column.key] != null"
|
|
267
266
|
:disabled="item.data.is_disabled"
|
|
268
267
|
:value="item.data[column.key]"
|
|
268
|
+
:background-color="switchButtonBackgroundColor"
|
|
269
269
|
size="small"
|
|
270
270
|
@change="$emit('switchButtonItemChanged', item)"
|
|
271
271
|
/>
|
|
@@ -436,6 +436,9 @@ export default {
|
|
|
436
436
|
return []
|
|
437
437
|
}
|
|
438
438
|
},
|
|
439
|
+
switchButtonBackgroundColor:{
|
|
440
|
+
type:String,
|
|
441
|
+
}
|
|
439
442
|
},
|
|
440
443
|
data: () => ({
|
|
441
444
|
collapsedRows : [],
|