toggle-components-library 1.25.19 → 1.27.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "toggle-components-library",
3
- "version": "1.25.19",
3
+ "version": "1.27.0",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -5,6 +5,9 @@
5
5
  <div>
6
6
  <span class="toggle-input-checkbox-check-element "></span>
7
7
  <span :class="[ 'toggle-input-checkbox-label', label_style ]" >{{label}}</span>
8
+
9
+ <img v-if="iconUrl" v-bind:src="iconUrl" :alt="iconAlt" class="toggle-input-checkbox-icon"/>
10
+
8
11
  </div>
9
12
  </label>
10
13
 
@@ -17,6 +20,13 @@ import { mixins } from '../mixins/mixins'
17
20
  export default {
18
21
  mixins:[mixins],
19
22
  props: {
23
+ iconUrl: {
24
+ type: String,
25
+ },
26
+
27
+ iconAlt: {
28
+ type: String,
29
+ },
20
30
  value: {
21
31
  type: [Boolean, Array]
22
32
  },
@@ -1,6 +1,6 @@
1
1
  <template>
2
2
 
3
- <div class="toggle-input-container" :class="{'toggle-input-is-invalid':isInvalid }" v-on:click="focusClosestInput">
3
+ <div class="toggle-input-container" :class="{'toggle-input-is-invalid':isInvalid, 'toggle-input-is-disabled':disabled}" v-on:click="focusClosestInput">
4
4
  <label
5
5
  v-if="label"
6
6
  :for="name ? name : 'ToggleInputSelect' "
@@ -15,6 +15,7 @@
15
15
  v-model="inputVal"
16
16
  :autocomplete="autocomplete ? 'on' : 'off' "
17
17
  :required="required"
18
+ :disabled="disabled"
18
19
  :style="`${fontFamily ? 'font-family: ' + fontFamily : ''}`"
19
20
  >
20
21
  <option value="">Select an option</option>
@@ -77,6 +78,11 @@ export default {
77
78
  fontFamily: {
78
79
  type: String,
79
80
  required: false
81
+ },
82
+ disabled: {
83
+ type: Boolean,
84
+ required: false,
85
+ default: false
80
86
  }
81
87
  },
82
88
 
@@ -301,6 +301,11 @@
301
301
  .toggle-input-radio-button-img{
302
302
  margin-left: 1rem;
303
303
  }
304
+ .toggle-input-checkbox-icon {
305
+ height: 2rem;
306
+ float: right;
307
+ padding-left: 10px;
308
+ }
304
309
 
305
310
  }
306
311