@policystudio/policy-studio-ui-vue 1.1.47 → 1.1.49
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
|
@@ -3010,6 +3010,12 @@ video {
|
|
|
3010
3010
|
pointer-events: none;
|
|
3011
3011
|
}
|
|
3012
3012
|
|
|
3013
|
+
.psui-el-switch.disabled .psui-el-switch-button {
|
|
3014
|
+
--bg-opacity: 1;
|
|
3015
|
+
background-color: #E6ECF2;
|
|
3016
|
+
background-color: rgba(230, 236, 242, var(--bg-opacity));
|
|
3017
|
+
}
|
|
3018
|
+
|
|
3013
3019
|
.psui-el-switch.size-big {
|
|
3014
3020
|
width: 46px;
|
|
3015
3021
|
height: 24px;
|
|
@@ -3035,12 +3041,6 @@ video {
|
|
|
3035
3041
|
content: '';
|
|
3036
3042
|
}
|
|
3037
3043
|
|
|
3038
|
-
.psui-el-switch.size-small .psui-el-switch-button.toggle-true {
|
|
3039
|
-
--bg-opacity: 1;
|
|
3040
|
-
background-color: #5DB883;
|
|
3041
|
-
background-color: rgba(93, 184, 131, var(--bg-opacity));
|
|
3042
|
-
}
|
|
3043
|
-
|
|
3044
3044
|
.psui-el-switch.size-small .psui-el-switch-button.toggle-true::before {
|
|
3045
3045
|
position: absolute;
|
|
3046
3046
|
height: 0.75rem;
|
|
@@ -3075,9 +3075,6 @@ video {
|
|
|
3075
3075
|
left: 0;
|
|
3076
3076
|
right: 0;
|
|
3077
3077
|
bottom: 0;
|
|
3078
|
-
--bg-opacity: 1;
|
|
3079
|
-
background-color: #A2ACB7;
|
|
3080
|
-
background-color: rgba(162, 172, 183, var(--bg-opacity));
|
|
3081
3078
|
border-radius: 9999px;
|
|
3082
3079
|
transition-property: all;
|
|
3083
3080
|
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
@@ -3099,12 +3096,6 @@ video {
|
|
|
3099
3096
|
content: '';
|
|
3100
3097
|
}
|
|
3101
3098
|
|
|
3102
|
-
.psui-el-switch .psui-el-switch-button.toggle-true {
|
|
3103
|
-
--bg-opacity: 1;
|
|
3104
|
-
background-color: #5DB883;
|
|
3105
|
-
background-color: rgba(93, 184, 131, var(--bg-opacity));
|
|
3106
|
-
}
|
|
3107
|
-
|
|
3108
3099
|
.psui-el-switch .psui-el-switch-button.toggle-true::before {
|
|
3109
3100
|
position: absolute;
|
|
3110
3101
|
height: 1.25rem;
|
package/package.json
CHANGED
|
@@ -4,7 +4,11 @@
|
|
|
4
4
|
|
|
5
5
|
&.disabled {
|
|
6
6
|
pointer-events: none;
|
|
7
|
+
.psui-el-switch-button {
|
|
8
|
+
@apply psui-bg-gray-20;
|
|
9
|
+
}
|
|
7
10
|
}
|
|
11
|
+
|
|
8
12
|
&.size-big {
|
|
9
13
|
width: 46px;
|
|
10
14
|
height: 24px;
|
|
@@ -24,8 +28,6 @@
|
|
|
24
28
|
}
|
|
25
29
|
|
|
26
30
|
&.toggle-true {
|
|
27
|
-
@apply psui-bg-green-20;
|
|
28
|
-
|
|
29
31
|
&::before {
|
|
30
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;
|
|
31
33
|
left: 16px;
|
|
@@ -42,7 +44,7 @@
|
|
|
42
44
|
@apply psui-opacity-0 psui-w-0 psui-h-0;
|
|
43
45
|
}
|
|
44
46
|
.psui-el-switch-button {
|
|
45
|
-
@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;
|
|
46
48
|
|
|
47
49
|
&.toggle-false{
|
|
48
50
|
&::before {
|
|
@@ -54,7 +56,6 @@
|
|
|
54
56
|
}
|
|
55
57
|
|
|
56
58
|
&.toggle-true {
|
|
57
|
-
@apply psui-bg-green-20;
|
|
58
59
|
|
|
59
60
|
&::before {
|
|
60
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
|
*/
|
|
@@ -41,7 +45,8 @@ export default {
|
|
|
41
45
|
},
|
|
42
46
|
computed:{
|
|
43
47
|
getToggleClass(){
|
|
44
|
-
|
|
48
|
+
if(this.disabled) return 'toggle-false'
|
|
49
|
+
return this.value ? `toggle-true ${this.backgroundColor}` : 'toggle-false psui-bg-gray-40'
|
|
45
50
|
},
|
|
46
51
|
getComponentClass(){
|
|
47
52
|
return `size-${this.size}`
|
|
@@ -39,7 +39,15 @@
|
|
|
39
39
|
:style="item.background_color ? `background-color: ${getBackgroundColor(item.background_color)};` : ''"
|
|
40
40
|
class="psui-transition"
|
|
41
41
|
>
|
|
42
|
-
<div class="psui-flex psui-
|
|
42
|
+
<div class="psui-flex psui-relative">
|
|
43
|
+
<PsIcon
|
|
44
|
+
v-if="item.remove_add_button"
|
|
45
|
+
:icon="item.remove_add_button_icon"
|
|
46
|
+
class="psui-flex psui-text-gray-40 pl-8 psui-cursor-pointer leading-none hover:psui-text-blue-60 transition-all"
|
|
47
|
+
size="15"
|
|
48
|
+
display="flex"
|
|
49
|
+
@click.native="$emit('removeOrAddButtonChange',item)"
|
|
50
|
+
/>
|
|
43
51
|
<div
|
|
44
52
|
class="psui-flex psui-items-center actions psui-space-x-3"
|
|
45
53
|
:style="{paddingLeft: `${item.deep * 16}px`}"
|
|
@@ -189,6 +197,7 @@
|
|
|
189
197
|
class="psui-space-x-2 psui-show-childrens-on-hover"
|
|
190
198
|
:class="column.isCenteredContent ? 'psui-justify-center' : 'psui-justify-end'"
|
|
191
199
|
>
|
|
200
|
+
|
|
192
201
|
<PsTooltip v-if="isSelectedRow(column,item)">
|
|
193
202
|
<template v-slot:trigger>
|
|
194
203
|
<PsIcon
|
|
@@ -252,11 +261,13 @@
|
|
|
252
261
|
:value="item.data[column.key] == '--' ? 0 : item.data[column.key]"
|
|
253
262
|
:force-break-even="item.is_disabled || item.data[column.key] === '--' ? true : false"
|
|
254
263
|
/>
|
|
255
|
-
|
|
256
264
|
<PsSwitch
|
|
257
265
|
v-if="column.isSwitch && item.data[column.key] != null"
|
|
266
|
+
:disabled="item.data.is_disabled"
|
|
258
267
|
:value="item.data[column.key]"
|
|
268
|
+
:background-color="switchButtonBackgroundColor"
|
|
259
269
|
size="small"
|
|
270
|
+
@change="$emit('switchButtonItemChanged', item)"
|
|
260
271
|
/>
|
|
261
272
|
</div>
|
|
262
273
|
|
|
@@ -425,6 +436,9 @@ export default {
|
|
|
425
436
|
return []
|
|
426
437
|
}
|
|
427
438
|
},
|
|
439
|
+
switchButtonBackgroundColor:{
|
|
440
|
+
type:String,
|
|
441
|
+
}
|
|
428
442
|
},
|
|
429
443
|
data: () => ({
|
|
430
444
|
collapsedRows : [],
|