@policystudio/policy-studio-ui-vue 1.0.45 → 1.0.48
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 +110 -105
- package/package.json +1 -1
- package/src/assets/scss/components/PsCheckbox.scss +86 -84
- package/src/assets/scss/components/PsDraggable.scss +51 -52
- package/src/assets/scss/components/PsInput.scss +1 -1
- package/src/assets/scss/components/PsMiniTag.scss +22 -2
- package/src/assets/scss/components/PsRadioButton.scss +1 -1
- package/src/components/badges-and-tags/PsMiniTag.vue +7 -3
- package/src/components/controls/PsCheckbox.vue +1 -1
- package/src/components/controls/PsDraggable.vue +30 -32
- 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,124 +17200,97 @@ 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: #798490;
|
|
17259
|
+
color: rgba(121, 132, 144, 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-title
|
|
17236
|
-
|
|
17237
|
-
|
|
17238
|
-
|
|
17239
|
-
|
|
17240
|
-
|
|
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;
|
|
17249
|
-
--text-opacity: 1;
|
|
17250
|
-
color: #A2ACB7;
|
|
17251
|
-
color: rgba(162, 172, 183, var(--text-opacity));
|
|
17252
|
-
font-size: 18px;
|
|
17253
|
-
}
|
|
17254
|
-
|
|
17255
|
-
.psui-el-draggable .psui-el-draggable-list-items-wrapper {
|
|
17256
|
-
width: 100%;
|
|
17257
|
-
display: flex;
|
|
17258
|
-
flex-wrap: wrap;
|
|
17259
|
-
}
|
|
17265
|
+
.psui-el-draggable .psui-el-draggable-item-title .psui-el-checkmark:before {
|
|
17266
|
+
margin-right: 0.25rem;
|
|
17267
|
+
--text-opacity: 1;
|
|
17268
|
+
color: #D6DDE5;
|
|
17269
|
+
color: rgba(214, 221, 229, var(--text-opacity));
|
|
17270
|
+
}
|
|
17260
17271
|
|
|
17261
|
-
.psui-el-draggable .psui-el-draggable-
|
|
17262
|
-
width: 100%;
|
|
17263
|
-
margin-bottom: 0.5rem;
|
|
17264
|
-
box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.03), 0px 1px 2px rgba(0, 0, 0, 0.1);
|
|
17265
|
-
background-color: #ffffff;
|
|
17266
|
-
border-radius: 0.25rem;
|
|
17272
|
+
.psui-el-draggable .psui-el-draggable-item-append {
|
|
17267
17273
|
display: flex;
|
|
17268
|
-
|
|
17269
|
-
|
|
17274
|
+
--text-opacity: 1;
|
|
17275
|
+
color: #D6DDE5;
|
|
17276
|
+
color: rgba(214, 221, 229, var(--text-opacity));
|
|
17277
|
+
margin-left: auto;
|
|
17270
17278
|
}
|
|
17271
17279
|
|
|
17272
|
-
.psui-el-draggable .psui-el-draggable-
|
|
17273
|
-
|
|
17274
|
-
color: #798490;
|
|
17275
|
-
color: rgba(121, 132, 144, var(--text-opacity));
|
|
17276
|
-
cursor: -webkit-grab;
|
|
17277
|
-
cursor: grab
|
|
17278
|
-
}
|
|
17279
|
-
|
|
17280
|
-
.psui-el-draggable .psui-el-draggable-list-items-wrapper li:active {
|
|
17281
|
-
cursor: -webkit-grabbing;
|
|
17282
|
-
cursor: grabbing
|
|
17280
|
+
.psui-el-draggable .psui-el-draggable-item-append i {
|
|
17281
|
+
font-size: 18px;
|
|
17283
17282
|
}
|
|
17284
17283
|
|
|
17285
|
-
.psui-el-draggable .psui-el-draggable-
|
|
17286
|
-
-
|
|
17287
|
-
|
|
17288
|
-
|
|
17289
|
-
user-select: none;
|
|
17290
|
-
width: 100%;
|
|
17291
|
-
display: flex;
|
|
17292
|
-
align-items: center
|
|
17284
|
+
.psui-el-draggable .psui-el-draggable-item:active,
|
|
17285
|
+
.psui-el-draggable .psui-el-draggable-item.on-dragging {
|
|
17286
|
+
cursor: -webkit-grabbing;
|
|
17287
|
+
cursor: grabbing;
|
|
17293
17288
|
}
|
|
17294
17289
|
|
|
17295
|
-
.psui-el-draggable .psui-el-draggable-
|
|
17296
|
-
|
|
17297
|
-
justify-content: flex-end;
|
|
17298
|
-
margin-left: auto;
|
|
17290
|
+
.psui-el-draggable .psui-el-draggable-item.on-drag-over {
|
|
17291
|
+
opacity: 0.2;
|
|
17299
17292
|
}
|
|
17300
17293
|
|
|
17301
|
-
.psui-el-draggable .psui-el-draggable-list-items-wrapper .psui-el-draggable-item-icon i {
|
|
17302
|
-
font-family: 'Material Icons Round';
|
|
17303
|
-
font-weight: normal;
|
|
17304
|
-
font-style: normal;
|
|
17305
|
-
font-size: 24px;
|
|
17306
|
-
line-height: 1;
|
|
17307
|
-
letter-spacing: normal;
|
|
17308
|
-
text-transform: none;
|
|
17309
|
-
display: inline-block;
|
|
17310
|
-
white-space: nowrap;
|
|
17311
|
-
word-wrap: normal;
|
|
17312
|
-
direction: ltr;
|
|
17313
|
-
-webkit-font-feature-settings: 'liga';
|
|
17314
|
-
-webkit-font-smoothing: antialiased;
|
|
17315
|
-
--text-opacity: 1;
|
|
17316
|
-
color: #D6DDE5;
|
|
17317
|
-
color: rgba(214, 221, 229, var(--text-opacity));
|
|
17318
|
-
font-size: 18px;
|
|
17319
|
-
}
|
|
17320
|
-
|
|
17321
17294
|
.psui-el-input-select {
|
|
17322
17295
|
width: 100%;
|
|
17323
17296
|
display: flex;
|
|
@@ -18018,7 +17991,7 @@ html {
|
|
|
18018
17991
|
|
|
18019
17992
|
.psui-el-mini-tag {
|
|
18020
17993
|
display: flex;
|
|
18021
|
-
border-radius:
|
|
17994
|
+
border-radius: 0.5rem;
|
|
18022
17995
|
align-items: center;
|
|
18023
17996
|
justify-content: center;
|
|
18024
17997
|
flex-direction: row;
|
|
@@ -18027,7 +18000,7 @@ html {
|
|
|
18027
18000
|
width: fit-content;
|
|
18028
18001
|
}
|
|
18029
18002
|
|
|
18030
|
-
.psui-el-mini-tag
|
|
18003
|
+
.psui-el-mini-tag span {
|
|
18031
18004
|
width: 100%;
|
|
18032
18005
|
font-weight: 700;
|
|
18033
18006
|
padding: 1px 8px 0px 8px;
|
|
@@ -18035,6 +18008,13 @@ html {
|
|
|
18035
18008
|
letter-spacing: 0.5px;
|
|
18036
18009
|
}
|
|
18037
18010
|
|
|
18011
|
+
.psui-el-mini-tag-layout-solid-info{
|
|
18012
|
+
--bg-opacity: 1;
|
|
18013
|
+
background-color: #64B5CE;
|
|
18014
|
+
background-color: rgba(100, 181, 206, var(--bg-opacity));
|
|
18015
|
+
color: #ffffff
|
|
18016
|
+
}
|
|
18017
|
+
|
|
18038
18018
|
.psui-el-mini-tag-layout-info {
|
|
18039
18019
|
--bg-opacity: 1;
|
|
18040
18020
|
background-color: #E0EFF6;
|
|
@@ -18044,6 +18024,13 @@ html {
|
|
|
18044
18024
|
color: rgba(49, 143, 172, var(--text-opacity))
|
|
18045
18025
|
}
|
|
18046
18026
|
|
|
18027
|
+
.psui-el-mini-tag-layout-solid-success {
|
|
18028
|
+
--bg-opacity: 1;
|
|
18029
|
+
background-color: #5DB883;
|
|
18030
|
+
background-color: rgba(93, 184, 131, var(--bg-opacity));
|
|
18031
|
+
color: #ffffff
|
|
18032
|
+
}
|
|
18033
|
+
|
|
18047
18034
|
.psui-el-mini-tag-layout-success {
|
|
18048
18035
|
--bg-opacity: 1;
|
|
18049
18036
|
background-color: #DEF8E8;
|
|
@@ -18053,6 +18040,13 @@ html {
|
|
|
18053
18040
|
color: rgba(68, 160, 106, var(--text-opacity))
|
|
18054
18041
|
}
|
|
18055
18042
|
|
|
18043
|
+
.psui-el-mini-tag-layout-solid-warning {
|
|
18044
|
+
--bg-opacity: 1;
|
|
18045
|
+
background-color: #EDAB3E;
|
|
18046
|
+
background-color: rgba(237, 171, 62, var(--bg-opacity));
|
|
18047
|
+
color: #ffffff
|
|
18048
|
+
}
|
|
18049
|
+
|
|
18056
18050
|
.psui-el-mini-tag-layout-warning {
|
|
18057
18051
|
--bg-opacity: 1;
|
|
18058
18052
|
background-color: #FDF3E3;
|
|
@@ -18062,6 +18056,13 @@ html {
|
|
|
18062
18056
|
color: rgba(184, 115, 5, var(--text-opacity))
|
|
18063
18057
|
}
|
|
18064
18058
|
|
|
18059
|
+
.psui-el-mini-tag-layout-solid-error {
|
|
18060
|
+
--bg-opacity: 1;
|
|
18061
|
+
background-color: #D65C5A;
|
|
18062
|
+
background-color: rgba(214, 92, 90, var(--bg-opacity));
|
|
18063
|
+
color: #ffffff
|
|
18064
|
+
}
|
|
18065
|
+
|
|
18065
18066
|
.psui-el-mini-tag-layout-error {
|
|
18066
18067
|
--bg-opacity: 1;
|
|
18067
18068
|
background-color: #FCEBEB;
|
|
@@ -18071,6 +18072,13 @@ html {
|
|
|
18071
18072
|
color: rgba(214, 92, 90, var(--text-opacity))
|
|
18072
18073
|
}
|
|
18073
18074
|
|
|
18075
|
+
.psui-el-mini-tag-layout-solid-default {
|
|
18076
|
+
--bg-opacity: 1;
|
|
18077
|
+
background-color: #A2ACB7;
|
|
18078
|
+
background-color: rgba(162, 172, 183, var(--bg-opacity));
|
|
18079
|
+
color: #ffffff
|
|
18080
|
+
}
|
|
18081
|
+
|
|
18074
18082
|
.psui-el-mini-tag-layout-default {
|
|
18075
18083
|
--bg-opacity: 1;
|
|
18076
18084
|
background-color: #E6ECF2;
|
|
@@ -18431,9 +18439,6 @@ html {
|
|
|
18431
18439
|
color: #798490;
|
|
18432
18440
|
color: rgba(121, 132, 144, var(--text-opacity));
|
|
18433
18441
|
display: flex;
|
|
18434
|
-
--bg-opacity: 1;
|
|
18435
|
-
background-color: #F3F6F9;
|
|
18436
|
-
background-color: rgba(243, 246, 249, var(--bg-opacity));
|
|
18437
18442
|
}
|
|
18438
18443
|
|
|
18439
18444
|
.psui-el-radio.disabled .psui-el-checkmark {
|
|
@@ -18775,7 +18780,7 @@ html {
|
|
|
18775
18780
|
display: flex;
|
|
18776
18781
|
cursor: pointer;
|
|
18777
18782
|
align-items: center;
|
|
18778
|
-
height:
|
|
18783
|
+
min-height: 18px;
|
|
18779
18784
|
}
|
|
18780
18785
|
|
|
18781
18786
|
.psui-el-checkbox.size-small .psui-el-checkmark span {
|
|
@@ -18824,7 +18829,7 @@ html {
|
|
|
18824
18829
|
display: flex;
|
|
18825
18830
|
cursor: pointer;
|
|
18826
18831
|
align-items: center;
|
|
18827
|
-
height:
|
|
18832
|
+
min-height: 24px;
|
|
18828
18833
|
}
|
|
18829
18834
|
|
|
18830
18835
|
.psui-el-checkbox.size-big .psui-el-checkmark span {
|
|
@@ -20012,7 +20017,7 @@ html {
|
|
|
20012
20017
|
color: rgba(121, 132, 144, var(--text-opacity));
|
|
20013
20018
|
margin-top: 0.25rem;
|
|
20014
20019
|
font-size: 12px;
|
|
20015
|
-
line-height:
|
|
20020
|
+
line-height: 15.6px;
|
|
20016
20021
|
}
|
|
20017
20022
|
|
|
20018
20023
|
.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,63 @@
|
|
|
1
1
|
@layer components {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
2
|
+
.psui-el-draggable {
|
|
3
|
+
@apply psui-w-full psui-flex psui-flex-wrap psui-justify-start psui-gap-y-4;
|
|
4
|
+
|
|
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;
|
|
9
16
|
}
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
&:active {
|
|
15
|
-
@apply psui-cursor-grabbing;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
padding: 6px 16px;
|
|
19
|
-
|
|
20
|
-
h2 {
|
|
21
|
-
@apply psui-w-full psui-text-gray-80 psui-font-bold psui-uppercase;
|
|
22
|
-
font-size: 12px;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
i {
|
|
26
|
-
@apply psui-icon psui-text-gray-40;
|
|
27
|
-
font-size: 18px;
|
|
28
|
-
}
|
|
17
|
+
|
|
18
|
+
i {
|
|
19
|
+
@apply psui-text-gray-40;
|
|
20
|
+
font-size: 18px;
|
|
29
21
|
}
|
|
22
|
+
}
|
|
30
23
|
|
|
24
|
+
&-list {
|
|
25
|
+
@apply psui-w-full psui-flex psui-flex-col psui-gap-y-2;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
31
28
|
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
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
|
-
|
|
39
|
-
&:hover {
|
|
40
|
-
@apply psui-text-gray-50 psui-cursor-grab
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
&:active {
|
|
44
|
-
@apply psui-cursor-grabbing
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
.psui-el-draggable-item-wrapper {
|
|
49
|
-
@apply psui-select-none psui-w-full psui-flex psui-items-center
|
|
50
|
-
}
|
|
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;
|
|
51
32
|
|
|
52
|
-
|
|
53
|
-
|
|
33
|
+
&-title {
|
|
34
|
+
@apply psui-text-gray-50 psui-text-small psui-font-bold;
|
|
54
35
|
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
36
|
+
.psui-el-checkmark {
|
|
37
|
+
&:before {
|
|
38
|
+
@apply psui-mr-1 psui-text-gray-30;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
58
42
|
|
|
43
|
+
&-append {
|
|
44
|
+
@apply psui-flex psui-text-gray-30 psui-ml-auto;
|
|
59
45
|
|
|
60
|
-
|
|
61
|
-
|
|
46
|
+
i {
|
|
47
|
+
font-size: 18px;
|
|
62
48
|
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
&:active,
|
|
52
|
+
&.on-dragging {
|
|
53
|
+
cursor: -webkit-grabbing;
|
|
54
|
+
cursor: -moz-grabbing;
|
|
55
|
+
cursor: grabbing;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
&.on-drag-over {
|
|
59
|
+
opacity: 0.2;
|
|
60
|
+
}
|
|
63
61
|
}
|
|
62
|
+
}
|
|
64
63
|
}
|
|
@@ -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
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div class="psui-el-mini-tag" :class="getComponentClass">
|
|
3
|
-
<
|
|
2
|
+
<div class="psui-el-mini-tag" :class="getComponentClass" @click="$emit('click', $event.target)" >
|
|
3
|
+
<span>{{ message }}</span>
|
|
4
4
|
</div>
|
|
5
5
|
</template>
|
|
6
6
|
|
|
@@ -11,6 +11,11 @@ export const typeOptions = [
|
|
|
11
11
|
'warning',
|
|
12
12
|
'error',
|
|
13
13
|
'default',
|
|
14
|
+
'solid-info',
|
|
15
|
+
'solid-success',
|
|
16
|
+
'solid-warning',
|
|
17
|
+
'solid-error',
|
|
18
|
+
'solid-default'
|
|
14
19
|
]
|
|
15
20
|
export default {
|
|
16
21
|
name: 'PsMiniTag',
|
|
@@ -28,7 +33,6 @@ export default {
|
|
|
28
33
|
*/
|
|
29
34
|
message: {
|
|
30
35
|
type: String,
|
|
31
|
-
required: true,
|
|
32
36
|
},
|
|
33
37
|
},
|
|
34
38
|
computed: {
|
|
@@ -4,40 +4,47 @@
|
|
|
4
4
|
v-for="(columnGroup, indexColumnGroup) in getColumns.columnGroups"
|
|
5
5
|
:key="indexColumnGroup"
|
|
6
6
|
:ref="indexColumnGroup"
|
|
7
|
+
:id="`edit-group-${indexColumnGroup}`"
|
|
7
8
|
>
|
|
8
|
-
<!-- COLUMN GROUP -->
|
|
9
9
|
<div
|
|
10
|
-
class="psui-el-draggable-title"
|
|
10
|
+
class="psui-el-draggable-wrapper-title"
|
|
11
11
|
draggable="true"
|
|
12
|
-
@dragstart="
|
|
13
|
-
@
|
|
14
|
-
@
|
|
12
|
+
@dragstart="$emit('drag-start-group', indexColumnGroup)"
|
|
13
|
+
@dragend="$emit('drag-end-group', indexColumnGroup)"
|
|
14
|
+
@dragover="$emit('drag-over-group', indexColumnGroup)"
|
|
15
15
|
>
|
|
16
|
-
<
|
|
17
|
-
<i >drag_indicator</i>
|
|
16
|
+
<p>{{ columnGroup.title }}</p>
|
|
17
|
+
<i class="material-icons-round">drag_indicator</i>
|
|
18
18
|
</div>
|
|
19
19
|
|
|
20
|
-
<
|
|
21
|
-
|
|
22
|
-
<li
|
|
20
|
+
<div class="psui-el-draggable-wrapper-list">
|
|
21
|
+
<div
|
|
23
22
|
v-for="(column, indexColumn) in columnGroup.columns"
|
|
24
23
|
:key="`edit-columns-column-${indexColumnGroup}-${indexColumn}`"
|
|
25
24
|
:id="`edit-columns-column-${indexColumnGroup}-${indexColumn}`"
|
|
25
|
+
class="psui-el-draggable-item"
|
|
26
|
+
draggable="true"
|
|
27
|
+
@dragstart="$emit('drag-start-item', { indexColumnGroup, indexColumn }, $event)"
|
|
28
|
+
@dragover="$emit('drag-over-item', { indexColumnGroup, indexColumn }, $event)"
|
|
29
|
+
@dragend="$emit('drag-end-item', $event)"
|
|
26
30
|
>
|
|
27
|
-
<div
|
|
28
|
-
|
|
29
|
-
@dragstart="$emit('drag-start-item',$event)"
|
|
30
|
-
@dragover="$emit('drag-over-item',$event)"
|
|
31
|
-
@dragend="$emit('drag-end-item',$event)"
|
|
31
|
+
<div
|
|
32
|
+
class="psui-w-full psui-flex psui-items-center"
|
|
32
33
|
>
|
|
33
|
-
<
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
34
|
+
<span class="psui-el-draggable-item-title">
|
|
35
|
+
<PsCheckbox
|
|
36
|
+
size="small"
|
|
37
|
+
:value="column.isActive"
|
|
38
|
+
:label="column.title"
|
|
39
|
+
@input="$emit('on-select-item', { studyKey: getColumns.key, indexColumnGroup, indexColumn, columnGroupKey: columnGroup.key })"
|
|
40
|
+
/>
|
|
41
|
+
</span>
|
|
42
|
+
<span class="psui-el-draggable-item-append">
|
|
43
|
+
<i class="psui-icon">drag_indicator</i>
|
|
44
|
+
</span>
|
|
38
45
|
</div>
|
|
39
|
-
</
|
|
40
|
-
</
|
|
46
|
+
</div>
|
|
47
|
+
</div>
|
|
41
48
|
</div>
|
|
42
49
|
</div>
|
|
43
50
|
</template>
|
|
@@ -58,16 +65,7 @@ export default {
|
|
|
58
65
|
*/
|
|
59
66
|
module:{
|
|
60
67
|
type: String
|
|
61
|
-
}
|
|
62
|
-
},
|
|
63
|
-
methods:{
|
|
64
|
-
onDragStart(event){
|
|
65
|
-
this.$emit('drag-start', event)
|
|
66
68
|
},
|
|
67
|
-
|
|
68
|
-
onDragEnd(event){
|
|
69
|
-
this.$emit('drag-end',event)
|
|
70
|
-
}
|
|
71
|
-
}
|
|
69
|
+
},
|
|
72
70
|
}
|
|
73
71
|
</script>
|
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
|
}
|