@mantine-vue/dropzone 1.1.3 → 1.1.4
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/lib/Dropzone.d.ts +74 -1
- package/package.json +3 -3
package/lib/Dropzone.d.ts
CHANGED
|
@@ -1109,7 +1109,80 @@ export declare const Dropzone: {
|
|
|
1109
1109
|
default: boolean;
|
|
1110
1110
|
};
|
|
1111
1111
|
}>> & Readonly<{}>, "radius" | "name" | "variant" | "classNames" | "styles" | "disabled" | "multiple" | "vars" | "unstyled" | "loading" | "loaderProps" | "accept" | "inputProps" | "autoFocus" | "maxSize" | "maxFiles" | "validator" | "activateOnClick" | "activateOnDrag" | "dragEventsBubbling" | "activateOnKeyboard" | "useFsAccessApi" | "preventDropOnDocument" | "rejectColor" | "acceptColor" | "enablePointerEvents" | "getFilesFromEvent" | "openRef" | "onDropAny" | "onReject" | "onDragEnter" | "onDragLeave" | "onDragOver" | "onFileDialogCancel" | "onFileDialogOpen"> & {} & {} & import("vue").ComponentCustomProperties & {} & {
|
|
1112
|
-
$props:
|
|
1112
|
+
$props: Partial<{
|
|
1113
|
+
radius: string | number;
|
|
1114
|
+
name: string;
|
|
1115
|
+
variant: DropzoneVariant;
|
|
1116
|
+
classNames: Function | Record<string, any>;
|
|
1117
|
+
styles: Function | Record<string, any>;
|
|
1118
|
+
disabled: boolean;
|
|
1119
|
+
multiple: boolean;
|
|
1120
|
+
vars: Function | Record<string, any>;
|
|
1121
|
+
unstyled: boolean;
|
|
1122
|
+
loading: boolean;
|
|
1123
|
+
loaderProps: Record<string, any>;
|
|
1124
|
+
accept: string[] | Accept;
|
|
1125
|
+
inputProps: Record<string, any>;
|
|
1126
|
+
autoFocus: boolean;
|
|
1127
|
+
maxSize: number;
|
|
1128
|
+
maxFiles: number;
|
|
1129
|
+
validator: (file: FileWithPath) => FileError | FileError[] | null;
|
|
1130
|
+
activateOnClick: boolean;
|
|
1131
|
+
activateOnDrag: boolean;
|
|
1132
|
+
dragEventsBubbling: boolean;
|
|
1133
|
+
activateOnKeyboard: boolean;
|
|
1134
|
+
useFsAccessApi: boolean;
|
|
1135
|
+
preventDropOnDocument: boolean;
|
|
1136
|
+
rejectColor: string;
|
|
1137
|
+
acceptColor: string;
|
|
1138
|
+
enablePointerEvents: boolean;
|
|
1139
|
+
getFilesFromEvent: (event: DropEvent) => Promise<FileWithPath[]>;
|
|
1140
|
+
openRef: any;
|
|
1141
|
+
onDropAny: (files: FileWithPath[], fileRejections: FileRejection[]) => void;
|
|
1142
|
+
onReject: (fileRejections: FileRejection[]) => void;
|
|
1143
|
+
onDragEnter: (event: DragEvent) => void;
|
|
1144
|
+
onDragLeave: (event: DragEvent) => void;
|
|
1145
|
+
onDragOver: (event: DragEvent) => void;
|
|
1146
|
+
onFileDialogCancel: () => void;
|
|
1147
|
+
onFileDialogOpen: () => void;
|
|
1148
|
+
}> & Omit<{
|
|
1149
|
+
readonly onDrop: (files: FileWithPath[]) => void;
|
|
1150
|
+
readonly disabled: boolean;
|
|
1151
|
+
readonly unstyled: boolean;
|
|
1152
|
+
readonly loading: boolean;
|
|
1153
|
+
readonly autoFocus: boolean;
|
|
1154
|
+
readonly enablePointerEvents: boolean;
|
|
1155
|
+
readonly radius?: string | number | undefined;
|
|
1156
|
+
readonly name?: string | undefined;
|
|
1157
|
+
readonly variant?: DropzoneVariant | undefined;
|
|
1158
|
+
readonly classNames?: Function | Record<string, any> | undefined;
|
|
1159
|
+
readonly styles?: Function | Record<string, any> | undefined;
|
|
1160
|
+
readonly multiple?: boolean | undefined;
|
|
1161
|
+
readonly vars?: Function | Record<string, any> | undefined;
|
|
1162
|
+
readonly loaderProps?: Record<string, any> | undefined;
|
|
1163
|
+
readonly accept?: string[] | Accept | undefined;
|
|
1164
|
+
readonly inputProps?: Record<string, any> | undefined;
|
|
1165
|
+
readonly maxSize?: number | undefined;
|
|
1166
|
+
readonly maxFiles?: number | undefined;
|
|
1167
|
+
readonly validator?: ((file: FileWithPath) => FileError | FileError[] | null) | undefined;
|
|
1168
|
+
readonly activateOnClick?: boolean | undefined;
|
|
1169
|
+
readonly activateOnDrag?: boolean | undefined;
|
|
1170
|
+
readonly dragEventsBubbling?: boolean | undefined;
|
|
1171
|
+
readonly activateOnKeyboard?: boolean | undefined;
|
|
1172
|
+
readonly useFsAccessApi?: boolean | undefined;
|
|
1173
|
+
readonly preventDropOnDocument?: boolean | undefined;
|
|
1174
|
+
readonly rejectColor?: string | undefined;
|
|
1175
|
+
readonly acceptColor?: string | undefined;
|
|
1176
|
+
readonly getFilesFromEvent?: ((event: DropEvent) => Promise<FileWithPath[]>) | undefined;
|
|
1177
|
+
readonly openRef?: any;
|
|
1178
|
+
readonly onDropAny?: ((files: FileWithPath[], fileRejections: FileRejection[]) => void) | undefined;
|
|
1179
|
+
readonly onReject?: ((fileRejections: FileRejection[]) => void) | undefined;
|
|
1180
|
+
readonly onDragEnter?: ((event: DragEvent) => void) | undefined;
|
|
1181
|
+
readonly onDragLeave?: ((event: DragEvent) => void) | undefined;
|
|
1182
|
+
readonly onDragOver?: ((event: DragEvent) => void) | undefined;
|
|
1183
|
+
readonly onFileDialogCancel?: (() => void) | undefined;
|
|
1184
|
+
readonly onFileDialogOpen?: (() => void) | undefined;
|
|
1185
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "radius" | "name" | "variant" | "classNames" | "styles" | "disabled" | "multiple" | "vars" | "unstyled" | "loading" | "loaderProps" | "accept" | "inputProps" | "autoFocus" | "maxSize" | "maxFiles" | "validator" | "activateOnClick" | "activateOnDrag" | "dragEventsBubbling" | "activateOnKeyboard" | "useFsAccessApi" | "preventDropOnDocument" | "rejectColor" | "acceptColor" | "enablePointerEvents" | "getFilesFromEvent" | "openRef" | "onDropAny" | "onReject" | "onDragEnter" | "onDragLeave" | "onDragOver" | "onFileDialogCancel" | "onFileDialogOpen"> & Omit<import("@mantine-vue/core").BoxProps, "onDrop" | keyof import("vue").VNodeProps | keyof import("vue").AllowedComponentProps | ("radius" | "name" | "variant" | "classNames" | "styles" | "disabled" | "multiple" | "vars" | "unstyled" | "loading" | "loaderProps" | "accept" | "inputProps" | "autoFocus" | "maxSize" | "maxFiles" | "validator" | "activateOnClick" | "activateOnDrag" | "dragEventsBubbling" | "activateOnKeyboard" | "useFsAccessApi" | "preventDropOnDocument" | "rejectColor" | "acceptColor" | "enablePointerEvents" | "getFilesFromEvent" | "openRef" | "onDropAny" | "onReject" | "onDragEnter" | "onDragLeave" | "onDragOver" | "onFileDialogCancel" | "onFileDialogOpen")>;
|
|
1113
1186
|
}) & {
|
|
1114
1187
|
classes: Record<string, string>;
|
|
1115
1188
|
varsResolver: (theme: import("@mantine-vue/core").MantineTheme, props: any, ctx: Record<string, any>) => Record<string, Record<string, string | undefined>>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mantine-vue/dropzone",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.4",
|
|
4
4
|
"description": "Vue file drag & drop zone component equivalent to @mantine/dropzone",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"files": [
|
|
@@ -37,8 +37,8 @@
|
|
|
37
37
|
"vue": "^3.5.0"
|
|
38
38
|
},
|
|
39
39
|
"peerDependencies": {
|
|
40
|
-
"@mantine-vue/core": "1.1.
|
|
41
|
-
"@mantine-vue/hooks": "1.1.
|
|
40
|
+
"@mantine-vue/core": "1.1.4",
|
|
41
|
+
"@mantine-vue/hooks": "1.1.4",
|
|
42
42
|
"vue": "^3.5.0"
|
|
43
43
|
}
|
|
44
44
|
}
|