@solfacil/girassol 0.14.0 → 0.16.0
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 +2 -2
- package/dist/components.d.ts +2 -0
- package/dist/components.json +1 -1
- package/dist/girassol.es.js +6955 -6457
- package/dist/girassol.umd.js +7 -7
- package/dist/style.css +1 -1
- package/dist/theme/solfacil/index.d.ts +1 -0
- package/dist/theme/solfacil/utilities.d.ts +1 -0
- package/dist/types/components/date-picker/types.d.ts +1 -1
- package/dist/types/components/empty-state/types.d.ts +1 -1
- package/dist/types/components/file-upload/Download.vue.d.ts +107 -0
- package/dist/types/components/file-upload/FileUpload.vue.d.ts +208 -0
- package/dist/types/components/file-upload/Upload.vue.d.ts +136 -0
- package/dist/types/components/file-upload/file-upload.spec.d.ts +1 -0
- package/dist/types/components/file-upload/index.d.ts +2 -0
- package/dist/types/components/file-upload/types.d.ts +34 -0
- package/dist/types/components/forms/button/button/Button.vue.d.ts +2 -0
- package/dist/types/components/informations/tag/Tag.vue.d.ts +4 -4
- package/dist/types/components/menus/menu/Menu.vue.d.ts +7 -7
- package/dist/types/components/menus/menu-item/MenuItemSeparator.vue.d.ts +2 -0
- package/dist/types/components/menus/menu-item/index.d.ts +2 -0
- package/dist/types/composables/use-download/index.d.ts +3 -0
- package/dist/types/index.d.ts +369 -15
- package/package.json +1 -1
- package/theme/solfacil/index.ts +2 -1
- package/theme/solfacil/screens.ts +0 -6
- package/theme/solfacil/utilities.ts +22 -1
- package/windi.config.ts +1 -1
|
@@ -14,4 +14,5 @@ export declare const utilities: {
|
|
|
14
14
|
placeholder: import("windicss/types/interfaces").PluginOutput;
|
|
15
15
|
scrollbarBase: import("windicss/types/interfaces").PluginOutput;
|
|
16
16
|
iconSizes: import("windicss/types/interfaces").PluginOutput;
|
|
17
|
+
resetFillFields: import("windicss/types/interfaces").PluginOutput;
|
|
17
18
|
};
|
|
@@ -5,3 +5,4 @@ export declare const debug: import("windicss/types/interfaces").PluginOutput;
|
|
|
5
5
|
export declare const placeholder: import("windicss/types/interfaces").PluginOutput;
|
|
6
6
|
export declare const scrollbarBase: import("windicss/types/interfaces").PluginOutput;
|
|
7
7
|
export declare const iconSizes: import("windicss/types/interfaces").PluginOutput;
|
|
8
|
+
export declare const resetFillFields: import("windicss/types/interfaces").PluginOutput;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare type Variant = 'add-file' | 'add-photo' | 'empty-folder' | 'empty-list' | 'list' | 'no-content' | 'search-list' | 'search';
|
|
1
|
+
export declare type Variant = 'add-file' | 'add-photo' | 'empty-folder' | 'empty-list' | 'list' | 'no-content' | 'search-list' | 'search' | 'payment-done' | 'period-payment' | 'error404';
|
|
2
2
|
export interface EmptyState {
|
|
3
3
|
id: string;
|
|
4
4
|
title: string;
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import type { Download, DownloadMenu } from './types';
|
|
2
|
+
declare const _default: {
|
|
3
|
+
new (...args: any[]): {
|
|
4
|
+
$: import("vue").ComponentInternalInstance;
|
|
5
|
+
$data: {};
|
|
6
|
+
$props: Partial<{}> & Omit<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
7
|
+
id: Download['id'];
|
|
8
|
+
downloadSrc?: Download['downloadSrc'];
|
|
9
|
+
downloadMenu?: DownloadMenu[] | undefined;
|
|
10
|
+
fileIcon: Download['fileIcon'];
|
|
11
|
+
}>, {}>>> & {
|
|
12
|
+
"onMenu:preview"?: ((url: string) => any) | undefined;
|
|
13
|
+
"onMenu:download"?: ((url: string) => any) | undefined;
|
|
14
|
+
"onMenu:delete"?: ((url: string) => any) | undefined;
|
|
15
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>;
|
|
16
|
+
$attrs: {
|
|
17
|
+
[x: string]: unknown;
|
|
18
|
+
};
|
|
19
|
+
$refs: {
|
|
20
|
+
[x: string]: unknown;
|
|
21
|
+
};
|
|
22
|
+
$slots: Readonly<{
|
|
23
|
+
[name: string]: import("vue").Slot | undefined;
|
|
24
|
+
}>;
|
|
25
|
+
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
|
|
26
|
+
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
|
|
27
|
+
$emit: ((event: "menu:preview", url: string) => void) & ((event: "menu:download", url: string) => void) & ((event: "menu:delete", url: string) => void);
|
|
28
|
+
$el: any;
|
|
29
|
+
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
30
|
+
id: Download['id'];
|
|
31
|
+
downloadSrc?: Download['downloadSrc'];
|
|
32
|
+
downloadMenu?: DownloadMenu[] | undefined;
|
|
33
|
+
fileIcon: Download['fileIcon'];
|
|
34
|
+
}>, {}>>> & {
|
|
35
|
+
"onMenu:preview"?: ((url: string) => any) | undefined;
|
|
36
|
+
"onMenu:download"?: ((url: string) => any) | undefined;
|
|
37
|
+
"onMenu:delete"?: ((url: string) => any) | undefined;
|
|
38
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
39
|
+
"menu:preview": (url: string) => void;
|
|
40
|
+
} & {
|
|
41
|
+
"menu:download": (url: string) => void;
|
|
42
|
+
} & {
|
|
43
|
+
"menu:delete": (url: string) => void;
|
|
44
|
+
}, string, {}> & {
|
|
45
|
+
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
46
|
+
created?: ((() => void) | (() => void)[]) | undefined;
|
|
47
|
+
beforeMount?: ((() => void) | (() => void)[]) | undefined;
|
|
48
|
+
mounted?: ((() => void) | (() => void)[]) | undefined;
|
|
49
|
+
beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
|
|
50
|
+
updated?: ((() => void) | (() => void)[]) | undefined;
|
|
51
|
+
activated?: ((() => void) | (() => void)[]) | undefined;
|
|
52
|
+
deactivated?: ((() => void) | (() => void)[]) | undefined;
|
|
53
|
+
beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
|
|
54
|
+
beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
|
|
55
|
+
destroyed?: ((() => void) | (() => void)[]) | undefined;
|
|
56
|
+
unmounted?: ((() => void) | (() => void)[]) | undefined;
|
|
57
|
+
renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
58
|
+
renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
59
|
+
errorCaptured?: (((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null, info: string) => boolean | void)[]) | undefined;
|
|
60
|
+
};
|
|
61
|
+
$forceUpdate: () => void;
|
|
62
|
+
$nextTick: typeof import("vue").nextTick;
|
|
63
|
+
$watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
|
|
64
|
+
} & Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
65
|
+
id: Download['id'];
|
|
66
|
+
downloadSrc?: Download['downloadSrc'];
|
|
67
|
+
downloadMenu?: DownloadMenu[] | undefined;
|
|
68
|
+
fileIcon: Download['fileIcon'];
|
|
69
|
+
}>, {}>>> & {
|
|
70
|
+
"onMenu:preview"?: ((url: string) => any) | undefined;
|
|
71
|
+
"onMenu:download"?: ((url: string) => any) | undefined;
|
|
72
|
+
"onMenu:delete"?: ((url: string) => any) | undefined;
|
|
73
|
+
} & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties;
|
|
74
|
+
__isFragment?: undefined;
|
|
75
|
+
__isTeleport?: undefined;
|
|
76
|
+
__isSuspense?: undefined;
|
|
77
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
78
|
+
id: Download['id'];
|
|
79
|
+
downloadSrc?: Download['downloadSrc'];
|
|
80
|
+
downloadMenu?: DownloadMenu[] | undefined;
|
|
81
|
+
fileIcon: Download['fileIcon'];
|
|
82
|
+
}>, {}>>> & {
|
|
83
|
+
"onMenu:preview"?: ((url: string) => any) | undefined;
|
|
84
|
+
"onMenu:download"?: ((url: string) => any) | undefined;
|
|
85
|
+
"onMenu:delete"?: ((url: string) => any) | undefined;
|
|
86
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
87
|
+
"menu:preview": (url: string) => void;
|
|
88
|
+
} & {
|
|
89
|
+
"menu:download": (url: string) => void;
|
|
90
|
+
} & {
|
|
91
|
+
"menu:delete": (url: string) => void;
|
|
92
|
+
}, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
|
|
93
|
+
export default _default;
|
|
94
|
+
declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
95
|
+
declare type __VLS_TypePropsToRuntimeProps<T> = {
|
|
96
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
97
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
98
|
+
} : {
|
|
99
|
+
type: import('vue').PropType<T[K]>;
|
|
100
|
+
required: true;
|
|
101
|
+
};
|
|
102
|
+
};
|
|
103
|
+
declare type __VLS_WithDefaults<P, D> = {
|
|
104
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
|
|
105
|
+
default: D[K];
|
|
106
|
+
} : P[K];
|
|
107
|
+
};
|
|
@@ -0,0 +1,208 @@
|
|
|
1
|
+
import type { FileUpload, ParentValidate } from './types';
|
|
2
|
+
declare const _default: {
|
|
3
|
+
new (...args: any[]): {
|
|
4
|
+
$: import("vue").ComponentInternalInstance;
|
|
5
|
+
$data: {};
|
|
6
|
+
$props: Partial<{
|
|
7
|
+
label: string;
|
|
8
|
+
error: string | null;
|
|
9
|
+
placeholder: string;
|
|
10
|
+
loading: boolean;
|
|
11
|
+
multiple: boolean;
|
|
12
|
+
downloadMenu: FileUpload['downloadMenu'];
|
|
13
|
+
}> & Omit<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
14
|
+
id: FileUpload['id'];
|
|
15
|
+
label?: FileUpload['label'];
|
|
16
|
+
helperText?: FileUpload['helperText'];
|
|
17
|
+
error?: FileUpload['error'];
|
|
18
|
+
name: FileUpload['name'];
|
|
19
|
+
accept?: FileUpload['accept'];
|
|
20
|
+
multiple?: FileUpload['multiple'];
|
|
21
|
+
modelValue?: FileUpload['modelValue'];
|
|
22
|
+
placeholder?: FileUpload['placeholder'];
|
|
23
|
+
loading?: FileUpload['loading'];
|
|
24
|
+
downloadSrc?: FileUpload['downloadSrc'];
|
|
25
|
+
downloadMenu?: import("./types").DownloadMenu[] | undefined;
|
|
26
|
+
useField?: ParentValidate['useFieldParent'];
|
|
27
|
+
rules?: ParentValidate['rules'];
|
|
28
|
+
opts?: ParentValidate['opts'];
|
|
29
|
+
}>, {
|
|
30
|
+
downloadMenu: () => string[];
|
|
31
|
+
label: string;
|
|
32
|
+
multiple: boolean;
|
|
33
|
+
loading: boolean;
|
|
34
|
+
error: null;
|
|
35
|
+
placeholder: string;
|
|
36
|
+
}>>> & {
|
|
37
|
+
"onUpdate:modelValue"?: ((value: import("./types").FileUploadModel | undefined) => any) | undefined;
|
|
38
|
+
"onMenu:preview"?: ((url: string) => any) | undefined;
|
|
39
|
+
"onMenu:download"?: ((url: string) => any) | undefined;
|
|
40
|
+
"onMenu:delete"?: ((url: string) => any) | undefined;
|
|
41
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "label" | "error" | "placeholder" | "loading" | "multiple" | "downloadMenu">;
|
|
42
|
+
$attrs: {
|
|
43
|
+
[x: string]: unknown;
|
|
44
|
+
};
|
|
45
|
+
$refs: {
|
|
46
|
+
[x: string]: unknown;
|
|
47
|
+
};
|
|
48
|
+
$slots: Readonly<{
|
|
49
|
+
[name: string]: import("vue").Slot | undefined;
|
|
50
|
+
}>;
|
|
51
|
+
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
|
|
52
|
+
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
|
|
53
|
+
$emit: ((event: "update:modelValue", value: import("./types").FileUploadModel | undefined) => void) & ((event: "menu:preview", url: string) => void) & ((event: "menu:download", url: string) => void) & ((event: "menu:delete", url: string) => void);
|
|
54
|
+
$el: any;
|
|
55
|
+
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
56
|
+
id: FileUpload['id'];
|
|
57
|
+
label?: FileUpload['label'];
|
|
58
|
+
helperText?: FileUpload['helperText'];
|
|
59
|
+
error?: FileUpload['error'];
|
|
60
|
+
name: FileUpload['name'];
|
|
61
|
+
accept?: FileUpload['accept'];
|
|
62
|
+
multiple?: FileUpload['multiple'];
|
|
63
|
+
modelValue?: FileUpload['modelValue'];
|
|
64
|
+
placeholder?: FileUpload['placeholder'];
|
|
65
|
+
loading?: FileUpload['loading'];
|
|
66
|
+
downloadSrc?: FileUpload['downloadSrc'];
|
|
67
|
+
downloadMenu?: import("./types").DownloadMenu[] | undefined;
|
|
68
|
+
useField?: ParentValidate['useFieldParent'];
|
|
69
|
+
rules?: ParentValidate['rules'];
|
|
70
|
+
opts?: ParentValidate['opts'];
|
|
71
|
+
}>, {
|
|
72
|
+
downloadMenu: () => string[];
|
|
73
|
+
label: string;
|
|
74
|
+
multiple: boolean;
|
|
75
|
+
loading: boolean;
|
|
76
|
+
error: null;
|
|
77
|
+
placeholder: string;
|
|
78
|
+
}>>> & {
|
|
79
|
+
"onUpdate:modelValue"?: ((value: import("./types").FileUploadModel | undefined) => any) | undefined;
|
|
80
|
+
"onMenu:preview"?: ((url: string) => any) | undefined;
|
|
81
|
+
"onMenu:download"?: ((url: string) => any) | undefined;
|
|
82
|
+
"onMenu:delete"?: ((url: string) => any) | undefined;
|
|
83
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
84
|
+
"update:modelValue": (value: import("./types").FileUploadModel | undefined) => void;
|
|
85
|
+
} & {
|
|
86
|
+
"menu:preview": (url: string) => void;
|
|
87
|
+
} & {
|
|
88
|
+
"menu:download": (url: string) => void;
|
|
89
|
+
} & {
|
|
90
|
+
"menu:delete": (url: string) => void;
|
|
91
|
+
}, string, {
|
|
92
|
+
label: string;
|
|
93
|
+
error: string | null;
|
|
94
|
+
placeholder: string;
|
|
95
|
+
loading: boolean;
|
|
96
|
+
multiple: boolean;
|
|
97
|
+
downloadMenu: FileUpload['downloadMenu'];
|
|
98
|
+
}> & {
|
|
99
|
+
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
100
|
+
created?: ((() => void) | (() => void)[]) | undefined;
|
|
101
|
+
beforeMount?: ((() => void) | (() => void)[]) | undefined;
|
|
102
|
+
mounted?: ((() => void) | (() => void)[]) | undefined;
|
|
103
|
+
beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
|
|
104
|
+
updated?: ((() => void) | (() => void)[]) | undefined;
|
|
105
|
+
activated?: ((() => void) | (() => void)[]) | undefined;
|
|
106
|
+
deactivated?: ((() => void) | (() => void)[]) | undefined;
|
|
107
|
+
beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
|
|
108
|
+
beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
|
|
109
|
+
destroyed?: ((() => void) | (() => void)[]) | undefined;
|
|
110
|
+
unmounted?: ((() => void) | (() => void)[]) | undefined;
|
|
111
|
+
renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
112
|
+
renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
113
|
+
errorCaptured?: (((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null, info: string) => boolean | void)[]) | undefined;
|
|
114
|
+
};
|
|
115
|
+
$forceUpdate: () => void;
|
|
116
|
+
$nextTick: typeof import("vue").nextTick;
|
|
117
|
+
$watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
|
|
118
|
+
} & Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
119
|
+
id: FileUpload['id'];
|
|
120
|
+
label?: FileUpload['label'];
|
|
121
|
+
helperText?: FileUpload['helperText'];
|
|
122
|
+
error?: FileUpload['error'];
|
|
123
|
+
name: FileUpload['name'];
|
|
124
|
+
accept?: FileUpload['accept'];
|
|
125
|
+
multiple?: FileUpload['multiple'];
|
|
126
|
+
modelValue?: FileUpload['modelValue'];
|
|
127
|
+
placeholder?: FileUpload['placeholder'];
|
|
128
|
+
loading?: FileUpload['loading'];
|
|
129
|
+
downloadSrc?: FileUpload['downloadSrc'];
|
|
130
|
+
downloadMenu?: import("./types").DownloadMenu[] | undefined;
|
|
131
|
+
useField?: ParentValidate['useFieldParent'];
|
|
132
|
+
rules?: ParentValidate['rules'];
|
|
133
|
+
opts?: ParentValidate['opts'];
|
|
134
|
+
}>, {
|
|
135
|
+
downloadMenu: () => string[];
|
|
136
|
+
label: string;
|
|
137
|
+
multiple: boolean;
|
|
138
|
+
loading: boolean;
|
|
139
|
+
error: null;
|
|
140
|
+
placeholder: string;
|
|
141
|
+
}>>> & {
|
|
142
|
+
"onUpdate:modelValue"?: ((value: import("./types").FileUploadModel | undefined) => any) | undefined;
|
|
143
|
+
"onMenu:preview"?: ((url: string) => any) | undefined;
|
|
144
|
+
"onMenu:download"?: ((url: string) => any) | undefined;
|
|
145
|
+
"onMenu:delete"?: ((url: string) => any) | undefined;
|
|
146
|
+
} & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties;
|
|
147
|
+
__isFragment?: undefined;
|
|
148
|
+
__isTeleport?: undefined;
|
|
149
|
+
__isSuspense?: undefined;
|
|
150
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
151
|
+
id: FileUpload['id'];
|
|
152
|
+
label?: FileUpload['label'];
|
|
153
|
+
helperText?: FileUpload['helperText'];
|
|
154
|
+
error?: FileUpload['error'];
|
|
155
|
+
name: FileUpload['name'];
|
|
156
|
+
accept?: FileUpload['accept'];
|
|
157
|
+
multiple?: FileUpload['multiple'];
|
|
158
|
+
modelValue?: FileUpload['modelValue'];
|
|
159
|
+
placeholder?: FileUpload['placeholder'];
|
|
160
|
+
loading?: FileUpload['loading'];
|
|
161
|
+
downloadSrc?: FileUpload['downloadSrc'];
|
|
162
|
+
downloadMenu?: import("./types").DownloadMenu[] | undefined;
|
|
163
|
+
useField?: ParentValidate['useFieldParent'];
|
|
164
|
+
rules?: ParentValidate['rules'];
|
|
165
|
+
opts?: ParentValidate['opts'];
|
|
166
|
+
}>, {
|
|
167
|
+
downloadMenu: () => string[];
|
|
168
|
+
label: string;
|
|
169
|
+
multiple: boolean;
|
|
170
|
+
loading: boolean;
|
|
171
|
+
error: null;
|
|
172
|
+
placeholder: string;
|
|
173
|
+
}>>> & {
|
|
174
|
+
"onUpdate:modelValue"?: ((value: import("./types").FileUploadModel | undefined) => any) | undefined;
|
|
175
|
+
"onMenu:preview"?: ((url: string) => any) | undefined;
|
|
176
|
+
"onMenu:download"?: ((url: string) => any) | undefined;
|
|
177
|
+
"onMenu:delete"?: ((url: string) => any) | undefined;
|
|
178
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
179
|
+
"update:modelValue": (value: import("./types").FileUploadModel | undefined) => void;
|
|
180
|
+
} & {
|
|
181
|
+
"menu:preview": (url: string) => void;
|
|
182
|
+
} & {
|
|
183
|
+
"menu:download": (url: string) => void;
|
|
184
|
+
} & {
|
|
185
|
+
"menu:delete": (url: string) => void;
|
|
186
|
+
}, string, {
|
|
187
|
+
label: string;
|
|
188
|
+
error: string | null;
|
|
189
|
+
placeholder: string;
|
|
190
|
+
loading: boolean;
|
|
191
|
+
multiple: boolean;
|
|
192
|
+
downloadMenu: FileUpload['downloadMenu'];
|
|
193
|
+
}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
|
|
194
|
+
export default _default;
|
|
195
|
+
declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
196
|
+
declare type __VLS_TypePropsToRuntimeProps<T> = {
|
|
197
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
198
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
199
|
+
} : {
|
|
200
|
+
type: import('vue').PropType<T[K]>;
|
|
201
|
+
required: true;
|
|
202
|
+
};
|
|
203
|
+
};
|
|
204
|
+
declare type __VLS_WithDefaults<P, D> = {
|
|
205
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
|
|
206
|
+
default: D[K];
|
|
207
|
+
} : P[K];
|
|
208
|
+
};
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
import type { Upload } from './types';
|
|
2
|
+
declare const _default: {
|
|
3
|
+
new (...args: any[]): {
|
|
4
|
+
$: import("vue").ComponentInternalInstance;
|
|
5
|
+
$data: {};
|
|
6
|
+
$props: Partial<{
|
|
7
|
+
loading: boolean;
|
|
8
|
+
multiple: boolean;
|
|
9
|
+
}> & Omit<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
10
|
+
id: Upload['id'];
|
|
11
|
+
modelValue?: Upload['modelValue'];
|
|
12
|
+
name: Upload['name'];
|
|
13
|
+
placeholder: Upload['placeholder'];
|
|
14
|
+
multiple?: Upload['multiple'];
|
|
15
|
+
accept?: Upload['accept'];
|
|
16
|
+
loading?: Upload['loading'];
|
|
17
|
+
fileIcon: Upload['fileIcon'];
|
|
18
|
+
hasError: Upload['hasError'];
|
|
19
|
+
}>, {
|
|
20
|
+
error: null;
|
|
21
|
+
multiple: boolean;
|
|
22
|
+
loading: boolean;
|
|
23
|
+
}>>> & {
|
|
24
|
+
"onUpdate:modelValue"?: ((value: import("./types").FileUploadModel | undefined) => any) | undefined;
|
|
25
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "loading" | "multiple">;
|
|
26
|
+
$attrs: {
|
|
27
|
+
[x: string]: unknown;
|
|
28
|
+
};
|
|
29
|
+
$refs: {
|
|
30
|
+
[x: string]: unknown;
|
|
31
|
+
};
|
|
32
|
+
$slots: Readonly<{
|
|
33
|
+
[name: string]: import("vue").Slot | undefined;
|
|
34
|
+
}>;
|
|
35
|
+
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
|
|
36
|
+
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
|
|
37
|
+
$emit: (event: "update:modelValue", value: import("./types").FileUploadModel | undefined) => void;
|
|
38
|
+
$el: any;
|
|
39
|
+
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
40
|
+
id: Upload['id'];
|
|
41
|
+
modelValue?: Upload['modelValue'];
|
|
42
|
+
name: Upload['name'];
|
|
43
|
+
placeholder: Upload['placeholder'];
|
|
44
|
+
multiple?: Upload['multiple'];
|
|
45
|
+
accept?: Upload['accept'];
|
|
46
|
+
loading?: Upload['loading'];
|
|
47
|
+
fileIcon: Upload['fileIcon'];
|
|
48
|
+
hasError: Upload['hasError'];
|
|
49
|
+
}>, {
|
|
50
|
+
error: null;
|
|
51
|
+
multiple: boolean;
|
|
52
|
+
loading: boolean;
|
|
53
|
+
}>>> & {
|
|
54
|
+
"onUpdate:modelValue"?: ((value: import("./types").FileUploadModel | undefined) => any) | undefined;
|
|
55
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
56
|
+
"update:modelValue": (value: import("./types").FileUploadModel | undefined) => void;
|
|
57
|
+
}, string, {
|
|
58
|
+
loading: boolean;
|
|
59
|
+
multiple: boolean;
|
|
60
|
+
}> & {
|
|
61
|
+
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
62
|
+
created?: ((() => void) | (() => void)[]) | undefined;
|
|
63
|
+
beforeMount?: ((() => void) | (() => void)[]) | undefined;
|
|
64
|
+
mounted?: ((() => void) | (() => void)[]) | undefined;
|
|
65
|
+
beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
|
|
66
|
+
updated?: ((() => void) | (() => void)[]) | undefined;
|
|
67
|
+
activated?: ((() => void) | (() => void)[]) | undefined;
|
|
68
|
+
deactivated?: ((() => void) | (() => void)[]) | undefined;
|
|
69
|
+
beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
|
|
70
|
+
beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
|
|
71
|
+
destroyed?: ((() => void) | (() => void)[]) | undefined;
|
|
72
|
+
unmounted?: ((() => void) | (() => void)[]) | undefined;
|
|
73
|
+
renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
74
|
+
renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
75
|
+
errorCaptured?: (((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null, info: string) => boolean | void)[]) | undefined;
|
|
76
|
+
};
|
|
77
|
+
$forceUpdate: () => void;
|
|
78
|
+
$nextTick: typeof import("vue").nextTick;
|
|
79
|
+
$watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
|
|
80
|
+
} & Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
81
|
+
id: Upload['id'];
|
|
82
|
+
modelValue?: Upload['modelValue'];
|
|
83
|
+
name: Upload['name'];
|
|
84
|
+
placeholder: Upload['placeholder'];
|
|
85
|
+
multiple?: Upload['multiple'];
|
|
86
|
+
accept?: Upload['accept'];
|
|
87
|
+
loading?: Upload['loading'];
|
|
88
|
+
fileIcon: Upload['fileIcon'];
|
|
89
|
+
hasError: Upload['hasError'];
|
|
90
|
+
}>, {
|
|
91
|
+
error: null;
|
|
92
|
+
multiple: boolean;
|
|
93
|
+
loading: boolean;
|
|
94
|
+
}>>> & {
|
|
95
|
+
"onUpdate:modelValue"?: ((value: import("./types").FileUploadModel | undefined) => any) | undefined;
|
|
96
|
+
} & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties;
|
|
97
|
+
__isFragment?: undefined;
|
|
98
|
+
__isTeleport?: undefined;
|
|
99
|
+
__isSuspense?: undefined;
|
|
100
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
101
|
+
id: Upload['id'];
|
|
102
|
+
modelValue?: Upload['modelValue'];
|
|
103
|
+
name: Upload['name'];
|
|
104
|
+
placeholder: Upload['placeholder'];
|
|
105
|
+
multiple?: Upload['multiple'];
|
|
106
|
+
accept?: Upload['accept'];
|
|
107
|
+
loading?: Upload['loading'];
|
|
108
|
+
fileIcon: Upload['fileIcon'];
|
|
109
|
+
hasError: Upload['hasError'];
|
|
110
|
+
}>, {
|
|
111
|
+
error: null;
|
|
112
|
+
multiple: boolean;
|
|
113
|
+
loading: boolean;
|
|
114
|
+
}>>> & {
|
|
115
|
+
"onUpdate:modelValue"?: ((value: import("./types").FileUploadModel | undefined) => any) | undefined;
|
|
116
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
117
|
+
"update:modelValue": (value: import("./types").FileUploadModel | undefined) => void;
|
|
118
|
+
}, string, {
|
|
119
|
+
loading: boolean;
|
|
120
|
+
multiple: boolean;
|
|
121
|
+
}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
|
|
122
|
+
export default _default;
|
|
123
|
+
declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
124
|
+
declare type __VLS_TypePropsToRuntimeProps<T> = {
|
|
125
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
126
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
127
|
+
} : {
|
|
128
|
+
type: import('vue').PropType<T[K]>;
|
|
129
|
+
required: true;
|
|
130
|
+
};
|
|
131
|
+
};
|
|
132
|
+
declare type __VLS_WithDefaults<P, D> = {
|
|
133
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
|
|
134
|
+
default: D[K];
|
|
135
|
+
} : P[K];
|
|
136
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@testing-library/jest-dom';
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { FunctionalComponent, SVGAttributes } from "vue";
|
|
2
|
+
import type { ParentValidation, ValidateFieldReturn } from "../../composables/use-validate-field/types";
|
|
3
|
+
export declare type FileUploadModel = File[] | null;
|
|
4
|
+
export declare type DownloadMenu = 'download' | 'preview' | 'delete';
|
|
5
|
+
export declare type ParentValidate = ParentValidation<FileUploadModel>;
|
|
6
|
+
export declare type ValidateReturn = ValidateFieldReturn<FileUploadModel>;
|
|
7
|
+
export interface Download {
|
|
8
|
+
id: string;
|
|
9
|
+
downloadSrc?: string;
|
|
10
|
+
downloadMenu: DownloadMenu[];
|
|
11
|
+
fileIcon: (file: string) => FunctionalComponent<SVGAttributes, {}>;
|
|
12
|
+
}
|
|
13
|
+
export interface Upload {
|
|
14
|
+
id: string;
|
|
15
|
+
name?: string;
|
|
16
|
+
modelValue?: FileUploadModel;
|
|
17
|
+
accept?: string;
|
|
18
|
+
loading?: boolean;
|
|
19
|
+
multiple?: boolean;
|
|
20
|
+
placeholder?: string;
|
|
21
|
+
hasError?: boolean;
|
|
22
|
+
fileIcon: (file: string) => FunctionalComponent<SVGAttributes, {}>;
|
|
23
|
+
}
|
|
24
|
+
export interface FileUpload extends Omit<Upload, 'fileIcon' | 'hasError'>, Omit<Download, 'fileIcon'> {
|
|
25
|
+
id: string;
|
|
26
|
+
label?: string;
|
|
27
|
+
helperText?: string;
|
|
28
|
+
error?: string | null;
|
|
29
|
+
}
|
|
30
|
+
export interface VeeValidateIntegration {
|
|
31
|
+
useField?: ParentValidate['useFieldParent'];
|
|
32
|
+
rules?: ParentValidate['rules'];
|
|
33
|
+
opts?: ParentValidate['opts'];
|
|
34
|
+
}
|
|
@@ -99,8 +99,10 @@ declare const _default: {
|
|
|
99
99
|
}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
100
100
|
$slots: {
|
|
101
101
|
'icon-left': (_: {}) => any;
|
|
102
|
+
'icon:left': (_: {}) => any;
|
|
102
103
|
default: (_: {}) => any;
|
|
103
104
|
'icon-right': (_: {}) => any;
|
|
105
|
+
'icon:right': (_: {}) => any;
|
|
104
106
|
};
|
|
105
107
|
});
|
|
106
108
|
export default _default;
|
|
@@ -12,7 +12,7 @@ declare const _default: {
|
|
|
12
12
|
text?: string | undefined;
|
|
13
13
|
variant?: "fill" | "outline" | undefined;
|
|
14
14
|
size?: "small" | "medium" | undefined;
|
|
15
|
-
type?: "
|
|
15
|
+
type?: "neutral" | "positive" | "warning" | "negative" | "informative" | undefined;
|
|
16
16
|
}>, {
|
|
17
17
|
text: string;
|
|
18
18
|
variant: string;
|
|
@@ -37,7 +37,7 @@ declare const _default: {
|
|
|
37
37
|
text?: string | undefined;
|
|
38
38
|
variant?: "fill" | "outline" | undefined;
|
|
39
39
|
size?: "small" | "medium" | undefined;
|
|
40
|
-
type?: "
|
|
40
|
+
type?: "neutral" | "positive" | "warning" | "negative" | "informative" | undefined;
|
|
41
41
|
}>, {
|
|
42
42
|
text: string;
|
|
43
43
|
variant: string;
|
|
@@ -73,7 +73,7 @@ declare const _default: {
|
|
|
73
73
|
text?: string | undefined;
|
|
74
74
|
variant?: "fill" | "outline" | undefined;
|
|
75
75
|
size?: "small" | "medium" | undefined;
|
|
76
|
-
type?: "
|
|
76
|
+
type?: "neutral" | "positive" | "warning" | "negative" | "informative" | undefined;
|
|
77
77
|
}>, {
|
|
78
78
|
text: string;
|
|
79
79
|
variant: string;
|
|
@@ -88,7 +88,7 @@ declare const _default: {
|
|
|
88
88
|
text?: string | undefined;
|
|
89
89
|
variant?: "fill" | "outline" | undefined;
|
|
90
90
|
size?: "small" | "medium" | undefined;
|
|
91
|
-
type?: "
|
|
91
|
+
type?: "neutral" | "positive" | "warning" | "negative" | "informative" | undefined;
|
|
92
92
|
}>, {
|
|
93
93
|
text: string;
|
|
94
94
|
variant: string;
|
|
@@ -4,11 +4,11 @@ declare const _default: {
|
|
|
4
4
|
$data: {};
|
|
5
5
|
$props: Partial<{
|
|
6
6
|
label: string;
|
|
7
|
-
position: ("bottom" | "top") | ("left" | "right");
|
|
7
|
+
position: ("center" | "bottom" | "top") | ("left" | "right");
|
|
8
8
|
}> & Omit<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
9
9
|
id: string;
|
|
10
10
|
label?: string | undefined;
|
|
11
|
-
position?: (("bottom" | "top") | ("left" | "right")) | undefined;
|
|
11
|
+
position?: (("center" | "bottom" | "top") | ("left" | "right")) | undefined;
|
|
12
12
|
}>, {
|
|
13
13
|
label: string;
|
|
14
14
|
position: string;
|
|
@@ -29,13 +29,13 @@ declare const _default: {
|
|
|
29
29
|
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
30
30
|
id: string;
|
|
31
31
|
label?: string | undefined;
|
|
32
|
-
position?: (("bottom" | "top") | ("left" | "right")) | undefined;
|
|
32
|
+
position?: (("center" | "bottom" | "top") | ("left" | "right")) | undefined;
|
|
33
33
|
}>, {
|
|
34
34
|
label: string;
|
|
35
35
|
position: string;
|
|
36
36
|
}>>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
37
37
|
label: string;
|
|
38
|
-
position: ("bottom" | "top") | ("left" | "right");
|
|
38
|
+
position: ("center" | "bottom" | "top") | ("left" | "right");
|
|
39
39
|
}> & {
|
|
40
40
|
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
41
41
|
created?: ((() => void) | (() => void)[]) | undefined;
|
|
@@ -59,7 +59,7 @@ declare const _default: {
|
|
|
59
59
|
} & Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
60
60
|
id: string;
|
|
61
61
|
label?: string | undefined;
|
|
62
|
-
position?: (("bottom" | "top") | ("left" | "right")) | undefined;
|
|
62
|
+
position?: (("center" | "bottom" | "top") | ("left" | "right")) | undefined;
|
|
63
63
|
}>, {
|
|
64
64
|
label: string;
|
|
65
65
|
position: string;
|
|
@@ -70,13 +70,13 @@ declare const _default: {
|
|
|
70
70
|
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
71
71
|
id: string;
|
|
72
72
|
label?: string | undefined;
|
|
73
|
-
position?: (("bottom" | "top") | ("left" | "right")) | undefined;
|
|
73
|
+
position?: (("center" | "bottom" | "top") | ("left" | "right")) | undefined;
|
|
74
74
|
}>, {
|
|
75
75
|
label: string;
|
|
76
76
|
position: string;
|
|
77
77
|
}>>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
78
78
|
label: string;
|
|
79
|
-
position: ("bottom" | "top") | ("left" | "right");
|
|
79
|
+
position: ("center" | "bottom" | "top") | ("left" | "right");
|
|
80
80
|
}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
81
81
|
$slots: {
|
|
82
82
|
trigger: (_: {
|