@a-vision-software/vue-input-components 1.1.31 → 1.1.33
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/FileUpload.vue.d.ts +27 -0
- package/dist/src/components/TextInput.vue.d.ts +57 -0
- package/dist/src/index.d.ts +5 -0
- package/dist/src/main.d.ts +1 -0
- package/dist/src/router/index.d.ts +2 -0
- package/dist/src/types.d.ts +33 -0
- package/package.json +1 -1
- package/src/index.ts +7 -2
- package/src/types.ts +36 -0
- package/dist/index.d.ts +0 -96
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
2
|
+
icon?: string | undefined;
|
|
3
|
+
uploadUrl?: string | undefined;
|
|
4
|
+
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
5
|
+
"upload-complete": (files: File[]) => void;
|
|
6
|
+
"upload-error": (error: string) => void;
|
|
7
|
+
"files-selected": (files: File[]) => void;
|
|
8
|
+
"start-upload": (files: File[]) => void;
|
|
9
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
10
|
+
icon?: string | undefined;
|
|
11
|
+
uploadUrl?: string | undefined;
|
|
12
|
+
}>>> & Readonly<{
|
|
13
|
+
"onUpload-complete"?: ((files: File[]) => any) | undefined;
|
|
14
|
+
"onUpload-error"?: ((error: string) => any) | undefined;
|
|
15
|
+
"onFiles-selected"?: ((files: File[]) => any) | undefined;
|
|
16
|
+
"onStart-upload"?: ((files: File[]) => any) | undefined;
|
|
17
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
18
|
+
export default _default;
|
|
19
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
20
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
21
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
22
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
23
|
+
} : {
|
|
24
|
+
type: import('vue').PropType<T[K]>;
|
|
25
|
+
required: true;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
2
|
+
modelValue: string;
|
|
3
|
+
label?: string | undefined;
|
|
4
|
+
type?: string | undefined;
|
|
5
|
+
icon?: string | undefined;
|
|
6
|
+
placeholder?: string | undefined;
|
|
7
|
+
required?: boolean | undefined;
|
|
8
|
+
disabled?: boolean | undefined;
|
|
9
|
+
error?: string | undefined;
|
|
10
|
+
success?: string | undefined;
|
|
11
|
+
labelPosition?: "top" | "left" | undefined;
|
|
12
|
+
labelAlign?: "left" | "right" | "center" | undefined;
|
|
13
|
+
totalWidth?: string | undefined;
|
|
14
|
+
inputWidth?: string | undefined;
|
|
15
|
+
labelWidth?: string | undefined;
|
|
16
|
+
autosave?: ((value: string) => Promise<void>) | undefined;
|
|
17
|
+
isTextarea?: boolean | undefined;
|
|
18
|
+
maxHeight?: string | undefined;
|
|
19
|
+
height?: string | undefined;
|
|
20
|
+
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
21
|
+
"update:modelValue": (value: string) => void;
|
|
22
|
+
changed: () => void;
|
|
23
|
+
saved: () => void;
|
|
24
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
25
|
+
modelValue: string;
|
|
26
|
+
label?: string | undefined;
|
|
27
|
+
type?: string | undefined;
|
|
28
|
+
icon?: string | undefined;
|
|
29
|
+
placeholder?: string | undefined;
|
|
30
|
+
required?: boolean | undefined;
|
|
31
|
+
disabled?: boolean | undefined;
|
|
32
|
+
error?: string | undefined;
|
|
33
|
+
success?: string | undefined;
|
|
34
|
+
labelPosition?: "top" | "left" | undefined;
|
|
35
|
+
labelAlign?: "left" | "right" | "center" | undefined;
|
|
36
|
+
totalWidth?: string | undefined;
|
|
37
|
+
inputWidth?: string | undefined;
|
|
38
|
+
labelWidth?: string | undefined;
|
|
39
|
+
autosave?: ((value: string) => Promise<void>) | undefined;
|
|
40
|
+
isTextarea?: boolean | undefined;
|
|
41
|
+
maxHeight?: string | undefined;
|
|
42
|
+
height?: string | undefined;
|
|
43
|
+
}>>> & Readonly<{
|
|
44
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
45
|
+
onChanged?: (() => any) | undefined;
|
|
46
|
+
onSaved?: (() => any) | undefined;
|
|
47
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
48
|
+
export default _default;
|
|
49
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
50
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
51
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
52
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
53
|
+
} : {
|
|
54
|
+
type: import('vue').PropType<T[K]>;
|
|
55
|
+
required: true;
|
|
56
|
+
};
|
|
57
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { Component } from 'vue';
|
|
2
|
+
|
|
3
|
+
export interface TextInputProps {
|
|
4
|
+
modelValue: string;
|
|
5
|
+
label?: string;
|
|
6
|
+
placeholder?: string;
|
|
7
|
+
error?: string;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
required?: boolean;
|
|
10
|
+
maxlength?: number;
|
|
11
|
+
}
|
|
12
|
+
export interface FileUploadProps {
|
|
13
|
+
modelValue: File[];
|
|
14
|
+
label?: string;
|
|
15
|
+
placeholder?: string;
|
|
16
|
+
error?: string;
|
|
17
|
+
disabled?: boolean;
|
|
18
|
+
required?: boolean;
|
|
19
|
+
multiple?: boolean;
|
|
20
|
+
accept?: string;
|
|
21
|
+
maxSize?: number;
|
|
22
|
+
uploadUrl?: string;
|
|
23
|
+
}
|
|
24
|
+
export interface FileUploadEmits {
|
|
25
|
+
(e: 'update:modelValue', files: File[]): void;
|
|
26
|
+
(e: 'files-selected', files: File[]): void;
|
|
27
|
+
(e: 'start-upload', files: File[]): void;
|
|
28
|
+
(e: 'upload-progress', progress: number): void;
|
|
29
|
+
(e: 'upload-success', response: any): void;
|
|
30
|
+
(e: 'upload-error', error: Error): void;
|
|
31
|
+
}
|
|
32
|
+
export type TextInputComponent = Component<TextInputProps>;
|
|
33
|
+
export type FileUploadComponent = Component<FileUploadProps>;
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -1,2 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import TextInput from './components/TextInput.vue'
|
|
2
|
+
import FileUpload from './components/FileUpload.vue'
|
|
3
|
+
|
|
4
|
+
export { TextInput, FileUpload }
|
|
5
|
+
|
|
6
|
+
// Export types
|
|
7
|
+
export * from './types'
|
package/src/types.ts
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import type { Component } from 'vue'
|
|
2
|
+
|
|
3
|
+
export interface TextInputProps {
|
|
4
|
+
modelValue: string
|
|
5
|
+
label?: string
|
|
6
|
+
placeholder?: string
|
|
7
|
+
error?: string
|
|
8
|
+
disabled?: boolean
|
|
9
|
+
required?: boolean
|
|
10
|
+
maxlength?: number
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export interface FileUploadProps {
|
|
14
|
+
modelValue: File[]
|
|
15
|
+
label?: string
|
|
16
|
+
placeholder?: string
|
|
17
|
+
error?: string
|
|
18
|
+
disabled?: boolean
|
|
19
|
+
required?: boolean
|
|
20
|
+
multiple?: boolean
|
|
21
|
+
accept?: string
|
|
22
|
+
maxSize?: number
|
|
23
|
+
uploadUrl?: string
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export interface FileUploadEmits {
|
|
27
|
+
(e: 'update:modelValue', files: File[]): void
|
|
28
|
+
(e: 'files-selected', files: File[]): void
|
|
29
|
+
(e: 'start-upload', files: File[]): void
|
|
30
|
+
(e: 'upload-progress', progress: number): void
|
|
31
|
+
(e: 'upload-success', response: any): void
|
|
32
|
+
(e: 'upload-error', error: Error): void
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export type TextInputComponent = Component<TextInputProps>
|
|
36
|
+
export type FileUploadComponent = Component<FileUploadProps>
|
package/dist/index.d.ts
DELETED
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
import { ComponentOptionsMixin } from 'vue';
|
|
2
|
-
import { ComponentProvideOptions } from 'vue';
|
|
3
|
-
import { DefineComponent } from 'vue';
|
|
4
|
-
import { ExtractPropTypes } from 'vue';
|
|
5
|
-
import { PropType } from 'vue';
|
|
6
|
-
import { PublicProps } from 'vue';
|
|
7
|
-
|
|
8
|
-
declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
9
|
-
|
|
10
|
-
declare type __VLS_NonUndefinedable_2<T> = T extends undefined ? never : T;
|
|
11
|
-
|
|
12
|
-
declare type __VLS_TypePropsToRuntimeProps<T> = {
|
|
13
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
14
|
-
type: PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
15
|
-
} : {
|
|
16
|
-
type: PropType<T[K]>;
|
|
17
|
-
required: true;
|
|
18
|
-
};
|
|
19
|
-
};
|
|
20
|
-
|
|
21
|
-
declare type __VLS_TypePropsToRuntimeProps_2<T> = {
|
|
22
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
23
|
-
type: PropType<__VLS_NonUndefinedable_2<T[K]>>;
|
|
24
|
-
} : {
|
|
25
|
-
type: PropType<T[K]>;
|
|
26
|
-
required: true;
|
|
27
|
-
};
|
|
28
|
-
};
|
|
29
|
-
|
|
30
|
-
export declare const FileUpload: DefineComponent<ExtractPropTypes<__VLS_TypePropsToRuntimeProps_2<{
|
|
31
|
-
icon?: string | undefined;
|
|
32
|
-
uploadUrl?: string | undefined;
|
|
33
|
-
}>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
34
|
-
"upload-complete": (files: File[]) => void;
|
|
35
|
-
"upload-error": (error: string) => void;
|
|
36
|
-
"files-selected": (files: File[]) => void;
|
|
37
|
-
"start-upload": (files: File[]) => void;
|
|
38
|
-
}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_TypePropsToRuntimeProps_2<{
|
|
39
|
-
icon?: string | undefined;
|
|
40
|
-
uploadUrl?: string | undefined;
|
|
41
|
-
}>>> & Readonly<{
|
|
42
|
-
"onUpload-complete"?: ((files: File[]) => any) | undefined;
|
|
43
|
-
"onUpload-error"?: ((error: string) => any) | undefined;
|
|
44
|
-
"onFiles-selected"?: ((files: File[]) => any) | undefined;
|
|
45
|
-
"onStart-upload"?: ((files: File[]) => any) | undefined;
|
|
46
|
-
}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
47
|
-
|
|
48
|
-
export declare const TextInput: DefineComponent<ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
49
|
-
modelValue: string;
|
|
50
|
-
label?: string | undefined;
|
|
51
|
-
type?: string | undefined;
|
|
52
|
-
icon?: string | undefined;
|
|
53
|
-
placeholder?: string | undefined;
|
|
54
|
-
required?: boolean | undefined;
|
|
55
|
-
disabled?: boolean | undefined;
|
|
56
|
-
error?: string | undefined;
|
|
57
|
-
success?: string | undefined;
|
|
58
|
-
labelPosition?: "top" | "left" | undefined;
|
|
59
|
-
labelAlign?: "left" | "right" | "center" | undefined;
|
|
60
|
-
totalWidth?: string | undefined;
|
|
61
|
-
inputWidth?: string | undefined;
|
|
62
|
-
labelWidth?: string | undefined;
|
|
63
|
-
autosave?: ((value: string) => Promise<void>) | undefined;
|
|
64
|
-
isTextarea?: boolean | undefined;
|
|
65
|
-
maxHeight?: string | undefined;
|
|
66
|
-
height?: string | undefined;
|
|
67
|
-
}>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
68
|
-
"update:modelValue": (value: string) => void;
|
|
69
|
-
changed: () => void;
|
|
70
|
-
saved: () => void;
|
|
71
|
-
}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
72
|
-
modelValue: string;
|
|
73
|
-
label?: string | undefined;
|
|
74
|
-
type?: string | undefined;
|
|
75
|
-
icon?: string | undefined;
|
|
76
|
-
placeholder?: string | undefined;
|
|
77
|
-
required?: boolean | undefined;
|
|
78
|
-
disabled?: boolean | undefined;
|
|
79
|
-
error?: string | undefined;
|
|
80
|
-
success?: string | undefined;
|
|
81
|
-
labelPosition?: "top" | "left" | undefined;
|
|
82
|
-
labelAlign?: "left" | "right" | "center" | undefined;
|
|
83
|
-
totalWidth?: string | undefined;
|
|
84
|
-
inputWidth?: string | undefined;
|
|
85
|
-
labelWidth?: string | undefined;
|
|
86
|
-
autosave?: ((value: string) => Promise<void>) | undefined;
|
|
87
|
-
isTextarea?: boolean | undefined;
|
|
88
|
-
maxHeight?: string | undefined;
|
|
89
|
-
height?: string | undefined;
|
|
90
|
-
}>>> & Readonly<{
|
|
91
|
-
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
92
|
-
onChanged?: (() => any) | undefined;
|
|
93
|
-
onSaved?: (() => any) | undefined;
|
|
94
|
-
}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
95
|
-
|
|
96
|
-
export { }
|