@modelforms/fontawesome-vuetify 2.9.0 → 2.9.2

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/README.md CHANGED
@@ -38,7 +38,7 @@ modelforms-fontawesome-vuetify is a focused Vue library that brings Font Awesome
38
38
  ```ts
39
39
  import { GridModel } from '@modelforms/fontawesome-vuetify';
40
40
 
41
- class UserModel{
41
+ class UserModel {
42
42
  name: string;
43
43
  phone: any[] = []
44
44
  }
@@ -81,7 +81,7 @@
81
81
  </v-col>
82
82
  </v-row>
83
83
  <v-row>
84
- <v-col offset-md="11" md="1">
84
+ <v-col offset-md="10" md="1">
85
85
  <v-container>
86
86
  <v-btn :disabled="valid" @click="submit($event)">
87
87
  {{ Button }}
@@ -60,7 +60,7 @@ export default {
60
60
  methods: {
61
61
  select(event: any) {
62
62
  if(this.isValid){
63
- this.$emit(valueEvent, event.target.value);
63
+ this.$emit(valueEvent, new Date(event));
64
64
  }
65
65
 
66
66
  this.$emit(validationEvent, this.isValid);
@@ -9,8 +9,11 @@
9
9
  :type="typo"
10
10
  @blur="blur($event)">
11
11
  <template v-if="type == 'password'" #append-inner>
12
- <div @click="changeType(typo)">
13
- <FontAwesomeIcon v-if="faPawn" :icon="faPawn"></FontAwesomeIcon>
12
+ <div @click="changeType(typo)" v-if="typo=='password'">
13
+ <FontAwesomeIcon v-if="text" :icon="text"></FontAwesomeIcon>
14
+ </div>
15
+ <div v-else @click="changeType(typo)">
16
+ <FontAwesomeIcon v-if="hashed" :icon="hashed"></FontAwesomeIcon>
14
17
  </div>
15
18
  </template>
16
19
  </v-text-field>
@@ -20,7 +23,7 @@
20
23
 
21
24
  <script lang="ts">
22
25
  import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome';
23
- import { faHardDrive } from '@fortawesome/free-regular-svg-icons';
26
+ import { faUnlock, faLock } from '@fortawesome/free-solid-svg-icons';
24
27
  import { initComponent } from '../helpers/init';
25
28
  import { password, text, validationEvent, valueEvent } from '../helpers/resources';
26
29
 
@@ -60,7 +63,8 @@ export default {
60
63
  rule: this.rules.rules!,
61
64
  isValid: true,
62
65
  typo: this.type,
63
- faPawn: faHardDrive
66
+ hashed: faLock,
67
+ text: faUnlock,
64
68
  }
65
69
  },
66
70
  methods: {