@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.
- package/dist/components/VvInputFile/VvInputFile.es.js +16 -1
- package/dist/components/VvInputFile/VvInputFile.umd.js +1 -1
- package/dist/components/VvInputFile/VvInputFile.vue.d.ts +43 -4
- package/dist/components/VvInputFile/index.d.ts +14 -2
- package/dist/components/index.es.js +16 -1
- package/dist/components/index.umd.js +1 -1
- package/dist/icons.es.js +3 -3
- package/dist/icons.umd.js +1 -1
- package/package.json +1 -1
- package/src/assets/icons/detailed.json +1 -1
- package/src/assets/icons/normal.json +1 -1
- package/src/assets/icons/simple.json +1 -1
- package/src/components/VvInputFile/VvInputFile.vue +1 -0
- package/src/components/VvInputFile/index.ts +20 -2
|
@@ -13,7 +13,9 @@ import {
|
|
|
13
13
|
import { type VvIconProps, ACTION_ICONS } from '../VvIcon'
|
|
14
14
|
|
|
15
15
|
export type VvInputFileEvents = {
|
|
16
|
-
'update:modelValue': [
|
|
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<
|
|
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
|
*/
|