@a-vision-software/vue-input-components 1.3.12 → 1.3.13
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/src/components/Action.vue.d.ts +60 -0
- package/dist/src/components/Dropdown.vue.d.ts +95 -0
- package/dist/src/components/FileUpload.vue.d.ts +27 -0
- package/dist/src/components/Navigation.vue.d.ts +19 -0
- package/dist/src/components/TextInput.vue.d.ts +95 -0
- package/dist/src/index.d.ts +8 -0
- package/dist/src/main.d.ts +1 -0
- package/dist/src/router/index.d.ts +2 -0
- package/dist/src/types/action.d.ts +17 -0
- package/dist/src/types/dropdown.d.ts +31 -0
- package/dist/src/types/fileupload.d.ts +24 -0
- package/dist/src/types/index.d.ts +8 -0
- package/dist/src/types/navigation.d.ts +33 -0
- package/dist/src/types/textinput.d.ts +34 -0
- package/dist/vue-input-components.cjs.js +1 -1
- package/dist/vue-input-components.css +1 -1
- package/dist/vue-input-components.es.js +2608 -2610
- package/dist/vue-input-components.umd.js +1 -1
- package/package.json +6 -3
- package/src/components/TextInput.vue +78 -69
- package/src/types/action.ts +19 -0
- package/src/types/fileupload.ts +26 -0
- package/src/types/index.ts +6 -0
- package/src/types/textinput.ts +36 -0
- package/src/views/TextInputTestView.vue +13 -15
- package/dist/types.d.ts +0 -126
- package/src/types.d.ts +0 -23
- package/src/types.ts +0 -109
package/src/types.ts
DELETED
|
@@ -1,109 +0,0 @@
|
|
|
1
|
-
import type { Component } from 'vue'
|
|
2
|
-
|
|
3
|
-
export interface TextInputProps {
|
|
4
|
-
modelValue: string
|
|
5
|
-
type?: 'text' | 'password' | 'email' | 'number' | 'tel' | 'url' | 'date'
|
|
6
|
-
label?: string
|
|
7
|
-
placeholder?: string
|
|
8
|
-
icon?: string
|
|
9
|
-
disabled?: boolean
|
|
10
|
-
readonly?: boolean
|
|
11
|
-
maxlength?: number
|
|
12
|
-
error?: string
|
|
13
|
-
min?: string
|
|
14
|
-
max?: string
|
|
15
|
-
required?: boolean
|
|
16
|
-
success?: string
|
|
17
|
-
labelPosition?: 'top' | 'left'
|
|
18
|
-
labelAlign?: 'left' | 'right' | 'center'
|
|
19
|
-
totalWidth?: string
|
|
20
|
-
inputWidth?: string
|
|
21
|
-
labelWidth?: string
|
|
22
|
-
autosave?: (value: string) => Promise<void>
|
|
23
|
-
isTextarea?: boolean
|
|
24
|
-
maxHeight?: string
|
|
25
|
-
height?: string
|
|
26
|
-
bgColor?: string
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
export interface FileUploadProps {
|
|
30
|
-
modelValue: File[]
|
|
31
|
-
label?: string
|
|
32
|
-
placeholder?: string
|
|
33
|
-
error?: string
|
|
34
|
-
disabled?: boolean
|
|
35
|
-
required?: boolean
|
|
36
|
-
multiple?: boolean
|
|
37
|
-
accept?: string
|
|
38
|
-
maxSize?: number
|
|
39
|
-
uploadUrl?: string
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
export interface FileUploadEmits {
|
|
43
|
-
(e: 'update:modelValue', files: File[]): void
|
|
44
|
-
(e: 'files-selected', files: File[]): void
|
|
45
|
-
(e: 'start-upload', files: File[]): void
|
|
46
|
-
(e: 'upload-progress', progress: number): void
|
|
47
|
-
(e: 'upload-success', response: any): void
|
|
48
|
-
(e: 'upload-error', error: Error): void
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
export type TextInputComponent = {
|
|
52
|
-
focus: () => void
|
|
53
|
-
blur: () => void
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
export type FileUploadComponent = Component<FileUploadProps>
|
|
57
|
-
|
|
58
|
-
export interface ActionProps {
|
|
59
|
-
icon?: string
|
|
60
|
-
label?: string
|
|
61
|
-
href?: string
|
|
62
|
-
type?: 'button' | 'submit' | 'reset'
|
|
63
|
-
disabled?: boolean
|
|
64
|
-
color?: string
|
|
65
|
-
size?: 'small' | 'regular' | 'large'
|
|
66
|
-
variant?: 'solid' | 'transparent'
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
export type ActionComponent = {
|
|
70
|
-
focus: () => void
|
|
71
|
-
blur: () => void
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
export interface NavigationItem {
|
|
75
|
-
id: string
|
|
76
|
-
label: string
|
|
77
|
-
icon?: string
|
|
78
|
-
url?: string
|
|
79
|
-
children?: NavigationItem[]
|
|
80
|
-
type?: 'tile' | 'tab' | 'dropdown'
|
|
81
|
-
color?: string
|
|
82
|
-
disabled?: boolean
|
|
83
|
-
alignment?: 'start' | 'end'
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
export interface NavigationProps {
|
|
87
|
-
items: NavigationItem[]
|
|
88
|
-
type?: 'tiles' | 'tabs' | 'dropdowns'
|
|
89
|
-
orientation?: 'horizontal' | 'vertical'
|
|
90
|
-
activeItem?: string
|
|
91
|
-
color?: string
|
|
92
|
-
hoverColor?: string
|
|
93
|
-
activeColor?: string
|
|
94
|
-
disabledColor?: string
|
|
95
|
-
iconSize?: string
|
|
96
|
-
gap?: string
|
|
97
|
-
padding?: string
|
|
98
|
-
borderRadius?: string
|
|
99
|
-
showIcons?: boolean
|
|
100
|
-
activeItemAlignment?: 'start' | 'end'
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
export interface NavigationComponent {
|
|
104
|
-
props: NavigationProps
|
|
105
|
-
emits: {
|
|
106
|
-
(e: 'item-click', item: NavigationItem): void
|
|
107
|
-
(e: 'update:activeItem', id: string): void
|
|
108
|
-
}
|
|
109
|
-
}
|