UNPKG

barneo-file-service

Version:

Комплексная библиотека Vue 3 для работы с файлами в приложениях Barneo. Предоставляет мощную функциональность для загрузки, управления и обработки файлов с валидацией, отслеживанием прогресса и поддержкой localStorage.

97 lines 3.75 kB
import type { FileUploaderProps, FileUploaderSlots } from "../types/components/FileUploaderTypes"; import type { FileUploadResponse } from "../types/UploadTypes"; declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<FileUploaderProps>, { title: string; buttonText: string; buttonSize: string; buttonVariant: string; buttonType: string; buttonIcon: undefined; autoCloseOnSuccess: boolean; showCancelButton: boolean; cancelButtonText: string; modalMaxWidth: string; modalPosition: string; closeOnOverlayClick: boolean; showAnimations: boolean; uploadedFiles: () => never[]; }>>, { clearUploadedFiles: () => void; openModal: () => void; closeModal: () => void; uploadSelectedFiles: () => Promise<void>; clearFiles: () => void; clearErrors: () => void; clearCompletedUploads: () => void; retryFailedUploads: () => Promise<void>; }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, { "upload-success": (files: FileUploadResponse[]) => void; "upload-complete": (allFiles: FileUploadResponse[], failedFiles: string[]) => void; "upload-error": (error: Error) => void; "files-selected": (files: File[]) => void; "modal-open": () => void; "modal-close": () => void; "files-cleared": () => void; }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<FileUploaderProps>, { title: string; buttonText: string; buttonSize: string; buttonVariant: string; buttonType: string; buttonIcon: undefined; autoCloseOnSuccess: boolean; showCancelButton: boolean; cancelButtonText: string; modalMaxWidth: string; modalPosition: string; closeOnOverlayClick: boolean; showAnimations: boolean; uploadedFiles: () => never[]; }>>> & Readonly<{ "onUpload-success"?: ((files: FileUploadResponse[]) => any) | undefined; "onUpload-complete"?: ((allFiles: FileUploadResponse[], failedFiles: string[]) => any) | undefined; "onUpload-error"?: ((error: Error) => any) | undefined; "onFiles-selected"?: ((files: File[]) => any) | undefined; "onModal-open"?: (() => any) | undefined; "onModal-close"?: (() => any) | undefined; "onFiles-cleared"?: (() => any) | undefined; }>, { title: string; buttonText: string; buttonSize: "small" | "medium" | "large"; buttonVariant: "primary" | "secondary" | "outline" | "ghost"; buttonType: "default" | "input"; buttonIcon: string; autoCloseOnSuccess: boolean; showCancelButton: boolean; cancelButtonText: string; modalMaxWidth: string; modalPosition: "center" | "top" | "bottom"; closeOnOverlayClick: boolean; showAnimations: boolean; uploadedFiles: FileUploadResponse[]; }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, Readonly<FileUploaderSlots> & FileUploaderSlots>; export default _default; type __VLS_NonUndefinedable<T> = T extends undefined ? never : T; type __VLS_TypePropsToRuntimeProps<T> = { [K in keyof T]-?: {} extends Pick<T, K> ? { type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>; } : { type: import('vue').PropType<T[K]>; required: true; }; }; type __VLS_WithDefaults<P, D> = { [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & { default: D[K]; }> : P[K]; }; type __VLS_Prettify<T> = { [K in keyof T]: T[K]; } & {}; type __VLS_WithTemplateSlots<T, S> = T & { new (): { $slots: S; }; }; //# sourceMappingURL=FileUploader.vue.d.ts.map