@a-vision-software/vue-input-components 1.1.53 → 1.1.54
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.
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
import { default as
|
|
2
|
-
import { default as
|
|
3
|
-
|
|
4
|
-
export {
|
|
1
|
+
import { default as FileUpload } from './components/FileUpload';
|
|
2
|
+
import { default as TextInput } from './components/TextInput';
|
|
3
|
+
|
|
4
|
+
export { FileUpload }
|
|
5
|
+
|
|
6
|
+
export { TextInput }
|
|
7
|
+
|
|
8
|
+
export { }
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@a-vision-software/vue-input-components",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.54",
|
|
4
4
|
"description": "A collection of reusable Vue 3 input components with TypeScript support",
|
|
5
5
|
"author": "A-Vision Software",
|
|
6
6
|
"license": "MIT",
|
|
@@ -26,6 +26,7 @@
|
|
|
26
26
|
],
|
|
27
27
|
"main": "./dist/vue-input-components.cjs.js",
|
|
28
28
|
"module": "./dist/vue-input-components.es.js",
|
|
29
|
+
"types": "./dist/index.d.ts",
|
|
29
30
|
"exports": {
|
|
30
31
|
".": {
|
|
31
32
|
"import": "./dist/vue-input-components.es.js",
|
|
@@ -1,27 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1,57 +0,0 @@
|
|
|
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
|
-
};
|
package/dist/src/main.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
package/dist/src/types.d.ts
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
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>;
|