toggle-components-library 1.30.0 → 1.32.0
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 +87 -75
- 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 +87 -75
- 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-lock.json +1 -1
- package/package.json +1 -1
- package/src/components/forms/ToggleInputCrudField.vue +6 -1
- package/src/components/forms/ToggleInputRadioButtons.vue +6 -2
- package/src/sass/includes/_as_inputs.scss +10 -1
package/package-lock.json
CHANGED
package/package.json
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
> {{ label }}
|
|
14
14
|
</button>
|
|
15
15
|
<label
|
|
16
|
-
class="toggle-input-crud-container-description"
|
|
16
|
+
:class="['toggle-input-crud-container-description', {'hide-overflow':hideDescriptionOverflow}]"
|
|
17
17
|
> {{ description ? description : ' ' }}
|
|
18
18
|
</label>
|
|
19
19
|
|
|
@@ -65,7 +65,12 @@ export default {
|
|
|
65
65
|
empty:{
|
|
66
66
|
type: Boolean,
|
|
67
67
|
default: false
|
|
68
|
+
},
|
|
69
|
+
hideDescriptionOverflow:{
|
|
70
|
+
type: Boolean,
|
|
71
|
+
default: false
|
|
68
72
|
}
|
|
73
|
+
|
|
69
74
|
},
|
|
70
75
|
|
|
71
76
|
created : function(){
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
<ToggleInputCheckbox v-model="checkboxModel" :label="label" label_style="" v-if="inGroup" />
|
|
14
14
|
|
|
15
|
-
<div class="toggle-input-radio-container" v-if="!inGroup || (inGroup && checkboxModel)">
|
|
15
|
+
<div :class="['toggle-input-radio-container', {wrap: wrapInputs}]" v-if="!inGroup || (inGroup && checkboxModel)">
|
|
16
16
|
<label class="toggle-input-radio" v-for="(option, key) in options" v-bind:key="key">
|
|
17
17
|
<input type="radio" :value="option.value" :name="name ? name : 'ToggleInputRadio' " v-model="inputVal" :disabled="disabled" />
|
|
18
18
|
<div>
|
|
@@ -70,7 +70,11 @@ export default {
|
|
|
70
70
|
disabled: {
|
|
71
71
|
type: Boolean,
|
|
72
72
|
default: false
|
|
73
|
-
}
|
|
73
|
+
},
|
|
74
|
+
wrapInputs: {
|
|
75
|
+
type: Boolean,
|
|
76
|
+
default: true,
|
|
77
|
+
}
|
|
74
78
|
},
|
|
75
79
|
|
|
76
80
|
mounted : function(){
|
|
@@ -290,11 +290,13 @@
|
|
|
290
290
|
.toggle-input-radio-container{
|
|
291
291
|
|
|
292
292
|
display : flex;
|
|
293
|
-
flex-wrap: wrap;
|
|
294
293
|
padding-bottom:0.4rem;
|
|
295
294
|
width:100%;
|
|
296
295
|
clear: both;
|
|
297
296
|
float: left;
|
|
297
|
+
&.wrap {
|
|
298
|
+
flex-wrap: wrap;
|
|
299
|
+
}
|
|
298
300
|
.toggle-input-radio,.toggle-input-checkbox, .toggle-input-checkbox-inline{
|
|
299
301
|
background-color: $toggle-dark-grey;
|
|
300
302
|
}
|
|
@@ -720,6 +722,7 @@ $iconWidth:20px;
|
|
|
720
722
|
}
|
|
721
723
|
}
|
|
722
724
|
|
|
725
|
+
|
|
723
726
|
.toggle-input-crud-container-buttons{
|
|
724
727
|
.toggle-button-container{
|
|
725
728
|
display: block;
|
|
@@ -751,6 +754,12 @@ $iconWidth:20px;
|
|
|
751
754
|
clear: both;
|
|
752
755
|
font-size: $toggle-font-size-small;
|
|
753
756
|
color: $toggle-header-colour;
|
|
757
|
+
&.hide-overflow{
|
|
758
|
+
overflow-x: clip;
|
|
759
|
+
text-overflow: ellipsis;
|
|
760
|
+
white-space: nowrap;
|
|
761
|
+
width: inherit;
|
|
762
|
+
}
|
|
754
763
|
}
|
|
755
764
|
.toggle-input-protocol {
|
|
756
765
|
width: 100px;
|