@policystudio/policy-studio-ui-vue 1.0.45 → 1.0.46
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 +105 -43
- package/package.json +1 -1
- package/src/assets/scss/components/PsCheckbox.scss +86 -84
- package/src/assets/scss/components/PsDraggable.scss +61 -44
- package/src/assets/scss/components/PsInput.scss +1 -1
- package/src/assets/scss/components/PsMiniTag.scss +22 -2
- package/src/components/badges-and-tags/PsMiniTag.vue +2 -2
- package/src/components/controls/PsDraggable.vue +16 -15
- package/src/index.js +4 -1
- package/src/stories/Draggable.stories.js +11 -11
package/dist/css/psui_styles.css
CHANGED
|
@@ -17186,13 +17186,13 @@ html {
|
|
|
17186
17186
|
display: flex;
|
|
17187
17187
|
flex-wrap: wrap;
|
|
17188
17188
|
justify-content: flex-start;
|
|
17189
|
-
grid-gap:
|
|
17190
|
-
gap:
|
|
17189
|
+
grid-row-gap: 1rem;
|
|
17190
|
+
row-gap: 1rem;
|
|
17191
17191
|
}
|
|
17192
17192
|
|
|
17193
17193
|
.psui-el-draggable .psui-el-draggable-wrapper {
|
|
17194
17194
|
width: 100%;
|
|
17195
|
-
border-radius: 0.
|
|
17195
|
+
border-radius: 0.375rem;
|
|
17196
17196
|
--bg-opacity: 1;
|
|
17197
17197
|
background-color: #E6ECF2;
|
|
17198
17198
|
background-color: rgba(230, 236, 242, var(--bg-opacity));
|
|
@@ -17200,56 +17200,83 @@ html {
|
|
|
17200
17200
|
display: flex;
|
|
17201
17201
|
align-items: center;
|
|
17202
17202
|
flex-direction: column;
|
|
17203
|
-
padding: 8px
|
|
17203
|
+
padding: 8px;
|
|
17204
17204
|
}
|
|
17205
17205
|
|
|
17206
|
-
.psui-el-draggable .psui-el-draggable-title {
|
|
17206
|
+
.psui-el-draggable .psui-el-draggable-wrapper-title {
|
|
17207
|
+
width: 100%;
|
|
17208
|
+
display: flex;
|
|
17209
|
+
border-radius: 0.125rem;
|
|
17210
|
+
align-items: center;
|
|
17211
|
+
justify-content: space-between;
|
|
17212
|
+
cursor: -webkit-grab;
|
|
17213
|
+
cursor: grab;
|
|
17214
|
+
margin-bottom: 0.5rem;
|
|
17215
|
+
padding: 8px 16px;
|
|
17216
|
+
}
|
|
17217
|
+
|
|
17218
|
+
.psui-el-draggable .psui-el-draggable-wrapper-title p {
|
|
17219
|
+
font-size: 12px;
|
|
17220
|
+
line-height: 130%;
|
|
17221
|
+
--text-opacity: 1;
|
|
17222
|
+
color: #28323B;
|
|
17223
|
+
color: rgba(40, 50, 59, var(--text-opacity));
|
|
17224
|
+
font-weight: 700;
|
|
17225
|
+
text-transform: uppercase;
|
|
17226
|
+
letter-spacing: 0.6px;
|
|
17227
|
+
}
|
|
17228
|
+
|
|
17229
|
+
.psui-el-draggable .psui-el-draggable-wrapper-title i {
|
|
17230
|
+
--text-opacity: 1;
|
|
17231
|
+
color: #A2ACB7;
|
|
17232
|
+
color: rgba(162, 172, 183, var(--text-opacity));
|
|
17233
|
+
font-size: 18px;
|
|
17234
|
+
}
|
|
17235
|
+
|
|
17236
|
+
.psui-el-draggable .psui-el-draggable-wrapper-list {
|
|
17237
|
+
width: 100%;
|
|
17238
|
+
display: flex;
|
|
17239
|
+
flex-direction: column;
|
|
17240
|
+
grid-row-gap: 0.5rem;
|
|
17241
|
+
row-gap: 0.5rem;
|
|
17242
|
+
}
|
|
17243
|
+
|
|
17244
|
+
.psui-el-draggable .psui-el-draggable-item {
|
|
17207
17245
|
width: 100%;
|
|
17208
17246
|
display: flex;
|
|
17209
17247
|
border-radius: 0.125rem;
|
|
17248
|
+
background-color: #ffffff;
|
|
17210
17249
|
align-items: center;
|
|
17211
17250
|
cursor: -webkit-grab;
|
|
17212
17251
|
cursor: grab;
|
|
17213
|
-
|
|
17252
|
+
box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.03), 0px 1px 2px rgba(0, 0, 0, 0.1);
|
|
17253
|
+
padding: 7px 16px;
|
|
17214
17254
|
}
|
|
17215
17255
|
|
|
17216
|
-
.psui-el-draggable .psui-el-draggable-title
|
|
17217
|
-
cursor: -webkit-grabbing;
|
|
17218
|
-
cursor: grabbing;
|
|
17219
|
-
}
|
|
17220
|
-
|
|
17221
|
-
.psui-el-draggable .psui-el-draggable-title{
|
|
17222
|
-
padding: 6px 16px;
|
|
17223
|
-
}
|
|
17224
|
-
|
|
17225
|
-
.psui-el-draggable .psui-el-draggable-title h2 {
|
|
17226
|
-
width: 100%;
|
|
17256
|
+
.psui-el-draggable .psui-el-draggable-item-title {
|
|
17227
17257
|
--text-opacity: 1;
|
|
17228
|
-
color: #
|
|
17229
|
-
color: rgba(
|
|
17258
|
+
color: #515E6A;
|
|
17259
|
+
color: rgba(81, 94, 106, var(--text-opacity));
|
|
17260
|
+
font-size: 14px;
|
|
17261
|
+
line-height: 130%;
|
|
17230
17262
|
font-weight: 700;
|
|
17231
|
-
text-transform: uppercase;
|
|
17232
|
-
font-size: 12px;
|
|
17233
17263
|
}
|
|
17234
17264
|
|
|
17235
|
-
.psui-el-draggable .psui-el-draggable-
|
|
17236
|
-
|
|
17237
|
-
font-weight: normal;
|
|
17238
|
-
font-style: normal;
|
|
17239
|
-
font-size: 24px;
|
|
17240
|
-
line-height: 1;
|
|
17241
|
-
letter-spacing: normal;
|
|
17242
|
-
text-transform: none;
|
|
17243
|
-
display: inline-block;
|
|
17244
|
-
white-space: nowrap;
|
|
17245
|
-
word-wrap: normal;
|
|
17246
|
-
direction: ltr;
|
|
17247
|
-
-webkit-font-feature-settings: 'liga';
|
|
17248
|
-
-webkit-font-smoothing: antialiased;
|
|
17265
|
+
.psui-el-draggable .psui-el-draggable-item-append {
|
|
17266
|
+
display: flex;
|
|
17249
17267
|
--text-opacity: 1;
|
|
17250
|
-
color: #
|
|
17251
|
-
color: rgba(
|
|
17252
|
-
|
|
17268
|
+
color: #D6DDE5;
|
|
17269
|
+
color: rgba(214, 221, 229, var(--text-opacity));
|
|
17270
|
+
margin-left: auto;
|
|
17271
|
+
}
|
|
17272
|
+
|
|
17273
|
+
.psui-el-draggable .psui-el-draggable-item-append i {
|
|
17274
|
+
font-size: 18px;
|
|
17275
|
+
}
|
|
17276
|
+
|
|
17277
|
+
.psui-el-draggable .psui-el-draggable-item:active {
|
|
17278
|
+
cursor: -webkit-grabbing;
|
|
17279
|
+
cursor: grabbing;
|
|
17253
17280
|
}
|
|
17254
17281
|
|
|
17255
17282
|
.psui-el-draggable .psui-el-draggable-list-items-wrapper {
|
|
@@ -18018,7 +18045,7 @@ html {
|
|
|
18018
18045
|
|
|
18019
18046
|
.psui-el-mini-tag {
|
|
18020
18047
|
display: flex;
|
|
18021
|
-
border-radius:
|
|
18048
|
+
border-radius: 0.5rem;
|
|
18022
18049
|
align-items: center;
|
|
18023
18050
|
justify-content: center;
|
|
18024
18051
|
flex-direction: row;
|
|
@@ -18027,7 +18054,7 @@ html {
|
|
|
18027
18054
|
width: fit-content;
|
|
18028
18055
|
}
|
|
18029
18056
|
|
|
18030
|
-
.psui-el-mini-tag
|
|
18057
|
+
.psui-el-mini-tag span {
|
|
18031
18058
|
width: 100%;
|
|
18032
18059
|
font-weight: 700;
|
|
18033
18060
|
padding: 1px 8px 0px 8px;
|
|
@@ -18035,6 +18062,13 @@ html {
|
|
|
18035
18062
|
letter-spacing: 0.5px;
|
|
18036
18063
|
}
|
|
18037
18064
|
|
|
18065
|
+
.psui-el-mini-tag-layout-solid-info{
|
|
18066
|
+
--bg-opacity: 1;
|
|
18067
|
+
background-color: #64B5CE;
|
|
18068
|
+
background-color: rgba(100, 181, 206, var(--bg-opacity));
|
|
18069
|
+
color: #ffffff
|
|
18070
|
+
}
|
|
18071
|
+
|
|
18038
18072
|
.psui-el-mini-tag-layout-info {
|
|
18039
18073
|
--bg-opacity: 1;
|
|
18040
18074
|
background-color: #E0EFF6;
|
|
@@ -18044,6 +18078,13 @@ html {
|
|
|
18044
18078
|
color: rgba(49, 143, 172, var(--text-opacity))
|
|
18045
18079
|
}
|
|
18046
18080
|
|
|
18081
|
+
.psui-el-mini-tag-layout-solid-success {
|
|
18082
|
+
--bg-opacity: 1;
|
|
18083
|
+
background-color: #5DB883;
|
|
18084
|
+
background-color: rgba(93, 184, 131, var(--bg-opacity));
|
|
18085
|
+
color: #ffffff
|
|
18086
|
+
}
|
|
18087
|
+
|
|
18047
18088
|
.psui-el-mini-tag-layout-success {
|
|
18048
18089
|
--bg-opacity: 1;
|
|
18049
18090
|
background-color: #DEF8E8;
|
|
@@ -18053,6 +18094,13 @@ html {
|
|
|
18053
18094
|
color: rgba(68, 160, 106, var(--text-opacity))
|
|
18054
18095
|
}
|
|
18055
18096
|
|
|
18097
|
+
.psui-el-mini-tag-layout-solid-warning {
|
|
18098
|
+
--bg-opacity: 1;
|
|
18099
|
+
background-color: #EDAB3E;
|
|
18100
|
+
background-color: rgba(237, 171, 62, var(--bg-opacity));
|
|
18101
|
+
color: #ffffff
|
|
18102
|
+
}
|
|
18103
|
+
|
|
18056
18104
|
.psui-el-mini-tag-layout-warning {
|
|
18057
18105
|
--bg-opacity: 1;
|
|
18058
18106
|
background-color: #FDF3E3;
|
|
@@ -18062,6 +18110,13 @@ html {
|
|
|
18062
18110
|
color: rgba(184, 115, 5, var(--text-opacity))
|
|
18063
18111
|
}
|
|
18064
18112
|
|
|
18113
|
+
.psui-el-mini-tag-layout-solid-error {
|
|
18114
|
+
--bg-opacity: 1;
|
|
18115
|
+
background-color: #D65C5A;
|
|
18116
|
+
background-color: rgba(214, 92, 90, var(--bg-opacity));
|
|
18117
|
+
color: #ffffff
|
|
18118
|
+
}
|
|
18119
|
+
|
|
18065
18120
|
.psui-el-mini-tag-layout-error {
|
|
18066
18121
|
--bg-opacity: 1;
|
|
18067
18122
|
background-color: #FCEBEB;
|
|
@@ -18071,6 +18126,13 @@ html {
|
|
|
18071
18126
|
color: rgba(214, 92, 90, var(--text-opacity))
|
|
18072
18127
|
}
|
|
18073
18128
|
|
|
18129
|
+
.psui-el-mini-tag-layout-solid-default {
|
|
18130
|
+
--bg-opacity: 1;
|
|
18131
|
+
background-color: #A2ACB7;
|
|
18132
|
+
background-color: rgba(162, 172, 183, var(--bg-opacity));
|
|
18133
|
+
color: #ffffff
|
|
18134
|
+
}
|
|
18135
|
+
|
|
18074
18136
|
.psui-el-mini-tag-layout-default {
|
|
18075
18137
|
--bg-opacity: 1;
|
|
18076
18138
|
background-color: #E6ECF2;
|
|
@@ -18775,7 +18837,7 @@ html {
|
|
|
18775
18837
|
display: flex;
|
|
18776
18838
|
cursor: pointer;
|
|
18777
18839
|
align-items: center;
|
|
18778
|
-
height:
|
|
18840
|
+
min-height: 18px;
|
|
18779
18841
|
}
|
|
18780
18842
|
|
|
18781
18843
|
.psui-el-checkbox.size-small .psui-el-checkmark span {
|
|
@@ -18824,7 +18886,7 @@ html {
|
|
|
18824
18886
|
display: flex;
|
|
18825
18887
|
cursor: pointer;
|
|
18826
18888
|
align-items: center;
|
|
18827
|
-
height:
|
|
18889
|
+
min-height: 24px;
|
|
18828
18890
|
}
|
|
18829
18891
|
|
|
18830
18892
|
.psui-el-checkbox.size-big .psui-el-checkmark span {
|
|
@@ -20012,7 +20074,7 @@ html {
|
|
|
20012
20074
|
color: rgba(121, 132, 144, var(--text-opacity));
|
|
20013
20075
|
margin-top: 0.25rem;
|
|
20014
20076
|
font-size: 12px;
|
|
20015
|
-
line-height:
|
|
20077
|
+
line-height: 15.6px;
|
|
20016
20078
|
}
|
|
20017
20079
|
|
|
20018
20080
|
.psui-el-input-wrapper {
|
package/package.json
CHANGED
|
@@ -1,95 +1,97 @@
|
|
|
1
1
|
@layer components {
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
3
|
+
.psui-el-checkbox {
|
|
4
|
+
@apply psui-relative psui-text-gray-50;
|
|
5
|
+
|
|
6
|
+
&.disabled {
|
|
7
|
+
.psui-el-checkmark {
|
|
8
|
+
@apply psui-cursor-default psui-text-gray-40 !important
|
|
9
|
+
}
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
.psui-el-checkmark::before {
|
|
12
|
+
@apply psui-text-gray-30 !important
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
&.size-small {
|
|
17
|
+
@apply psui-text-small;
|
|
18
|
+
|
|
19
|
+
&.layout-default {
|
|
20
|
+
input:checked ~.psui-el-checkmark::before {
|
|
21
|
+
content: 'check_box';
|
|
22
|
+
font-family: 'Material Icons Round';
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
&.layout-mixed {
|
|
27
|
+
input:checked ~.psui-el-checkmark::before {
|
|
28
|
+
content: 'indeterminate_check_box';
|
|
29
|
+
font-family: 'Material Icons Round';
|
|
14
30
|
}
|
|
31
|
+
}
|
|
32
|
+
input {
|
|
33
|
+
@apply psui-absolute psui-opacity-0 psui-h-0 psui-w-0;
|
|
15
34
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
}
|
|
25
|
-
&.layout-mixed {
|
|
26
|
-
input:checked ~.psui-el-checkmark::before {
|
|
27
|
-
content: 'indeterminate_check_box';
|
|
28
|
-
font-family: 'Material Icons Round';
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
input {
|
|
32
|
-
@apply psui-absolute psui-opacity-0 psui-h-0 psui-w-0;
|
|
33
|
-
|
|
34
|
-
&:checked ~ .psui-el-checkmark::before {
|
|
35
|
-
@apply psui-text-blue-50;
|
|
36
|
-
font-size: 18px;
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
.psui-el-checkmark {
|
|
40
|
-
@apply psui-flex psui-cursor-pointer psui-items-center;
|
|
41
|
-
height: 100%;
|
|
35
|
+
&:checked ~ .psui-el-checkmark::before {
|
|
36
|
+
@apply psui-text-blue-50;
|
|
37
|
+
font-size: 18px;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
.psui-el-checkmark {
|
|
41
|
+
@apply psui-flex psui-cursor-pointer psui-items-center;
|
|
42
|
+
min-height: 18px;
|
|
42
43
|
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
44
|
+
span {
|
|
45
|
+
margin-left: 8px;
|
|
46
|
+
}
|
|
46
47
|
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
&.size-big {
|
|
56
|
-
@apply psui-text-big;
|
|
48
|
+
&::before {
|
|
49
|
+
content:'check_box_outline_blank';
|
|
50
|
+
@apply psui-text-gray-40;
|
|
51
|
+
font-family:'Material Icons Round';
|
|
52
|
+
font-size: 18px;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
57
56
|
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
content: 'indeterminate_check_box';
|
|
61
|
-
font-family: 'Material Icons Round';
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
&.layout-default {
|
|
65
|
-
input:checked ~.psui-el-checkmark::before {
|
|
66
|
-
content: 'check_box';
|
|
67
|
-
font-family: 'Material Icons Round';
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
input {
|
|
71
|
-
@apply psui-absolute psui-opacity-0 psui-h-0 psui-w-0;
|
|
72
|
-
|
|
73
|
-
&:checked ~ .psui-el-checkmark:before {
|
|
74
|
-
@apply psui-text-blue-50;
|
|
75
|
-
font-size: 24px;
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
.psui-el-checkmark {
|
|
79
|
-
@apply psui-flex psui-cursor-pointer psui-items-center;
|
|
80
|
-
height: 100%;
|
|
81
|
-
|
|
82
|
-
span {
|
|
83
|
-
margin-left: 8px;
|
|
84
|
-
}
|
|
57
|
+
&.size-big {
|
|
58
|
+
@apply psui-text-big;
|
|
85
59
|
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
60
|
+
&.layout-mixed {
|
|
61
|
+
input:checked ~.psui-el-checkmark::before {
|
|
62
|
+
content: 'indeterminate_check_box';
|
|
63
|
+
font-family: 'Material Icons Round';
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
&.layout-default {
|
|
67
|
+
input:checked ~.psui-el-checkmark::before {
|
|
68
|
+
content: 'check_box';
|
|
69
|
+
font-family: 'Material Icons Round';
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
input {
|
|
73
|
+
@apply psui-absolute psui-opacity-0 psui-h-0 psui-w-0;
|
|
74
|
+
|
|
75
|
+
&:checked ~ .psui-el-checkmark:before {
|
|
76
|
+
@apply psui-text-blue-50;
|
|
77
|
+
font-size: 24px;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
.psui-el-checkmark {
|
|
81
|
+
@apply psui-flex psui-cursor-pointer psui-items-center;
|
|
82
|
+
min-height: 24px;
|
|
83
|
+
|
|
84
|
+
span {
|
|
85
|
+
margin-left: 8px;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
&:before {
|
|
89
|
+
content:'check_box_outline_blank';
|
|
90
|
+
@apply psui-text-gray-40 psui-align-text-bottom;
|
|
91
|
+
font-family:'Material Icons Round';
|
|
92
|
+
font-size: 24px;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
94
95
|
}
|
|
96
|
+
}
|
|
95
97
|
}
|
|
@@ -1,64 +1,81 @@
|
|
|
1
1
|
@layer components {
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
.psui-el-draggable {
|
|
3
|
+
@apply psui-w-full psui-flex psui-flex-wrap psui-justify-start psui-gap-y-4;
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
.psui-el-draggable-wrapper {
|
|
6
|
+
@apply psui-w-full psui-rounded-md psui-bg-gray-20 psui-p-2 psui-flex psui-items-center psui-flex-col;
|
|
7
|
+
padding: 8px;
|
|
8
|
+
|
|
9
|
+
&-title {
|
|
10
|
+
@apply psui-w-full psui-flex psui-rounded-sm psui-items-center psui-justify-between psui-cursor-grab psui-mb-2;
|
|
11
|
+
padding: 8px 16px;
|
|
12
|
+
|
|
13
|
+
p {
|
|
14
|
+
@apply psui-text-accentSmall psui-text-gray-80 psui-font-bold psui-uppercase;
|
|
15
|
+
letter-spacing: 0.6px;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
i {
|
|
19
|
+
@apply psui-text-gray-40;
|
|
20
|
+
font-size: 18px;
|
|
9
21
|
}
|
|
22
|
+
}
|
|
10
23
|
|
|
11
|
-
|
|
12
|
-
|
|
24
|
+
&-list {
|
|
25
|
+
@apply psui-w-full psui-flex psui-flex-col psui-gap-y-2;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
13
28
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
padding: 6px 16px;
|
|
29
|
+
.psui-el-draggable-item {
|
|
30
|
+
@apply psui-w-full psui-flex psui-rounded-sm psui-bg-white psui-items-center psui-cursor-grab psui-shadow-elevation-5;
|
|
31
|
+
padding: 7px 16px;
|
|
19
32
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
}
|
|
33
|
+
&-title {
|
|
34
|
+
@apply psui-text-gray-60 psui-text-small psui-font-bold;
|
|
35
|
+
}
|
|
24
36
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
font-size: 18px;
|
|
28
|
-
}
|
|
29
|
-
}
|
|
37
|
+
&-append {
|
|
38
|
+
@apply psui-flex psui-text-gray-30 psui-ml-auto;
|
|
30
39
|
|
|
40
|
+
i {
|
|
41
|
+
font-size: 18px;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
31
44
|
|
|
32
|
-
|
|
33
|
-
|
|
45
|
+
&:active {
|
|
46
|
+
@apply psui-cursor-grabbing;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
34
49
|
|
|
35
|
-
li {
|
|
36
|
-
@apply psui-w-full psui-mb-2 psui-shadow-elevation-5 psui-bg-white psui-rounded psui-flex psui-items-center;
|
|
37
|
-
padding: 7px 16px;
|
|
38
50
|
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
}
|
|
51
|
+
.psui-el-draggable-list-items-wrapper {
|
|
52
|
+
@apply psui-w-full psui-flex psui-flex-wrap;
|
|
42
53
|
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
}
|
|
54
|
+
li {
|
|
55
|
+
@apply psui-w-full psui-mb-2 psui-shadow-elevation-5 psui-bg-white psui-rounded psui-flex psui-items-center;
|
|
56
|
+
padding: 7px 16px;
|
|
47
57
|
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
58
|
+
&:hover {
|
|
59
|
+
@apply psui-text-gray-50 psui-cursor-grab
|
|
60
|
+
}
|
|
51
61
|
|
|
52
|
-
|
|
53
|
-
|
|
62
|
+
&:active {
|
|
63
|
+
@apply psui-cursor-grabbing
|
|
64
|
+
}
|
|
65
|
+
}
|
|
54
66
|
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
67
|
+
.psui-el-draggable-item-wrapper {
|
|
68
|
+
@apply psui-select-none psui-w-full psui-flex psui-items-center
|
|
69
|
+
}
|
|
58
70
|
|
|
71
|
+
.psui-el-draggable-item-icon {
|
|
72
|
+
@apply psui-flex psui-justify-end psui-ml-auto;
|
|
59
73
|
|
|
60
|
-
|
|
61
|
-
|
|
74
|
+
i {
|
|
75
|
+
@apply psui-icon psui-text-gray-30;
|
|
76
|
+
font-size: 18px;
|
|
62
77
|
}
|
|
78
|
+
}
|
|
63
79
|
}
|
|
80
|
+
}
|
|
64
81
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
@layer components {
|
|
2
2
|
.psui-el-mini-tag {
|
|
3
|
-
@apply psui-flex psui-rounded-
|
|
3
|
+
@apply psui-flex psui-rounded-lg psui-items-center psui-justify-center psui-flex-row;
|
|
4
4
|
width: fit-content;
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
span {
|
|
8
8
|
@apply psui-w-full psui-font-bold;
|
|
9
9
|
padding: 1px 8px 0px 8px;
|
|
10
10
|
font-size: 10px;
|
|
@@ -12,22 +12,42 @@
|
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
&-layout{
|
|
15
|
+
&-solid-info{
|
|
16
|
+
@apply psui-bg-blue-50 psui-text-white
|
|
17
|
+
}
|
|
18
|
+
|
|
15
19
|
&-info {
|
|
16
20
|
@apply psui-bg-blue-20 psui-text-blue-60
|
|
17
21
|
}
|
|
22
|
+
|
|
23
|
+
&-solid-success {
|
|
24
|
+
@apply psui-bg-green-20 psui-text-white
|
|
25
|
+
}
|
|
18
26
|
|
|
19
27
|
&-success {
|
|
20
28
|
@apply psui-bg-green-10 psui-text-green-70
|
|
21
29
|
}
|
|
22
30
|
|
|
31
|
+
&-solid-warning {
|
|
32
|
+
@apply psui-bg-yellow-20 psui-text-white
|
|
33
|
+
}
|
|
34
|
+
|
|
23
35
|
&-warning {
|
|
24
36
|
@apply psui-bg-yellow-10 psui-text-yellow-70
|
|
25
37
|
}
|
|
26
38
|
|
|
39
|
+
&-solid-error {
|
|
40
|
+
@apply psui-bg-red-20 psui-text-white
|
|
41
|
+
}
|
|
42
|
+
|
|
27
43
|
&-error {
|
|
28
44
|
@apply psui-bg-red-10 psui-text-red-20
|
|
29
45
|
}
|
|
30
46
|
|
|
47
|
+
&-solid-default {
|
|
48
|
+
@apply psui-bg-gray-40 psui-text-white
|
|
49
|
+
}
|
|
50
|
+
|
|
31
51
|
&-default {
|
|
32
52
|
@apply psui-bg-gray-20 psui-text-gray-50
|
|
33
53
|
}
|
|
@@ -5,39 +5,40 @@
|
|
|
5
5
|
:key="indexColumnGroup"
|
|
6
6
|
:ref="indexColumnGroup"
|
|
7
7
|
>
|
|
8
|
-
<!-- COLUMN GROUP -->
|
|
9
8
|
<div
|
|
10
|
-
class="psui-el-draggable-title"
|
|
9
|
+
class="psui-el-draggable-wrapper-title"
|
|
11
10
|
draggable="true"
|
|
12
11
|
@dragstart="onDragStart"
|
|
13
12
|
@dragover="$emit('drag-over', $event)"
|
|
14
13
|
@dragend="onDragEnd"
|
|
15
14
|
>
|
|
16
|
-
<
|
|
17
|
-
<i >drag_indicator</i>
|
|
15
|
+
<p>{{ columnGroup.title }}</p>
|
|
16
|
+
<i class="material-icons-round">drag_indicator</i>
|
|
18
17
|
</div>
|
|
19
18
|
|
|
20
|
-
<
|
|
21
|
-
|
|
22
|
-
<li
|
|
19
|
+
<div class="psui-el-draggable-wrapper-list">
|
|
20
|
+
<div
|
|
23
21
|
v-for="(column, indexColumn) in columnGroup.columns"
|
|
24
22
|
:key="`edit-columns-column-${indexColumnGroup}-${indexColumn}`"
|
|
25
23
|
:id="`edit-columns-column-${indexColumnGroup}-${indexColumn}`"
|
|
24
|
+
class="psui-el-draggable-item"
|
|
26
25
|
>
|
|
27
|
-
<div
|
|
26
|
+
<div
|
|
27
|
+
class="psui-w-full psui-flex psui-items-center"
|
|
28
28
|
draggable="true"
|
|
29
29
|
@dragstart="$emit('drag-start-item',$event)"
|
|
30
30
|
@dragover="$emit('drag-over-item',$event)"
|
|
31
31
|
@dragend="$emit('drag-end-item',$event)"
|
|
32
32
|
>
|
|
33
|
-
<
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
33
|
+
<span class="psui-el-draggable-item-title">
|
|
34
|
+
{{ column.title }}
|
|
35
|
+
</span>
|
|
36
|
+
<span class="psui-el-draggable-item-append">
|
|
37
|
+
<i class="material-icons-round">drag_indicator</i>
|
|
38
|
+
</span>
|
|
38
39
|
</div>
|
|
39
|
-
</
|
|
40
|
-
</
|
|
40
|
+
</div>
|
|
41
|
+
</div>
|
|
41
42
|
</div>
|
|
42
43
|
</div>
|
|
43
44
|
</template>
|
package/src/index.js
CHANGED
|
@@ -27,6 +27,7 @@ import PsCardInfos from './components/badges-and-tags/PsCardInfos.vue'
|
|
|
27
27
|
import PsChartLegend from './components/badges-and-tags/PsChartLegend.vue'
|
|
28
28
|
import PsInlineSelector from './components/controls/PsInlineSelector.vue'
|
|
29
29
|
import PsScrollBar from './components/playground/PsScrollBar.vue'
|
|
30
|
+
import PsMiniTag from './components/badges-and-tags/PsMiniTag.vue'
|
|
30
31
|
|
|
31
32
|
|
|
32
33
|
|
|
@@ -61,6 +62,7 @@ export default {
|
|
|
61
62
|
Vue.component('PsDropdown',PsDropdown)
|
|
62
63
|
Vue.component('PsDropdownList', PsDropdownList)
|
|
63
64
|
Vue.component('PsScrollBar', PsScrollBar)
|
|
65
|
+
Vue.component('PsMiniTag', PsMiniTag)
|
|
64
66
|
|
|
65
67
|
Vue.directive('click-outside', {
|
|
66
68
|
bind: function (el, binding, vnode) {
|
|
@@ -109,6 +111,7 @@ export {
|
|
|
109
111
|
PsInputSelect,
|
|
110
112
|
PsDropdown,
|
|
111
113
|
PsDropdownList,
|
|
112
|
-
PsScrollBar
|
|
114
|
+
PsScrollBar,
|
|
115
|
+
PsMiniTag
|
|
113
116
|
}
|
|
114
117
|
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import PsDraggable from '../components/controls/PsDraggable.vue'
|
|
2
2
|
|
|
3
3
|
export default {
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
title: 'Components/Draggable',
|
|
5
|
+
component: PsDraggable
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
const Template = (args, {argTypes}) => ({
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
9
|
+
props: Object.keys(argTypes),
|
|
10
|
+
components: { PsDraggable },
|
|
11
|
+
template: `
|
|
12
|
+
<div style='width: 300px; font-family: "Lato", sans-serif; font-size: 12px;'>
|
|
13
|
+
<PsDraggable v-bind='$props'/>
|
|
14
|
+
</div>
|
|
15
|
+
`
|
|
16
16
|
})
|
|
17
17
|
|
|
18
18
|
export const Component = Template.bind({})
|
|
19
19
|
Component.args = {
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
getColumns: {columnGroups:[{title: 'COST EFFECTIVENESS', columns: [ 'Item 1' , 'Item 2' , 'Item 3', 'Item 4']}, {title: 'PER HOME RESULTS', columns: [ 'Item 1' , 'Item 2' , 'Item 3', 'Item 4']}]},
|
|
21
|
+
module: 'comparison'
|
|
22
22
|
}
|