@volverjs/ui-vue 0.0.10-beta.22 → 0.0.10-beta.23

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.
@@ -302,6 +302,7 @@
302
302
  "
303
303
  :multiple="isMultiple"
304
304
  :accept="accept"
305
+ :capture="capture"
305
306
  :name="name"
306
307
  @change="onChange"
307
308
  />
@@ -13,7 +13,9 @@ import {
13
13
  import { type VvIconProps, ACTION_ICONS } from '../VvIcon'
14
14
 
15
15
  export type VvInputFileEvents = {
16
- 'update:modelValue': [File | undefined]
16
+ 'update:modelValue': [
17
+ File | UploadedFile | (File | UploadedFile)[] | undefined,
18
+ ]
17
19
  }
18
20
 
19
21
  export const VvInputFileProps = {
@@ -30,7 +32,9 @@ export const VvInputFileProps = {
30
32
  * Input value
31
33
  */
32
34
  modelValue: {
33
- type: Object as PropType<File | (File | UploadedFile)[] | UploadedFile>,
35
+ type: Object as PropType<
36
+ File | UploadedFile | (File | UploadedFile)[] | undefined
37
+ >,
34
38
  required: true,
35
39
  },
36
40
  /**
@@ -53,6 +57,20 @@ export const VvInputFileProps = {
53
57
  * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#multiple
54
58
  */
55
59
  multiple: { type: Boolean, default: false },
60
+ /**
61
+ * Front or rear camera
62
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/capture
63
+ */
64
+ capture: {
65
+ type: String as PropType<'user' | 'environment'>,
66
+ default: undefined,
67
+ validation: (value?: string) => {
68
+ if (value === undefined) {
69
+ return true
70
+ }
71
+ return ['user', 'environment'].includes(value)
72
+ },
73
+ },
56
74
  /**
57
75
  * Max number of files
58
76
  */