@modelforms/fontawesome-vuetify 3.1.2 → 3.2.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.
@@ -64,6 +64,7 @@
64
64
  <File
65
65
  v-if="col.type == 'file'"
66
66
  :value="col.value"
67
+ :accept="col.accept"
67
68
  :label="col.label"
68
69
  :model="form.model"
69
70
  :rules="col.rules"
@@ -2,6 +2,7 @@
2
2
  <v-container fluid>
3
3
  <v-file-input
4
4
  label="File input"
5
+ :accept="accept"
5
6
  prepend-icon=""
6
7
  @update:model-value="blur($event)"
7
8
  variant="filled">
@@ -34,6 +35,10 @@
34
35
  type: Object,
35
36
  required: true
36
37
  },
38
+ accept: {
39
+ type: String,
40
+ required: true
41
+ },
37
42
  rules: {
38
43
  type: Object,
39
44
  default: () => []
@@ -50,7 +55,8 @@
50
55
  return {
51
56
  rule: this.rules.rules!,
52
57
  faFile: faFile,
53
- isValid: true
58
+ isValid: true,
59
+ accept: this.accept
54
60
  }
55
61
  },
56
62
  watch:{
@@ -7,6 +7,7 @@ class Col {
7
7
  rules?: Rule;
8
8
  size: number = 4;
9
9
  complete?: Complete<any>;
10
+ accept?: string = "";
10
11
  }
11
12
  class Title{
12
13
  name?: string;
@@ -23,7 +23,7 @@
23
23
 
24
24
  <script lang="ts">
25
25
  import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome';
26
- import { faUnlock, faLock } from '@fortawesome/free-solid-svg-icons';
26
+ import { faEyeSlash, faEye } from '@fortawesome/free-solid-svg-icons';
27
27
  import { initComponent } from '../helpers/init';
28
28
  import { password, text, validationEvent, valueEvent } from '../helpers/resources';
29
29
 
@@ -63,8 +63,8 @@ export default {
63
63
  rule: this.rules.rules!,
64
64
  isValid: true,
65
65
  typo: this.type,
66
- text: faLock,
67
- hashed: faUnlock,
66
+ text: faEyeSlash,
67
+ hashed: faEye,
68
68
  value: this.value,
69
69
  model: this.model
70
70
  }