@a-vision-software/vue-input-components 1.3.12 → 1.3.14
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 +104 -88
- 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
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
interface ActionProps {
|
|
2
|
+
icon?: string;
|
|
3
|
+
label?: string;
|
|
4
|
+
href?: string;
|
|
5
|
+
type?: 'button' | 'submit' | 'reset';
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
color?: string;
|
|
8
|
+
size?: 'small' | 'regular' | 'large';
|
|
9
|
+
variant?: 'solid' | 'transparent';
|
|
10
|
+
}
|
|
11
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ActionProps>, {
|
|
12
|
+
icon: undefined;
|
|
13
|
+
label: undefined;
|
|
14
|
+
href: undefined;
|
|
15
|
+
type: string;
|
|
16
|
+
disabled: boolean;
|
|
17
|
+
color: string;
|
|
18
|
+
size: string;
|
|
19
|
+
variant: string;
|
|
20
|
+
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
21
|
+
click: (event: MouseEvent) => void;
|
|
22
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ActionProps>, {
|
|
23
|
+
icon: undefined;
|
|
24
|
+
label: undefined;
|
|
25
|
+
href: undefined;
|
|
26
|
+
type: string;
|
|
27
|
+
disabled: boolean;
|
|
28
|
+
color: string;
|
|
29
|
+
size: string;
|
|
30
|
+
variant: string;
|
|
31
|
+
}>>> & Readonly<{
|
|
32
|
+
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
33
|
+
}>, {
|
|
34
|
+
disabled: boolean;
|
|
35
|
+
type: "reset" | "submit" | "button";
|
|
36
|
+
icon: string;
|
|
37
|
+
label: string;
|
|
38
|
+
href: string;
|
|
39
|
+
color: string;
|
|
40
|
+
size: "small" | "regular" | "large";
|
|
41
|
+
variant: "solid" | "transparent";
|
|
42
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
43
|
+
export default _default;
|
|
44
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
45
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
46
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
47
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
48
|
+
} : {
|
|
49
|
+
type: import('vue').PropType<T[K]>;
|
|
50
|
+
required: true;
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
type __VLS_WithDefaults<P, D> = {
|
|
54
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
55
|
+
default: D[K];
|
|
56
|
+
}> : P[K];
|
|
57
|
+
};
|
|
58
|
+
type __VLS_Prettify<T> = {
|
|
59
|
+
[K in keyof T]: T[K];
|
|
60
|
+
} & {};
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { DropdownProps } from '../types/dropdown';
|
|
2
|
+
|
|
3
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<DropdownProps>, {
|
|
4
|
+
multiple: boolean;
|
|
5
|
+
placeholder: string;
|
|
6
|
+
filterable: boolean;
|
|
7
|
+
disabled: boolean;
|
|
8
|
+
maxHeight: string;
|
|
9
|
+
width: string;
|
|
10
|
+
color: string;
|
|
11
|
+
hoverColor: string;
|
|
12
|
+
activeColor: string;
|
|
13
|
+
disabledColor: string;
|
|
14
|
+
backgroundColor: string;
|
|
15
|
+
borderRadius: string;
|
|
16
|
+
padding: string;
|
|
17
|
+
icon: string;
|
|
18
|
+
iconSize: string;
|
|
19
|
+
required: boolean;
|
|
20
|
+
error: string;
|
|
21
|
+
label: string;
|
|
22
|
+
labelPosition: string;
|
|
23
|
+
labelAlign: string;
|
|
24
|
+
labelWidth: string;
|
|
25
|
+
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
26
|
+
"update:modelValue": (value: string | string[]) => void;
|
|
27
|
+
changed: () => void;
|
|
28
|
+
saved: () => void;
|
|
29
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<DropdownProps>, {
|
|
30
|
+
multiple: boolean;
|
|
31
|
+
placeholder: string;
|
|
32
|
+
filterable: boolean;
|
|
33
|
+
disabled: boolean;
|
|
34
|
+
maxHeight: string;
|
|
35
|
+
width: string;
|
|
36
|
+
color: string;
|
|
37
|
+
hoverColor: string;
|
|
38
|
+
activeColor: string;
|
|
39
|
+
disabledColor: string;
|
|
40
|
+
backgroundColor: string;
|
|
41
|
+
borderRadius: string;
|
|
42
|
+
padding: string;
|
|
43
|
+
icon: string;
|
|
44
|
+
iconSize: string;
|
|
45
|
+
required: boolean;
|
|
46
|
+
error: string;
|
|
47
|
+
label: string;
|
|
48
|
+
labelPosition: string;
|
|
49
|
+
labelAlign: string;
|
|
50
|
+
labelWidth: string;
|
|
51
|
+
}>>> & Readonly<{
|
|
52
|
+
"onUpdate:modelValue"?: ((value: string | string[]) => any) | undefined;
|
|
53
|
+
onChanged?: (() => any) | undefined;
|
|
54
|
+
onSaved?: (() => any) | undefined;
|
|
55
|
+
}>, {
|
|
56
|
+
error: string;
|
|
57
|
+
disabled: boolean;
|
|
58
|
+
icon: string;
|
|
59
|
+
label: string;
|
|
60
|
+
color: string;
|
|
61
|
+
backgroundColor: string;
|
|
62
|
+
multiple: boolean;
|
|
63
|
+
placeholder: string;
|
|
64
|
+
filterable: boolean;
|
|
65
|
+
maxHeight: string;
|
|
66
|
+
width: string;
|
|
67
|
+
hoverColor: string;
|
|
68
|
+
activeColor: string;
|
|
69
|
+
disabledColor: string;
|
|
70
|
+
borderRadius: string;
|
|
71
|
+
padding: string;
|
|
72
|
+
iconSize: "large" | "normal";
|
|
73
|
+
required: boolean;
|
|
74
|
+
labelPosition: "top" | "left";
|
|
75
|
+
labelAlign: "left" | "center" | "right";
|
|
76
|
+
labelWidth: string;
|
|
77
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
78
|
+
export default _default;
|
|
79
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
80
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
81
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
82
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
83
|
+
} : {
|
|
84
|
+
type: import('vue').PropType<T[K]>;
|
|
85
|
+
required: true;
|
|
86
|
+
};
|
|
87
|
+
};
|
|
88
|
+
type __VLS_WithDefaults<P, D> = {
|
|
89
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
90
|
+
default: D[K];
|
|
91
|
+
}> : P[K];
|
|
92
|
+
};
|
|
93
|
+
type __VLS_Prettify<T> = {
|
|
94
|
+
[K in keyof T]: T[K];
|
|
95
|
+
} & {};
|
|
@@ -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,19 @@
|
|
|
1
|
+
import { NavigationProps, NavigationItem } from '../types/navigation';
|
|
2
|
+
|
|
3
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<NavigationProps>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
4
|
+
"update:activeItem": (value: string) => void;
|
|
5
|
+
"item-click": (item: NavigationItem) => void;
|
|
6
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<NavigationProps>>> & Readonly<{
|
|
7
|
+
"onUpdate:activeItem"?: ((value: string) => any) | undefined;
|
|
8
|
+
"onItem-click"?: ((item: NavigationItem) => any) | undefined;
|
|
9
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
10
|
+
export default _default;
|
|
11
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
12
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
13
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
14
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
15
|
+
} : {
|
|
16
|
+
type: import('vue').PropType<T[K]>;
|
|
17
|
+
required: true;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { TextInputProps } from '../types/textinput';
|
|
2
|
+
|
|
3
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<TextInputProps>, {
|
|
4
|
+
modelValue: string;
|
|
5
|
+
type: string;
|
|
6
|
+
placeholder: string;
|
|
7
|
+
label: string;
|
|
8
|
+
icon: undefined;
|
|
9
|
+
disabled: boolean;
|
|
10
|
+
readonly: boolean;
|
|
11
|
+
maxlength: undefined;
|
|
12
|
+
error: string;
|
|
13
|
+
min: undefined;
|
|
14
|
+
max: undefined;
|
|
15
|
+
labelPosition: string;
|
|
16
|
+
labelAlign: string;
|
|
17
|
+
labelWidth: string;
|
|
18
|
+
height: string;
|
|
19
|
+
maxHeight: string;
|
|
20
|
+
bgColor: string;
|
|
21
|
+
width: (props: any) => "100%" | "10rem";
|
|
22
|
+
}>>, {
|
|
23
|
+
focus: () => void | undefined;
|
|
24
|
+
blur: () => void | undefined;
|
|
25
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
26
|
+
"update:modelValue": (value: string) => void;
|
|
27
|
+
changed: () => void;
|
|
28
|
+
saved: () => void;
|
|
29
|
+
focus: () => void;
|
|
30
|
+
blur: () => void;
|
|
31
|
+
keydown: (event: KeyboardEvent) => void;
|
|
32
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<TextInputProps>, {
|
|
33
|
+
modelValue: string;
|
|
34
|
+
type: string;
|
|
35
|
+
placeholder: string;
|
|
36
|
+
label: string;
|
|
37
|
+
icon: undefined;
|
|
38
|
+
disabled: boolean;
|
|
39
|
+
readonly: boolean;
|
|
40
|
+
maxlength: undefined;
|
|
41
|
+
error: string;
|
|
42
|
+
min: undefined;
|
|
43
|
+
max: undefined;
|
|
44
|
+
labelPosition: string;
|
|
45
|
+
labelAlign: string;
|
|
46
|
+
labelWidth: string;
|
|
47
|
+
height: string;
|
|
48
|
+
maxHeight: string;
|
|
49
|
+
bgColor: string;
|
|
50
|
+
width: (props: any) => "100%" | "10rem";
|
|
51
|
+
}>>> & Readonly<{
|
|
52
|
+
onBlur?: (() => any) | undefined;
|
|
53
|
+
onFocus?: (() => any) | undefined;
|
|
54
|
+
onKeydown?: ((event: KeyboardEvent) => any) | undefined;
|
|
55
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
56
|
+
onChanged?: (() => any) | undefined;
|
|
57
|
+
onSaved?: (() => any) | undefined;
|
|
58
|
+
}>, {
|
|
59
|
+
error: string;
|
|
60
|
+
disabled: boolean;
|
|
61
|
+
max: string | Date;
|
|
62
|
+
type: "number" | "textarea" | "text" | "date" | "email" | "password" | "tel" | "url";
|
|
63
|
+
icon: string;
|
|
64
|
+
label: string;
|
|
65
|
+
modelValue: string;
|
|
66
|
+
placeholder: string;
|
|
67
|
+
maxHeight: string;
|
|
68
|
+
width: string;
|
|
69
|
+
labelPosition: "top" | "left";
|
|
70
|
+
labelAlign: "left" | "center" | "right";
|
|
71
|
+
labelWidth: string;
|
|
72
|
+
height: string;
|
|
73
|
+
readonly: boolean;
|
|
74
|
+
maxlength: number;
|
|
75
|
+
min: string | Date;
|
|
76
|
+
bgColor: string;
|
|
77
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
78
|
+
export default _default;
|
|
79
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
80
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
81
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
82
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
83
|
+
} : {
|
|
84
|
+
type: import('vue').PropType<T[K]>;
|
|
85
|
+
required: true;
|
|
86
|
+
};
|
|
87
|
+
};
|
|
88
|
+
type __VLS_WithDefaults<P, D> = {
|
|
89
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
90
|
+
default: D[K];
|
|
91
|
+
}> : P[K];
|
|
92
|
+
};
|
|
93
|
+
type __VLS_Prettify<T> = {
|
|
94
|
+
[K in keyof T]: T[K];
|
|
95
|
+
} & {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { default as TextInput } from './components/TextInput.vue';
|
|
2
|
+
import { default as FileUpload } from './components/FileUpload.vue';
|
|
3
|
+
import { default as Navigation } from './components/Navigation.vue';
|
|
4
|
+
import { default as Action } from './components/Action.vue';
|
|
5
|
+
import { default as Dropdown } from './components/Dropdown.vue';
|
|
6
|
+
|
|
7
|
+
export { TextInput, FileUpload, Navigation, Action, Dropdown };
|
|
8
|
+
export * from './types';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export interface ActionProps {
|
|
2
|
+
icon?: string;
|
|
3
|
+
label?: string;
|
|
4
|
+
href?: string;
|
|
5
|
+
type?: 'button' | 'submit' | 'reset';
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
color?: string;
|
|
8
|
+
size?: 'small' | 'regular' | 'large';
|
|
9
|
+
variant?: 'solid' | 'transparent';
|
|
10
|
+
}
|
|
11
|
+
export interface ActionEmits {
|
|
12
|
+
(e: 'click', event: MouseEvent): void;
|
|
13
|
+
}
|
|
14
|
+
export interface ActionComponent {
|
|
15
|
+
focus: () => void;
|
|
16
|
+
blur: () => void;
|
|
17
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export interface DropdownOption {
|
|
2
|
+
id: string;
|
|
3
|
+
label: string;
|
|
4
|
+
disabled?: boolean;
|
|
5
|
+
}
|
|
6
|
+
export interface DropdownProps {
|
|
7
|
+
options: DropdownOption[];
|
|
8
|
+
modelValue: string | string[];
|
|
9
|
+
multiple?: boolean;
|
|
10
|
+
placeholder?: string;
|
|
11
|
+
filterable?: boolean;
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
maxHeight?: string;
|
|
14
|
+
width?: string;
|
|
15
|
+
color?: string;
|
|
16
|
+
hoverColor?: string;
|
|
17
|
+
activeColor?: string;
|
|
18
|
+
disabledColor?: string;
|
|
19
|
+
backgroundColor?: string;
|
|
20
|
+
borderRadius?: string;
|
|
21
|
+
padding?: string;
|
|
22
|
+
icon?: string;
|
|
23
|
+
iconSize?: 'normal' | 'large';
|
|
24
|
+
error?: string;
|
|
25
|
+
required?: boolean;
|
|
26
|
+
autosave?: (value: string | string[]) => Promise<void>;
|
|
27
|
+
label?: string;
|
|
28
|
+
labelPosition?: 'top' | 'left';
|
|
29
|
+
labelAlign?: 'left' | 'center' | 'right';
|
|
30
|
+
labelWidth?: string;
|
|
31
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export interface FileUploadProps {
|
|
2
|
+
modelValue: File[];
|
|
3
|
+
label?: string;
|
|
4
|
+
placeholder?: string;
|
|
5
|
+
error?: string;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
required?: boolean;
|
|
8
|
+
multiple?: boolean;
|
|
9
|
+
accept?: string;
|
|
10
|
+
maxSize?: number;
|
|
11
|
+
uploadUrl?: string;
|
|
12
|
+
}
|
|
13
|
+
export interface FileUploadEmits {
|
|
14
|
+
(e: 'update:modelValue', files: File[]): void;
|
|
15
|
+
(e: 'files-selected', files: File[]): void;
|
|
16
|
+
(e: 'start-upload', files: File[]): void;
|
|
17
|
+
(e: 'upload-progress', progress: number): void;
|
|
18
|
+
(e: 'upload-success', response: any): void;
|
|
19
|
+
(e: 'upload-error', error: Error): void;
|
|
20
|
+
}
|
|
21
|
+
export interface FileUploadComponent {
|
|
22
|
+
focus: () => void;
|
|
23
|
+
blur: () => void;
|
|
24
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { NavigationProps, NavigationItem } from './navigation';
|
|
2
|
+
|
|
3
|
+
export type { NavigationProps, NavigationItem };
|
|
4
|
+
export * from './textinput';
|
|
5
|
+
export * from './fileupload';
|
|
6
|
+
export * from './action';
|
|
7
|
+
export * from './navigation';
|
|
8
|
+
export * from './dropdown';
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
export interface NavigationItem {
|
|
2
|
+
id: string;
|
|
3
|
+
label: string;
|
|
4
|
+
url?: string;
|
|
5
|
+
icon?: string;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
alignment?: 'left' | 'right' | 'start' | 'end';
|
|
8
|
+
width?: string;
|
|
9
|
+
children?: NavigationItem[];
|
|
10
|
+
hideExternalOpen?: boolean;
|
|
11
|
+
labelSize?: 'small' | 'normal' | 'large';
|
|
12
|
+
}
|
|
13
|
+
export interface NavigationProps {
|
|
14
|
+
items: NavigationItem[];
|
|
15
|
+
type?: 'tiles' | 'dropdowns';
|
|
16
|
+
orientation?: 'horizontal' | 'vertical';
|
|
17
|
+
activeItem?: string;
|
|
18
|
+
color?: string;
|
|
19
|
+
hoverColor?: string;
|
|
20
|
+
activeColor?: string;
|
|
21
|
+
disabledColor?: string;
|
|
22
|
+
gap?: string;
|
|
23
|
+
padding?: string;
|
|
24
|
+
borderRadius?: string;
|
|
25
|
+
height?: string;
|
|
26
|
+
width?: string;
|
|
27
|
+
backgroundColor?: string;
|
|
28
|
+
activeBackgroundColor?: string;
|
|
29
|
+
activeItemAlignment?: 'left' | 'right' | 'top' | 'bottom';
|
|
30
|
+
showBottomBorder?: boolean;
|
|
31
|
+
bottomBorderColor?: string;
|
|
32
|
+
iconSize?: 'normal' | 'large';
|
|
33
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export interface TextInputProps {
|
|
2
|
+
modelValue: string;
|
|
3
|
+
type?: 'text' | 'textarea' | 'password' | 'email' | 'tel' | 'url' | 'date' | 'number';
|
|
4
|
+
placeholder?: string;
|
|
5
|
+
label?: string;
|
|
6
|
+
icon?: string;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
readonly?: boolean;
|
|
9
|
+
maxlength?: number;
|
|
10
|
+
error?: string;
|
|
11
|
+
min?: Date | string;
|
|
12
|
+
max?: Date | string;
|
|
13
|
+
autosave?: (value: string) => Promise<void>;
|
|
14
|
+
labelPosition?: 'top' | 'left';
|
|
15
|
+
labelAlign?: 'left' | 'center' | 'right';
|
|
16
|
+
labelWidth?: string;
|
|
17
|
+
height?: string;
|
|
18
|
+
maxHeight?: string;
|
|
19
|
+
bgColor?: string;
|
|
20
|
+
width?: string;
|
|
21
|
+
required?: boolean;
|
|
22
|
+
}
|
|
23
|
+
export interface TextInputEmits {
|
|
24
|
+
(e: 'update:modelValue', value: string): void;
|
|
25
|
+
(e: 'changed'): void;
|
|
26
|
+
(e: 'saved'): void;
|
|
27
|
+
(e: 'focus'): void;
|
|
28
|
+
(e: 'blur'): void;
|
|
29
|
+
(e: 'keydown', event: KeyboardEvent): void;
|
|
30
|
+
}
|
|
31
|
+
export interface TextInputComponent {
|
|
32
|
+
focus: () => void;
|
|
33
|
+
blur: () => void;
|
|
34
|
+
}
|