toggle-components-library 1.38.0 → 1.38.1-beta.1
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/toggle-components-library.common.js +94 -89
- package/dist/toggle-components-library.common.js.map +1 -1
- package/dist/toggle-components-library.css +1 -1
- package/dist/toggle-components-library.umd.js +94 -89
- package/dist/toggle-components-library.umd.js.map +1 -1
- package/dist/toggle-components-library.umd.min.js +1 -1
- package/dist/toggle-components-library.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/src/components/forms/ToggleInputSelect.vue +4 -4
- package/src/components/tables/ToggleTableRow.vue +6 -2
- package/src/sass/includes/_as_table.scss +13 -12
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
|
|
3
|
-
<div class="toggle-input-container
|
|
3
|
+
<div :class="{'toggle-input-container' : size != 'streamline', 'toggle-input-is-invalid':isInvalid, 'toggle-input-is-disabled':disabled}" v-on:click="focusClosestInput">
|
|
4
4
|
<label
|
|
5
|
-
v-if="label"
|
|
5
|
+
v-if="label && size != 'streamline'"
|
|
6
6
|
:for="name ? name : 'ToggleInputSelect' "
|
|
7
7
|
class="toggle-input-label"
|
|
8
8
|
> {{ label }}
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
:disabled="disabled"
|
|
19
19
|
:style="`${fontFamily ? 'font-family: ' + fontFamily : ''}`"
|
|
20
20
|
>
|
|
21
|
-
<option value="">Select an option</option>
|
|
21
|
+
<option value="">{{size == 'streamline' ? label : 'Select an option' }}</option>
|
|
22
22
|
<option :value="option.value" v-for="(option, key) in options" v-bind:key="key">{{option.label}}</option>
|
|
23
23
|
</select>
|
|
24
24
|
</div>
|
|
@@ -60,7 +60,7 @@ export default {
|
|
|
60
60
|
size: {
|
|
61
61
|
type: String,
|
|
62
62
|
validator: function (value) {
|
|
63
|
-
return ['extra-small', 'small', 'medium', 'large', 'full'].indexOf(value) !== -1
|
|
63
|
+
return ['extra-small', 'small', 'medium', 'large', 'full', 'streamline'].indexOf(value) !== -1
|
|
64
64
|
}
|
|
65
65
|
},
|
|
66
66
|
required: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<tr :class="['toggle-tablee-tr',{'tr-disabled':disabled }]" @click="handleClick" >
|
|
2
|
+
<tr :class="['toggle-tablee-tr',{'tr-disabled': disabled,'tr-no-hover': noHover}]" @click="handleClick" >
|
|
3
3
|
<slot></slot>
|
|
4
4
|
</tr>
|
|
5
5
|
</template>
|
|
@@ -10,7 +10,11 @@ export default {
|
|
|
10
10
|
disabled: {
|
|
11
11
|
type: Boolean,
|
|
12
12
|
default: false
|
|
13
|
-
}
|
|
13
|
+
},
|
|
14
|
+
noHover: {
|
|
15
|
+
type: Boolean,
|
|
16
|
+
default: false
|
|
17
|
+
}
|
|
14
18
|
},
|
|
15
19
|
methods: {
|
|
16
20
|
handleClick() {
|
|
@@ -79,27 +79,24 @@ table.toggle-table {
|
|
|
79
79
|
|
|
80
80
|
tbody {
|
|
81
81
|
tr.toggle-tablee-tr:nth-child(odd) {
|
|
82
|
-
|
|
82
|
+
background-color: #FAFBFB;
|
|
83
83
|
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
84
|
+
&:not(.tr-no-hover):hover {
|
|
85
|
+
background-color: #FFF;
|
|
86
|
+
}
|
|
87
87
|
}
|
|
88
88
|
|
|
89
89
|
tr.toggle-tablee-tr:nth-child(even) {
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
90
|
+
&:not(.tr-no-hover):hover {
|
|
91
|
+
background-color: #E7EEF0;
|
|
92
|
+
}
|
|
93
93
|
}
|
|
94
94
|
|
|
95
95
|
td.toggle-tablee-td {
|
|
96
96
|
@include toggle-global-font-config;
|
|
97
|
-
|
|
98
97
|
font-size: $toggle-font-size-small;
|
|
99
98
|
padding: 1rem 0;
|
|
100
99
|
padding-left:1rem;
|
|
101
|
-
|
|
102
|
-
cursor: pointer;
|
|
103
100
|
vertical-align: middle;
|
|
104
101
|
text-overflow: ellipsis;
|
|
105
102
|
overflow: hidden;
|
|
@@ -114,12 +111,16 @@ table.toggle-table {
|
|
|
114
111
|
}
|
|
115
112
|
|
|
116
113
|
tr.toggle-tablee-tr {
|
|
117
|
-
|
|
114
|
+
cursor: pointer;
|
|
115
|
+
&:not(.tr-no-hover):hover {
|
|
118
116
|
background-color: #FFF;
|
|
119
117
|
.arrow-order {
|
|
120
|
-
|
|
118
|
+
display: block;
|
|
121
119
|
}
|
|
122
120
|
}
|
|
121
|
+
&.tr-no-hover:hover, &.tr-no-hover:hover * {
|
|
122
|
+
cursor: default !important;
|
|
123
|
+
}
|
|
123
124
|
td.toggle-tablee-td:first-child {
|
|
124
125
|
border-top-left-radius: 10px;
|
|
125
126
|
border-bottom-left-radius: 10px;
|