@a-vision-software/vue-input-components 1.1.53 → 1.1.55

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/README.md CHANGED
@@ -35,7 +35,7 @@ A collection of reusable Vue 3 input components with TypeScript support.
35
35
  ## Installation
36
36
 
37
37
  ```bash
38
- npm install npm install git+ssh://github.com:a-vision/vue-input-components.git
38
+ npm install @a-vision-software/vue-input-components
39
39
  ```
40
40
 
41
41
  ## Quick Start
@@ -44,7 +44,7 @@ npm install npm install git+ssh://github.com:a-vision/vue-input-components.git
44
44
 
45
45
  ```vue
46
46
  <script setup>
47
- import { TextInput, FileUpload } from 'vue-input-components'
47
+ import { TextInput, FileUpload } from '@a-vision-software/vue-input-components'
48
48
  </script>
49
49
  ```
50
50
 
@@ -0,0 +1,63 @@
1
+ import { Component } from 'vue';
2
+ import { default as FileUpload } from './components/FileUpload';
3
+ import { default as TextInput } from './components/TextInput';
4
+
5
+ export { FileUpload }
6
+
7
+ export declare type FileUploadComponent = Component<FileUploadProps>;
8
+
9
+ export declare interface FileUploadEmits {
10
+ (e: 'update:modelValue', files: File[]): void;
11
+ (e: 'files-selected', files: File[]): void;
12
+ (e: 'start-upload', files: File[]): void;
13
+ (e: 'upload-progress', progress: number): void;
14
+ (e: 'upload-success', response: any): void;
15
+ (e: 'upload-error', error: Error): void;
16
+ }
17
+
18
+ export declare interface FileUploadProps {
19
+ modelValue: File[];
20
+ label?: string;
21
+ placeholder?: string;
22
+ error?: string;
23
+ disabled?: boolean;
24
+ required?: boolean;
25
+ multiple?: boolean;
26
+ accept?: string;
27
+ maxSize?: number;
28
+ uploadUrl?: string;
29
+ }
30
+
31
+ export { TextInput }
32
+
33
+ export declare type TextInputComponent = {
34
+ focus: () => void;
35
+ blur: () => void;
36
+ };
37
+
38
+ export declare interface TextInputProps {
39
+ modelValue: string;
40
+ type?: 'text' | 'password' | 'email' | 'number' | 'tel' | 'url' | 'date';
41
+ label?: string;
42
+ placeholder?: string;
43
+ icon?: string;
44
+ disabled?: boolean;
45
+ readonly?: boolean;
46
+ maxlength?: number;
47
+ error?: string;
48
+ min?: string;
49
+ max?: string;
50
+ required?: boolean;
51
+ success?: string;
52
+ labelPosition?: 'top' | 'left';
53
+ labelAlign?: 'left' | 'right' | 'center';
54
+ totalWidth?: string;
55
+ inputWidth?: string;
56
+ labelWidth?: string;
57
+ autosave?: (value: string) => Promise<void>;
58
+ isTextarea?: boolean;
59
+ maxHeight?: string;
60
+ height?: string;
61
+ }
62
+
63
+ export { }