@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/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
- }