@a-vision-software/vue-input-components 1.4.22 → 1.4.24
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 +2 -0
- package/dist/src/index.d.ts +8 -10
- package/dist/src/types/fileupload.d.ts +5 -0
- package/dist/src/types/index.d.ts +1 -3
- package/dist/src/types/list.d.ts +2 -2
- package/dist/src/types/textinput.d.ts +1 -2
- package/dist/vue-input-components.cjs.js +2 -2
- package/dist/vue-input-components.css +1 -1
- package/dist/vue-input-components.es.js +3449 -3412
- package/dist/vue-input-components.umd.js +2 -2
- package/package.json +1 -1
- package/src/components/FileUpload.vue +61 -10
- package/src/components/List.vue +2 -2
- package/src/components/Navigation.vue +162 -110
- package/src/components/TextInput.vue +47 -18
- package/src/index.ts +8 -10
- package/src/types/fileupload.ts +3 -1
- package/src/types/index.ts +1 -3
- package/src/types/list.ts +2 -2
- package/src/types/textinput.ts +2 -3
- package/src/views/TextInputTestView.vue +11 -0
|
@@ -2,6 +2,7 @@ import { FileUploadProps, UploadStatus } from '../types/fileupload';
|
|
|
2
2
|
|
|
3
3
|
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<FileUploadProps>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
4
4
|
"files-selected": (files: File[]) => void;
|
|
5
|
+
"start-upload": (files: File[]) => void;
|
|
5
6
|
"upload-started": (files: File[]) => void;
|
|
6
7
|
"upload-complete": (files: File[]) => void;
|
|
7
8
|
"upload-progress": (progress: number) => void;
|
|
@@ -9,6 +10,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
9
10
|
"upload-error": (status: UploadStatus) => void;
|
|
10
11
|
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<FileUploadProps>>> & Readonly<{
|
|
11
12
|
"onFiles-selected"?: ((files: File[]) => any) | undefined;
|
|
13
|
+
"onStart-upload"?: ((files: File[]) => any) | undefined;
|
|
12
14
|
"onUpload-started"?: ((files: File[]) => any) | undefined;
|
|
13
15
|
"onUpload-complete"?: ((files: File[]) => any) | undefined;
|
|
14
16
|
"onUpload-progress"?: ((progress: number) => any) | undefined;
|
package/dist/src/index.d.ts
CHANGED
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
export { TextInput, FileUpload, Navigation, Action, Dropdown, Checkbox, List, Modal };
|
|
1
|
+
export { default as TextInput } from './components/TextInput.vue';
|
|
2
|
+
export { default as FileUpload } from './components/FileUpload.vue';
|
|
3
|
+
export { default as Navigation } from './components/Navigation.vue';
|
|
4
|
+
export { default as Action } from './components/Action.vue';
|
|
5
|
+
export { default as Dropdown } from './components/Dropdown.vue';
|
|
6
|
+
export { default as Checkbox } from './components/Checkbox.vue';
|
|
7
|
+
export { default as List } from './components/List.vue';
|
|
8
|
+
export { default as Modal } from './components/Modal.vue';
|
|
11
9
|
export * from './types';
|
|
@@ -21,6 +21,10 @@ interface FileUploadProps {
|
|
|
21
21
|
progressColor?: string;
|
|
22
22
|
activeColor?: string;
|
|
23
23
|
uploadCallback?: (formData: FormData) => Promise<UploadCallbackResponse>;
|
|
24
|
+
perFileCallback?: (file: File, ctx: {
|
|
25
|
+
index: number;
|
|
26
|
+
total: number;
|
|
27
|
+
}) => Promise<void>;
|
|
24
28
|
}
|
|
25
29
|
interface UploadCallbackResponse {
|
|
26
30
|
formData: FormData;
|
|
@@ -33,6 +37,7 @@ interface UploadStatus {
|
|
|
33
37
|
}
|
|
34
38
|
interface FileUploadEmits {
|
|
35
39
|
(e: 'files-selected', files: File[]): void;
|
|
40
|
+
(e: 'start-upload', files: File[]): void;
|
|
36
41
|
(e: 'upload-started', files: File[]): void;
|
|
37
42
|
(e: 'upload-complete', files: File[]): void;
|
|
38
43
|
(e: 'upload-progress', progress: number): void;
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export type { NavigationProps, NavigationItem };
|
|
1
|
+
export type { NavigationProps, NavigationItem } from './navigation';
|
|
4
2
|
export * from './textinput';
|
|
5
3
|
export * from './fileupload';
|
|
6
4
|
export * from './action';
|
package/dist/src/types/list.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ interface ListAction {
|
|
|
11
11
|
onClick?: (item: any) => void;
|
|
12
12
|
onActionClick?: (item: any, action: any) => void;
|
|
13
13
|
}
|
|
14
|
-
interface
|
|
14
|
+
interface ConditionalClassList {
|
|
15
15
|
[key: string]: (value: any) => boolean;
|
|
16
16
|
}
|
|
17
17
|
interface ListColumn {
|
|
@@ -24,7 +24,7 @@ interface ListColumn {
|
|
|
24
24
|
width?: string;
|
|
25
25
|
minWidth?: string;
|
|
26
26
|
maxWidth?: string;
|
|
27
|
-
cellClasses?:
|
|
27
|
+
cellClasses?: ConditionalClassList;
|
|
28
28
|
headerTooltip?: string;
|
|
29
29
|
}
|
|
30
30
|
interface ListFilter {
|
|
@@ -18,11 +18,10 @@ export type TextInputProps = {
|
|
|
18
18
|
currencyFormatter?: Intl.NumberFormat;
|
|
19
19
|
autosave?: (value: string) => Promise<void>;
|
|
20
20
|
autosaveOnBlur?: boolean;
|
|
21
|
-
autosaveOnEnter?: boolean;
|
|
22
21
|
error?: string;
|
|
23
22
|
} & ({
|
|
24
23
|
modelValue: string;
|
|
25
|
-
type: 'text' | 'textarea' | 'password' | 'email' | 'tel' | 'url' | 'date';
|
|
24
|
+
type: 'text' | 'textarea' | 'password' | 'email' | 'tel' | 'url' | 'date' | 'datetime';
|
|
26
25
|
} | {
|
|
27
26
|
modelValue: number;
|
|
28
27
|
type: 'number' | 'money';
|