@policystudio/policy-studio-ui-vue 1.1.40 → 1.1.42
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 +135 -98
- package/package.json +1 -1
- package/src/assets/scss/base.scss +1 -1
- package/src/assets/scss/components/PsDropdownList.scss +36 -17
- package/src/assets/scss/components/PsTableResults.scss +55 -40
- package/src/components/controls/PsCheckboxSimple.vue +1 -0
- package/src/components/forms/PsDropdownList.vue +20 -16
- package/src/components/table-results/PsTableResults.vue +3 -2
- package/src/components/table-results/PsTableResultsHeadComparison.vue +3 -4
- package/src/stories/DropdownList.stories.js +65 -12
- package/src/stories/TableResults.stories.js +1 -1
package/dist/css/psui_styles.css
CHANGED
|
@@ -2021,8 +2021,8 @@ video {
|
|
|
2021
2021
|
--border-opacity: 1;
|
|
2022
2022
|
border-color: #D6DDE5;
|
|
2023
2023
|
border-color: rgba(214, 221, 229, var(--border-opacity));
|
|
2024
|
-
padding-top:
|
|
2025
|
-
padding-bottom:
|
|
2024
|
+
padding-top: 0.688rem;
|
|
2025
|
+
padding-bottom: 0.688rem;
|
|
2026
2026
|
}
|
|
2027
2027
|
|
|
2028
2028
|
.psui-el-table-results.layout-results thead tr:first-of-type p {
|
|
@@ -2060,8 +2060,8 @@ video {
|
|
|
2060
2060
|
text-align: right;
|
|
2061
2061
|
font-size: 14px;
|
|
2062
2062
|
line-height: 130%;
|
|
2063
|
-
padding-top:
|
|
2064
|
-
padding-bottom:
|
|
2063
|
+
padding-top: 0.688rem;
|
|
2064
|
+
padding-bottom: 0.688rem;
|
|
2065
2065
|
min-height: 41.5px;
|
|
2066
2066
|
}
|
|
2067
2067
|
|
|
@@ -2118,7 +2118,7 @@ video {
|
|
|
2118
2118
|
|
|
2119
2119
|
.psui-el-table-results.layout-comparison {
|
|
2120
2120
|
border-collapse: separate;
|
|
2121
|
-
border-spacing:
|
|
2121
|
+
border-spacing: 0px 8px;
|
|
2122
2122
|
}
|
|
2123
2123
|
|
|
2124
2124
|
.psui-el-table-results.layout-comparison tr th, .psui-el-table-results.layout-comparison tr td {
|
|
@@ -2126,7 +2126,9 @@ video {
|
|
|
2126
2126
|
}
|
|
2127
2127
|
|
|
2128
2128
|
.psui-el-table-results.layout-comparison thead {
|
|
2129
|
-
|
|
2129
|
+
--bg-opacity: 1;
|
|
2130
|
+
background-color: #E6ECF2;
|
|
2131
|
+
background-color: rgba(230, 236, 242, var(--bg-opacity));
|
|
2130
2132
|
align-items: flex-start;
|
|
2131
2133
|
}
|
|
2132
2134
|
|
|
@@ -2154,8 +2156,8 @@ video {
|
|
|
2154
2156
|
color: rgba(121, 132, 144, var(--text-opacity));
|
|
2155
2157
|
text-align: center;
|
|
2156
2158
|
vertical-align: top;
|
|
2157
|
-
padding-top:
|
|
2158
|
-
padding-bottom:
|
|
2159
|
+
padding-top: 0.688rem;
|
|
2160
|
+
padding-bottom: 0.188rem;
|
|
2159
2161
|
min-width: 200px;
|
|
2160
2162
|
}
|
|
2161
2163
|
|
|
@@ -2169,14 +2171,16 @@ video {
|
|
|
2169
2171
|
.psui-el-table-results.layout-comparison thead tr:not(:first-of-type) th:after {
|
|
2170
2172
|
position: absolute;
|
|
2171
2173
|
top: 0;
|
|
2172
|
-
|
|
2174
|
+
right: 0;
|
|
2173
2175
|
display: inline-block;
|
|
2174
|
-
--bg-opacity: 1;
|
|
2175
|
-
background-color: #D6DDE5;
|
|
2176
|
-
background-color: rgba(214, 221, 229, var(--bg-opacity));
|
|
2177
2176
|
width: 1px;
|
|
2178
2177
|
content: '';
|
|
2179
|
-
|
|
2178
|
+
height: calc(100% + 0.5rem);
|
|
2179
|
+
background-color: #C3CAD1;
|
|
2180
|
+
}
|
|
2181
|
+
|
|
2182
|
+
.psui-el-table-results.layout-comparison thead tr:not(:first-of-type) th:last-child:after {
|
|
2183
|
+
display: none;
|
|
2180
2184
|
}
|
|
2181
2185
|
|
|
2182
2186
|
.psui-el-table-results.layout-comparison thead tr:first-of-type th {
|
|
@@ -2186,35 +2190,46 @@ video {
|
|
|
2186
2190
|
color: rgba(121, 132, 144, var(--text-opacity));
|
|
2187
2191
|
font-size: 16px;
|
|
2188
2192
|
line-height: 130%;
|
|
2189
|
-
padding-
|
|
2190
|
-
padding-
|
|
2193
|
+
padding-left: 1.5rem;
|
|
2194
|
+
padding-right: 1.5rem;
|
|
2195
|
+
padding-top: 7px;
|
|
2196
|
+
padding-bottom: 7px;
|
|
2191
2197
|
}
|
|
2192
2198
|
|
|
2199
|
+
.psui-el-table-results.layout-comparison thead tr:first-of-type th:after {
|
|
2200
|
+
position: absolute;
|
|
2201
|
+
top: 0;
|
|
2202
|
+
right: 0;
|
|
2203
|
+
display: inline-block;
|
|
2204
|
+
content: '';
|
|
2205
|
+
width: 1px;
|
|
2206
|
+
height: calc(100% + 0.5rem);
|
|
2207
|
+
background-color: #C3CAD1;
|
|
2208
|
+
}
|
|
2209
|
+
|
|
2193
2210
|
.psui-el-table-results.layout-comparison thead tr:first-of-type th:first-child {
|
|
2194
|
-
|
|
2195
|
-
padding-
|
|
2211
|
+
vertical-align: middle;
|
|
2212
|
+
padding-left: 22px;
|
|
2196
2213
|
min-width: 240px;
|
|
2197
2214
|
}
|
|
2198
2215
|
|
|
2199
2216
|
.psui-el-table-results.layout-comparison thead tr:first-of-type th:first-child .title {
|
|
2217
|
+
font-size: 17px;
|
|
2218
|
+
line-height: 120%;
|
|
2200
2219
|
--text-opacity: 1;
|
|
2201
2220
|
color: #28323B;
|
|
2202
2221
|
color: rgba(40, 50, 59, var(--text-opacity));
|
|
2203
2222
|
font-weight: 700;
|
|
2204
2223
|
}
|
|
2205
2224
|
|
|
2206
|
-
.psui-el-table-results.layout-comparison thead tr:first-of-type th:
|
|
2207
|
-
|
|
2208
|
-
position: absolute;
|
|
2209
|
-
top: 0;
|
|
2210
|
-
left: 0;
|
|
2211
|
-
width: 100%;
|
|
2212
|
-
content: '';
|
|
2213
|
-
background: linear-gradient(180deg, #FFFFFF 0%, #E6ECF2 100%);
|
|
2214
|
-
border-radius: 12px 12px 0px 0px;
|
|
2215
|
-
height: 5.5rem;
|
|
2225
|
+
.psui-el-table-results.layout-comparison thead tr:first-of-type th:first-child:after {
|
|
2226
|
+
width: 2px;
|
|
2216
2227
|
}
|
|
2217
2228
|
|
|
2229
|
+
.psui-el-table-results.layout-comparison thead tr:first-of-type th:last-child:after {
|
|
2230
|
+
display: none;
|
|
2231
|
+
}
|
|
2232
|
+
|
|
2218
2233
|
.psui-el-table-results.layout-comparison thead tr:first-of-type p {
|
|
2219
2234
|
font-size: 14px;
|
|
2220
2235
|
line-height: 130%;
|
|
@@ -2228,10 +2243,16 @@ video {
|
|
|
2228
2243
|
font-weight: 400;
|
|
2229
2244
|
}
|
|
2230
2245
|
|
|
2246
|
+
.psui-el-table-results.layout-comparison tbody tr {
|
|
2247
|
+
transition-property: all;
|
|
2248
|
+
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
2249
|
+
transition-duration: 150ms;
|
|
2250
|
+
box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.03), 0px 1px 2px rgba(0, 0, 0, 0.1);
|
|
2251
|
+
}
|
|
2252
|
+
|
|
2231
2253
|
.psui-el-table-results.layout-comparison tbody tr td {
|
|
2232
|
-
background-color: #ffffff ;
|
|
2233
2254
|
position: relative;
|
|
2234
|
-
|
|
2255
|
+
border-right: 1px solid #C8D0D9;
|
|
2235
2256
|
}
|
|
2236
2257
|
|
|
2237
2258
|
.psui-el-table-results.layout-comparison tbody tr td .title {
|
|
@@ -2262,26 +2283,13 @@ video {
|
|
|
2262
2283
|
.psui-el-table-results.layout-comparison tbody tr td:before {
|
|
2263
2284
|
display: inline-block;
|
|
2264
2285
|
position: absolute;
|
|
2265
|
-
width: 100%;
|
|
2266
2286
|
height: 0.5rem;
|
|
2267
|
-
background-color: #ffffff ;
|
|
2268
2287
|
left: 0;
|
|
2269
2288
|
content: '';
|
|
2270
2289
|
top: -8px;
|
|
2271
|
-
|
|
2272
|
-
|
|
2273
|
-
|
|
2274
|
-
top: 0;
|
|
2275
|
-
position: absolute;
|
|
2276
|
-
height: 100%;
|
|
2277
|
-
display: inline-block;
|
|
2278
|
-
--bg-opacity: 1;
|
|
2279
|
-
background-color: #E0EFF6;
|
|
2280
|
-
background-color: rgba(224, 239, 246, var(--bg-opacity));
|
|
2281
|
-
content: '';
|
|
2282
|
-
width: 2px;
|
|
2283
|
-
right: -2px;
|
|
2284
|
-
background: linear-gradient(90deg, rgba(214,221,229,1) 50%, rgba(255,255,255,1) 50%);
|
|
2290
|
+
width: calc(100% + 2px);
|
|
2291
|
+
border-right: 2px solid #C8D0D9;
|
|
2292
|
+
background-color: #FFF;
|
|
2285
2293
|
}
|
|
2286
2294
|
|
|
2287
2295
|
.psui-el-table-results.layout-comparison tbody tr td:first-child {
|
|
@@ -2289,22 +2297,27 @@ video {
|
|
|
2289
2297
|
padding-right: 0.75rem;
|
|
2290
2298
|
border-top-left-radius: 0.375rem;
|
|
2291
2299
|
border-bottom-left-radius: 0.375rem;
|
|
2300
|
+
border-right-width: 2px;
|
|
2292
2301
|
}
|
|
2293
2302
|
|
|
2294
|
-
.psui-el-table-results.layout-comparison tbody tr td:
|
|
2295
|
-
|
|
2296
|
-
|
|
2297
|
-
|
|
2298
|
-
|
|
2299
|
-
|
|
2303
|
+
.psui-el-table-results.layout-comparison tbody tr td:last-child {
|
|
2304
|
+
padding-left: 0.75rem;
|
|
2305
|
+
padding-right: 0.75rem;
|
|
2306
|
+
border-top-right-radius: 0.375rem;
|
|
2307
|
+
border-bottom-right-radius: 0.375rem;
|
|
2308
|
+
}
|
|
2300
2309
|
|
|
2301
2310
|
.psui-el-table-results.layout-comparison tbody tr.is-first td:before {
|
|
2302
2311
|
display: none;
|
|
2303
2312
|
}
|
|
2304
2313
|
|
|
2305
2314
|
.psui-el-table-results.layout-comparison tbody tr.is-first.opened td:first-child {
|
|
2306
|
-
|
|
2307
|
-
|
|
2315
|
+
border-bottom-left-radius: 0;
|
|
2316
|
+
}
|
|
2317
|
+
|
|
2318
|
+
.psui-el-table-results.layout-comparison tbody tr.opened {
|
|
2319
|
+
box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.04), 0px 5px 6px rgba(0, 0, 0, 0.1);
|
|
2320
|
+
}
|
|
2308
2321
|
|
|
2309
2322
|
.psui-el-table-results.layout-comparison tbody tr:not(.is-first) td:first-child {
|
|
2310
2323
|
border-top-left-radius: 0;
|
|
@@ -2936,47 +2949,40 @@ video {
|
|
|
2936
2949
|
margin-bottom: 1rem;
|
|
2937
2950
|
}
|
|
2938
2951
|
|
|
2939
|
-
.psui-el-dropdown-menu-list-item {
|
|
2952
|
+
.psui-el-dropdown-menu-list .psui-el-dropdown-menu-list-item {
|
|
2940
2953
|
display: flex;
|
|
2941
2954
|
align-items: flex-end;
|
|
2942
2955
|
justify-content: space-between;
|
|
2943
|
-
|
|
2956
|
+
margin-left: 0;
|
|
2957
|
+
margin-right: 0;
|
|
2958
|
+
font-size: 14px;
|
|
2944
2959
|
line-height: 130%;
|
|
2945
|
-
border-radius: 0.375rem;
|
|
2946
2960
|
--text-opacity: 1;
|
|
2947
2961
|
color: #515E6A;
|
|
2948
2962
|
color: rgba(81, 94, 106, var(--text-opacity));
|
|
2949
|
-
margin-left: 1rem;
|
|
2950
|
-
margin-right: 1rem;
|
|
2951
2963
|
cursor: pointer;
|
|
2952
2964
|
transition-property: all;
|
|
2953
2965
|
}
|
|
2954
2966
|
|
|
2955
|
-
.psui-el-dropdown-menu-list-item:hover * {
|
|
2967
|
+
.psui-el-dropdown-menu-list .psui-el-dropdown-menu-list-item:hover * {
|
|
2956
2968
|
opacity: 1 !important;
|
|
2957
2969
|
}
|
|
2958
2970
|
|
|
2959
|
-
.psui-el-dropdown-menu-list-item.absolute-childrens {
|
|
2971
|
+
.psui-el-dropdown-menu-list .psui-el-dropdown-menu-list-item.absolute-childrens {
|
|
2960
2972
|
position: relative;
|
|
2961
2973
|
}
|
|
2962
2974
|
|
|
2963
|
-
.psui-el-dropdown-menu-list-item.absolute-childrens .helper {
|
|
2975
|
+
.psui-el-dropdown-menu-list .psui-el-dropdown-menu-list-item.absolute-childrens .helper {
|
|
2964
2976
|
position: absolute;
|
|
2965
2977
|
top: 0;
|
|
2966
2978
|
right: -18px;
|
|
2967
2979
|
}
|
|
2968
2980
|
|
|
2969
|
-
.psui-el-dropdown-menu-list-item{
|
|
2970
|
-
padding:
|
|
2981
|
+
.psui-el-dropdown-menu-list .psui-el-dropdown-menu-list-item{
|
|
2982
|
+
padding: 7px 20px;
|
|
2971
2983
|
}
|
|
2972
2984
|
|
|
2973
|
-
.psui-el-dropdown-menu-list-item
|
|
2974
|
-
--bg-opacity: 1;
|
|
2975
|
-
background-color: #F3F6F9;
|
|
2976
|
-
background-color: rgba(243, 246, 249, var(--bg-opacity));
|
|
2977
|
-
}
|
|
2978
|
-
|
|
2979
|
-
.psui-el-dropdown-menu-list-item-left-label {
|
|
2985
|
+
.psui-el-dropdown-menu-list .psui-el-dropdown-menu-list-item-left-label {
|
|
2980
2986
|
font-weight: 700;
|
|
2981
2987
|
display: flex;
|
|
2982
2988
|
align-items: center;
|
|
@@ -2984,50 +2990,81 @@ video {
|
|
|
2984
2990
|
width: auto;
|
|
2985
2991
|
}
|
|
2986
2992
|
|
|
2987
|
-
.psui-el-dropdown-menu-list-item
|
|
2988
|
-
display: flex;
|
|
2989
|
-
flex: 1 1 0%;
|
|
2990
|
-
border-bottom-width: 1px;
|
|
2991
|
-
--border-opacity: 1;
|
|
2992
|
-
border-color: #A2ACB7;
|
|
2993
|
-
border-color: rgba(162, 172, 183, var(--border-opacity));
|
|
2994
|
-
border-style: dashed;
|
|
2995
|
-
margin-left: 0.5rem;
|
|
2996
|
-
margin-right: 0.5rem;
|
|
2997
|
-
margin-bottom: 0.25rem;
|
|
2998
|
-
}
|
|
2999
|
-
|
|
3000
|
-
.psui-el-dropdown-menu-list-item-right-label {
|
|
3001
|
-
display: flex;
|
|
3002
|
-
flex: 0 1 auto;
|
|
3003
|
-
width: auto;
|
|
3004
|
-
font-weight: 400;
|
|
3005
|
-
}
|
|
3006
|
-
|
|
3007
|
-
.psui-el-dropdown-menu-list-item.is-selected {
|
|
2993
|
+
.psui-el-dropdown-menu-list .psui-el-dropdown-menu-list-item:hover {
|
|
3008
2994
|
--bg-opacity: 1;
|
|
3009
2995
|
background-color: #ECF7FB;
|
|
3010
2996
|
background-color: rgba(236, 247, 251, var(--bg-opacity));
|
|
2997
|
+
}
|
|
2998
|
+
|
|
2999
|
+
.psui-el-dropdown-menu-list .psui-el-dropdown-menu-list-item.is-selected {
|
|
3011
3000
|
--text-opacity: 1;
|
|
3012
3001
|
color: #318FAC;
|
|
3013
3002
|
color: rgba(49, 143, 172, var(--text-opacity));
|
|
3003
|
+
background-color: transparent;
|
|
3004
|
+
}
|
|
3005
|
+
|
|
3006
|
+
.psui-el-dropdown-menu-list .psui-el-dropdown-menu-list-item.is-selected:hover {
|
|
3007
|
+
--text-opacity: 1;
|
|
3008
|
+
color: #318FAC;
|
|
3009
|
+
color: rgba(49, 143, 172, var(--text-opacity));
|
|
3010
|
+
}
|
|
3011
|
+
|
|
3012
|
+
.psui-el-dropdown-menu-list.layout-rich .psui-el-dropdown-menu-list-item {
|
|
3013
|
+
font-size: 16px;
|
|
3014
|
+
line-height: 130%;
|
|
3015
|
+
border-radius: 0.375rem;
|
|
3016
|
+
margin-left: 1rem;
|
|
3017
|
+
margin-right: 1rem;
|
|
3018
|
+
padding: 11.5px 16px 11.5px 8px;
|
|
3014
3019
|
}
|
|
3015
3020
|
|
|
3016
|
-
.psui-el-dropdown-menu-list
|
|
3021
|
+
.psui-el-dropdown-menu-list.layout-rich .psui-el-dropdown-menu-list-item:hover {
|
|
3022
|
+
--bg-opacity: 1;
|
|
3023
|
+
background-color: #F3F6F9;
|
|
3024
|
+
background-color: rgba(243, 246, 249, var(--bg-opacity));
|
|
3025
|
+
}
|
|
3026
|
+
|
|
3027
|
+
.psui-el-dropdown-menu-list.layout-rich .psui-el-dropdown-menu-list-item-line {
|
|
3028
|
+
display: flex;
|
|
3029
|
+
flex: 1 1 0%;
|
|
3030
|
+
border-bottom-width: 1px;
|
|
3017
3031
|
--border-opacity: 1;
|
|
3018
|
-
border-color: #
|
|
3019
|
-
border-color: rgba(
|
|
3032
|
+
border-color: #A2ACB7;
|
|
3033
|
+
border-color: rgba(162, 172, 183, var(--border-opacity));
|
|
3034
|
+
border-style: dashed;
|
|
3035
|
+
margin-left: 0.5rem;
|
|
3036
|
+
margin-right: 0.5rem;
|
|
3037
|
+
margin-bottom: 0.25rem;
|
|
3020
3038
|
}
|
|
3021
3039
|
|
|
3022
|
-
.psui-el-dropdown-menu-list-
|
|
3040
|
+
.psui-el-dropdown-menu-list.layout-rich .psui-el-dropdown-menu-list-item-right-label {
|
|
3041
|
+
display: flex;
|
|
3042
|
+
flex: 0 1 auto;
|
|
3043
|
+
width: auto;
|
|
3044
|
+
font-weight: 400;
|
|
3045
|
+
}
|
|
3046
|
+
|
|
3047
|
+
.psui-el-dropdown-menu-list.layout-rich .psui-el-dropdown-menu-list-item.is-selected {
|
|
3023
3048
|
--bg-opacity: 1;
|
|
3024
3049
|
background-color: #ECF7FB;
|
|
3025
3050
|
background-color: rgba(236, 247, 251, var(--bg-opacity));
|
|
3026
|
-
--text-opacity: 1;
|
|
3027
|
-
color: #318FAC;
|
|
3028
|
-
color: rgba(49, 143, 172, var(--text-opacity));
|
|
3029
3051
|
}
|
|
3030
3052
|
|
|
3053
|
+
.psui-el-dropdown-menu-list.layout-rich .psui-el-dropdown-menu-list-item.is-selected .psui-el-dropdown-menu-list-item-line {
|
|
3054
|
+
--border-opacity: 1;
|
|
3055
|
+
border-color: #318FAC;
|
|
3056
|
+
border-color: rgba(49, 143, 172, var(--border-opacity));
|
|
3057
|
+
}
|
|
3058
|
+
|
|
3059
|
+
.psui-el-dropdown-menu-list.layout-rich .psui-el-dropdown-menu-list-item.is-selected:hover {
|
|
3060
|
+
--bg-opacity: 1;
|
|
3061
|
+
background-color: #ECF7FB;
|
|
3062
|
+
background-color: rgba(236, 247, 251, var(--bg-opacity));
|
|
3063
|
+
--text-opacity: 1;
|
|
3064
|
+
color: #318FAC;
|
|
3065
|
+
color: rgba(49, 143, 172, var(--text-opacity));
|
|
3066
|
+
}
|
|
3067
|
+
|
|
3031
3068
|
.psui-el-slider .psui-el-slider-label {
|
|
3032
3069
|
margin-bottom: 0.5rem;
|
|
3033
3070
|
}
|
package/package.json
CHANGED
|
@@ -2,35 +2,54 @@
|
|
|
2
2
|
.psui-el-dropdown-menu-list {
|
|
3
3
|
@apply psui-w-full psui-flex psui-flex-col psui-font-medium psui-my-4;
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
@apply psui-flex psui-items-end psui-justify-between psui-
|
|
7
|
-
padding:
|
|
8
|
-
|
|
9
|
-
&:hover {
|
|
10
|
-
@apply psui-bg-gray-10;
|
|
11
|
-
}
|
|
5
|
+
.psui-el-dropdown-menu-list-item {
|
|
6
|
+
@apply psui-flex psui-items-end psui-justify-between psui-mx-0 psui-text-small psui-text-gray-60 psui-cursor-pointer psui-transition-all psui-show-childrens-on-hover;
|
|
7
|
+
padding: 7px 20px;
|
|
12
8
|
|
|
13
9
|
&-left-label {
|
|
14
10
|
@apply psui-font-bold psui-flex psui-items-center psui-flex-initial psui-w-auto;
|
|
15
11
|
}
|
|
16
12
|
|
|
17
|
-
|
|
18
|
-
@apply psui-
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
&-right-label {
|
|
22
|
-
@apply psui-flex psui-flex-initial psui-w-auto psui-font-normal;
|
|
13
|
+
&:hover {
|
|
14
|
+
@apply psui-bg-blue-10;
|
|
23
15
|
}
|
|
24
16
|
|
|
25
17
|
&.is-selected {
|
|
26
|
-
@apply psui-
|
|
18
|
+
@apply psui-text-blue-60 psui-bg-transparent;
|
|
27
19
|
|
|
28
|
-
|
|
29
|
-
@apply psui-
|
|
20
|
+
&:hover {
|
|
21
|
+
@apply psui-text-blue-60;
|
|
30
22
|
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
&.layout-rich {
|
|
27
|
+
.psui-el-dropdown-menu-list-item {
|
|
28
|
+
@apply psui-text-p psui-rounded-md psui-mx-4;
|
|
29
|
+
padding: 11.5px 16px 11.5px 8px;
|
|
31
30
|
|
|
32
31
|
&:hover {
|
|
33
|
-
@apply psui-bg-
|
|
32
|
+
@apply psui-bg-gray-10;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
&-line {
|
|
36
|
+
@apply psui-flex psui-flex-1 psui-border-b psui-border-gray-40 psui-border-dashed psui-mx-2 psui-mb-1;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
&-right-label {
|
|
40
|
+
@apply psui-flex psui-flex-initial psui-w-auto psui-font-normal;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
&.is-selected {
|
|
44
|
+
@apply psui-bg-blue-10;
|
|
45
|
+
|
|
46
|
+
.psui-el-dropdown-menu-list-item-line {
|
|
47
|
+
@apply psui-border-blue-60;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
&:hover {
|
|
51
|
+
@apply psui-bg-blue-10 psui-text-blue-60;
|
|
52
|
+
}
|
|
34
53
|
}
|
|
35
54
|
}
|
|
36
55
|
}
|
|
@@ -58,8 +58,8 @@
|
|
|
58
58
|
|
|
59
59
|
> div {
|
|
60
60
|
@apply psui-flex psui-flex-row psui-border-b psui-border-gray-30;
|
|
61
|
-
padding-top:
|
|
62
|
-
padding-bottom:
|
|
61
|
+
padding-top: 0.688rem;
|
|
62
|
+
padding-bottom: 0.688rem;
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
65
|
|
|
@@ -88,8 +88,8 @@
|
|
|
88
88
|
|
|
89
89
|
td {
|
|
90
90
|
@apply psui-pl-8 psui-text-gray-80 psui-h-10 psui-text-right psui-text-small;
|
|
91
|
-
padding-top:
|
|
92
|
-
padding-bottom:
|
|
91
|
+
padding-top: 0.688rem;
|
|
92
|
+
padding-bottom: 0.688rem;
|
|
93
93
|
min-height: 41.5px;
|
|
94
94
|
|
|
95
95
|
> div {
|
|
@@ -135,7 +135,7 @@
|
|
|
135
135
|
|
|
136
136
|
&.layout-comparison {
|
|
137
137
|
@apply psui-border-separate;
|
|
138
|
-
border-spacing:
|
|
138
|
+
border-spacing: 0px 8px;
|
|
139
139
|
|
|
140
140
|
tr {
|
|
141
141
|
th, td {
|
|
@@ -144,7 +144,7 @@
|
|
|
144
144
|
}
|
|
145
145
|
|
|
146
146
|
thead {
|
|
147
|
-
@apply psui-bg-
|
|
147
|
+
@apply psui-bg-gray-20 psui-items-start;
|
|
148
148
|
|
|
149
149
|
div {
|
|
150
150
|
@apply psui-relative;
|
|
@@ -157,8 +157,8 @@
|
|
|
157
157
|
|
|
158
158
|
th {
|
|
159
159
|
@apply psui-px-6 psui-py-4 psui-text-gray-50 psui-text-center psui-align-top;
|
|
160
|
-
padding-top:
|
|
161
|
-
padding-bottom:
|
|
160
|
+
padding-top: 0.688rem;
|
|
161
|
+
padding-bottom: 0.188rem;
|
|
162
162
|
min-width: 200px;
|
|
163
163
|
|
|
164
164
|
.description {
|
|
@@ -169,39 +169,50 @@
|
|
|
169
169
|
|
|
170
170
|
&:not(:first-of-type) {
|
|
171
171
|
th {
|
|
172
|
-
|
|
173
172
|
&:after {
|
|
174
|
-
@apply psui-absolute psui-top-0 psui-
|
|
173
|
+
@apply psui-absolute psui-top-0 psui-right-0 psui-inline-block psui-w-px;
|
|
175
174
|
content: '';
|
|
176
|
-
|
|
175
|
+
height: calc(100% + 0.5rem);
|
|
176
|
+
background-color: #C3CAD1;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
&:last-child:after {
|
|
180
|
+
display: none;
|
|
177
181
|
}
|
|
178
182
|
}
|
|
179
183
|
}
|
|
180
184
|
|
|
181
185
|
&:first-of-type {
|
|
182
186
|
th {
|
|
183
|
-
@apply psui-text-left psui-text-gray-50 psui-text-p;
|
|
184
|
-
padding-top:
|
|
185
|
-
padding-bottom:
|
|
187
|
+
@apply psui-text-left psui-text-gray-50 psui-text-p psui-px-6;
|
|
188
|
+
padding-top: 7px;
|
|
189
|
+
padding-bottom: 7px;
|
|
190
|
+
|
|
191
|
+
&:after {
|
|
192
|
+
@apply psui-absolute psui-top-0 psui-right-0 psui-inline-block;
|
|
193
|
+
content: '';
|
|
194
|
+
width: 1px;
|
|
195
|
+
height: calc(100% + 0.5rem);
|
|
196
|
+
background-color: #C3CAD1;
|
|
197
|
+
}
|
|
186
198
|
|
|
187
199
|
&:first-child {
|
|
188
|
-
@apply psui-
|
|
200
|
+
@apply psui-align-middle;
|
|
201
|
+
padding-left: 22px;
|
|
189
202
|
min-width: 240px;
|
|
190
203
|
|
|
191
204
|
.title {
|
|
192
|
-
@apply psui-text-gray-80 psui-font-bold;
|
|
205
|
+
@apply psui-text-h6 psui-text-gray-80 psui-font-bold;
|
|
193
206
|
}
|
|
194
|
-
}
|
|
195
207
|
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
@apply psui-inline-block psui-absolute psui-top-0 psui-left-0 psui-w-full;
|
|
199
|
-
content: '';
|
|
200
|
-
background: linear-gradient(180deg, #FFFFFF 0%, #E6ECF2 100%);
|
|
201
|
-
border-radius: 12px 12px 0px 0px;
|
|
202
|
-
height: 5.5rem;
|
|
208
|
+
&:after {
|
|
209
|
+
width: 2px;
|
|
203
210
|
}
|
|
204
211
|
}
|
|
212
|
+
|
|
213
|
+
&:last-child:after {
|
|
214
|
+
display: none;
|
|
215
|
+
}
|
|
205
216
|
}
|
|
206
217
|
|
|
207
218
|
p {
|
|
@@ -218,8 +229,11 @@
|
|
|
218
229
|
|
|
219
230
|
tbody {
|
|
220
231
|
tr {
|
|
232
|
+
@apply psui-transition-all psui-ease-in-out psui-duration-150 psui-shadow-elevation-5;
|
|
233
|
+
|
|
221
234
|
td {
|
|
222
|
-
@apply psui-
|
|
235
|
+
@apply psui-relative;
|
|
236
|
+
border-right: 1px solid #C8D0D9;
|
|
223
237
|
|
|
224
238
|
.title {
|
|
225
239
|
@apply psui-text-small psui-text-gray-80 psui-font-bold psui-truncate psui-leading-none psui-ml-1;
|
|
@@ -233,25 +247,20 @@
|
|
|
233
247
|
}
|
|
234
248
|
|
|
235
249
|
&:before {
|
|
236
|
-
@apply psui-inline-block psui-absolute psui-
|
|
250
|
+
@apply psui-inline-block psui-absolute psui-h-2 psui-left-0;
|
|
237
251
|
content: '';
|
|
238
252
|
top: -8px;
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
@apply psui-top-0 psui-absolute psui-h-full psui-inline-block psui-bg-blue-20;
|
|
243
|
-
content: '';
|
|
244
|
-
width: 2px;
|
|
245
|
-
right: -2px;
|
|
246
|
-
background: linear-gradient(90deg, rgba(214,221,229,1) 50%, rgba(255,255,255,1) 50%);
|
|
253
|
+
width: calc(100% + 2px);
|
|
254
|
+
border-right: 2px solid #C8D0D9;
|
|
255
|
+
background-color: #FFF;
|
|
247
256
|
}
|
|
248
257
|
|
|
249
258
|
&:first-child {
|
|
250
259
|
@apply psui-px-3 psui-rounded-tl-md psui-rounded-bl-md;
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
260
|
+
border-right-width: 2px;
|
|
261
|
+
}
|
|
262
|
+
&:last-child {
|
|
263
|
+
@apply psui-px-3 psui-rounded-tr-md psui-rounded-br-md;
|
|
255
264
|
}
|
|
256
265
|
}
|
|
257
266
|
|
|
@@ -263,12 +272,18 @@
|
|
|
263
272
|
}
|
|
264
273
|
|
|
265
274
|
&.opened {
|
|
266
|
-
td
|
|
267
|
-
|
|
275
|
+
td {
|
|
276
|
+
&:first-child {
|
|
277
|
+
@apply psui-rounded-bl-none;
|
|
278
|
+
}
|
|
268
279
|
}
|
|
269
280
|
}
|
|
270
281
|
}
|
|
271
282
|
|
|
283
|
+
&.opened {
|
|
284
|
+
@apply psui-shadow-elevation-20;
|
|
285
|
+
}
|
|
286
|
+
|
|
272
287
|
&:not(.is-first) {
|
|
273
288
|
td {
|
|
274
289
|
&:first-child {
|
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
>
|
|
16
16
|
<div class="psui-el-dropdown-menu-list-item-left-label">
|
|
17
17
|
{{ getLeftLabel(item) }}
|
|
18
|
+
|
|
18
19
|
<div
|
|
19
20
|
v-if="item.description"
|
|
20
21
|
class="psui-font-normal psui-text-gray-50 psui-ml-1"
|
|
@@ -31,26 +32,29 @@
|
|
|
31
32
|
@click.native.stop="$eventBus.$emit('openDescriptionModal', { type: item.hasHelper.type, id: item.hasHelper.id, slug: item.hasHelper.slug })"
|
|
32
33
|
/>
|
|
33
34
|
</div>
|
|
34
|
-
|
|
35
|
-
<
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
35
|
+
|
|
36
|
+
<template v-if="layout == 'rich'">
|
|
37
|
+
<div class="psui-el-dropdown-menu-list-item-line" />
|
|
38
|
+
<div
|
|
39
|
+
v-if="rightLabelFormatter"
|
|
40
|
+
class="psui-el-dropdown-menu-list-item-rigth-label"
|
|
41
|
+
>
|
|
42
|
+
{{ rightLabelFormatter(item.key, getStudyDataLevel[item.key], getStudyDataLevel) }}
|
|
43
|
+
</div>
|
|
44
|
+
<div
|
|
45
|
+
v-else
|
|
46
|
+
class="psui-el-dropdown-menu-list-item-rigth-label"
|
|
47
|
+
>
|
|
48
|
+
{{ getRightLabel(item) }}
|
|
49
|
+
</div>
|
|
50
|
+
</template>
|
|
47
51
|
</li>
|
|
48
52
|
</ul>
|
|
49
53
|
</template>
|
|
50
54
|
|
|
51
55
|
<script>
|
|
52
56
|
import PsIcon from '../ui/PsIcon.vue'
|
|
53
|
-
export const itemStyle = ['
|
|
57
|
+
export const itemStyle = ['onlytext', 'radio', 'icon', 'checkbox', 'switch', 'rich']
|
|
54
58
|
|
|
55
59
|
export default {
|
|
56
60
|
name: 'PsDropdownList',
|
|
@@ -61,7 +65,7 @@ export default {
|
|
|
61
65
|
*/
|
|
62
66
|
layout: {
|
|
63
67
|
type: String,
|
|
64
|
-
default: '
|
|
68
|
+
default: 'onlytext',
|
|
65
69
|
validator: (value) => {
|
|
66
70
|
return itemStyle.indexOf(value) !== -1
|
|
67
71
|
}
|
|
@@ -76,7 +80,7 @@ export default {
|
|
|
76
80
|
* It sets the items which will be displayed on the dropdown menu.
|
|
77
81
|
*/
|
|
78
82
|
items: {
|
|
79
|
-
type: Array,
|
|
83
|
+
type: [Array, Object],
|
|
80
84
|
required: true
|
|
81
85
|
},
|
|
82
86
|
/**
|
|
@@ -28,6 +28,7 @@
|
|
|
28
28
|
`${item.type}`
|
|
29
29
|
]"
|
|
30
30
|
:id=" item.id"
|
|
31
|
+
:data-group="item.id"
|
|
31
32
|
@mouseenter="onRowHover(index)"
|
|
32
33
|
@mouseleave="onRowHover(false)"
|
|
33
34
|
>
|
|
@@ -540,13 +541,13 @@ export default {
|
|
|
540
541
|
onCloseSelectRow(item) {
|
|
541
542
|
this.$eventBus.$emit('resetPolicyImpactItemSelected', item)
|
|
542
543
|
},
|
|
543
|
-
isSelectedRow(column,item){
|
|
544
|
+
isSelectedRow(column,item) {
|
|
544
545
|
if(!item.id){
|
|
545
546
|
return this.selectedRow === item.id && this.columnSelectedKey == column.key
|
|
546
547
|
}
|
|
547
548
|
return column.hasProjections && !item.is_disabled && this.selectedRow == item.id && this.columnSelectedKey == column.key
|
|
548
549
|
},
|
|
549
|
-
getBackgroundColor(value){
|
|
550
|
+
getBackgroundColor(value) {
|
|
550
551
|
if(value && value.includes('psui-bg-')) {
|
|
551
552
|
return tailwindConfig.theme.colors[value.replace('psui-bg-', '')]
|
|
552
553
|
}
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
<div v-if="firstColumnTitle">
|
|
6
6
|
<p class="title">{{ firstColumnTitle }}</p>
|
|
7
7
|
</div>
|
|
8
|
-
<div>
|
|
9
|
-
<p
|
|
8
|
+
<div v-if="firstColumnDescription">
|
|
9
|
+
<p class="description">{{ firstColumnDescription }}</p>
|
|
10
10
|
</div>
|
|
11
11
|
</th>
|
|
12
12
|
|
|
@@ -33,8 +33,7 @@
|
|
|
33
33
|
<template v-for="columnGroup of header">
|
|
34
34
|
<th
|
|
35
35
|
v-for="column of columnGroup.columns"
|
|
36
|
-
:key="`${columnGroup.key}-${column.key}`"
|
|
37
|
-
:style="`--dataCount: ${columnGroup.columns.reduce( (prev, cur) => cur.isActive ? prev + 1 : prev, 0 )};`"
|
|
36
|
+
:key="`${columnGroup.key}-${column.key}`"
|
|
38
37
|
>
|
|
39
38
|
<div class="psui-flex psui-flex-col psui-justify-center psui-items-center psui-text-center">
|
|
40
39
|
<div class="psui-show-childrens-on-hover absolute-childrens psui-mb-px">
|
|
@@ -22,22 +22,75 @@ const Template = (args, { argTypes }) => ({
|
|
|
22
22
|
props: Object.keys(argTypes),
|
|
23
23
|
components: { PsDropdownList },
|
|
24
24
|
data: () => ({
|
|
25
|
-
selected: item
|
|
25
|
+
selected: item,
|
|
26
|
+
onlyTextItems: onlyTextItems,
|
|
27
|
+
richItems: richItems,
|
|
26
28
|
}),
|
|
27
29
|
template: `
|
|
28
|
-
<div style="width:100%;" class="psui-flex psui-
|
|
29
|
-
<
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
30
|
+
<div style="width:100%;" class="psui-flex psui-gap-8 psui-bg-gray-20 psui-rounded-xl psui-p-10">
|
|
31
|
+
<div class="psui-w-1/2">
|
|
32
|
+
<p class="psui-text-h4 psui-font-bold psui-text-blue-80 psui-mb-2">OnlyText</p>
|
|
33
|
+
|
|
34
|
+
<div class="psui-rounded psui-bg-white psui-shadow-elevation-20 psui-py-3">
|
|
35
|
+
<PsDropdownList
|
|
36
|
+
v-bind="$props"
|
|
37
|
+
:items="onlyTextItems"
|
|
38
|
+
:selected.sync="selected"
|
|
39
|
+
left-label="title"
|
|
40
|
+
key-value="key"
|
|
41
|
+
layout="onlytext"
|
|
42
|
+
:study-data="study_data"
|
|
43
|
+
/>
|
|
44
|
+
</div>
|
|
45
|
+
</div>
|
|
46
|
+
|
|
47
|
+
<div class="psui-w-1/2">
|
|
48
|
+
<p class="psui-text-h4 psui-font-bold psui-text-blue-80 psui-mb-2">Rich</p>
|
|
49
|
+
|
|
50
|
+
<div class="psui-rounded psui-bg-white psui-shadow-elevation-20 psui-py-3">
|
|
51
|
+
<PsDropdownList
|
|
52
|
+
v-bind="$props"
|
|
53
|
+
:items="richItems"
|
|
54
|
+
:selected.sync="selected"
|
|
55
|
+
left-label="title"
|
|
56
|
+
key-value="key"
|
|
57
|
+
layout="rich"
|
|
58
|
+
:study-data="study_data"
|
|
59
|
+
/>
|
|
60
|
+
</div>
|
|
61
|
+
</div>
|
|
36
62
|
</div>
|
|
37
63
|
`,
|
|
38
64
|
})
|
|
39
65
|
|
|
40
|
-
const
|
|
66
|
+
const onlyTextItems = [
|
|
67
|
+
{
|
|
68
|
+
'key': 'item_01',
|
|
69
|
+
'title': 'Dropdown Item',
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
'key': 'item_02',
|
|
73
|
+
'title': 'Dropdown Item',
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
'key': 'item_03',
|
|
77
|
+
'title': 'Dropdown Item',
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
'key': 'item_04',
|
|
81
|
+
'title': 'Dropdown Item',
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
'key': 'item_05',
|
|
85
|
+
'title': 'Dropdown Item',
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
'key': 'item_06',
|
|
89
|
+
'title': 'Dropdown Item',
|
|
90
|
+
},
|
|
91
|
+
]
|
|
92
|
+
|
|
93
|
+
const richItems = [
|
|
41
94
|
{
|
|
42
95
|
'isActive': true,
|
|
43
96
|
'key': 'forecast_units_affected',
|
|
@@ -141,7 +194,7 @@ const items = [
|
|
|
141
194
|
}
|
|
142
195
|
}
|
|
143
196
|
]
|
|
144
|
-
const item =
|
|
197
|
+
const item = richItems[0]
|
|
145
198
|
const studyData = {
|
|
146
199
|
'forecast_units_affected': 7001.75,
|
|
147
200
|
'forecast_emissions_savings': 17575.66588897,
|
|
@@ -153,6 +206,6 @@ const studyData = {
|
|
|
153
206
|
|
|
154
207
|
export const DropdownList = Template.bind({})
|
|
155
208
|
DropdownList.args = {
|
|
156
|
-
items:
|
|
209
|
+
items: onlyTextItems,
|
|
157
210
|
study_data: studyData,
|
|
158
211
|
}
|
|
@@ -56,7 +56,7 @@ const TableResults = (args, { argTypes }) => ({
|
|
|
56
56
|
<PsTableResultsHeadComparison
|
|
57
57
|
v-bind="$props"
|
|
58
58
|
first-column-title="Comparing 4 Policies"
|
|
59
|
-
first-column-description="
|
|
59
|
+
first-column-description=""
|
|
60
60
|
:header="comparisonColumnGroups"
|
|
61
61
|
/>
|
|
62
62
|
</template>
|