@finema/core 1.4.27 → 1.4.29
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/module.json +1 -1
- package/dist/module.mjs +1 -1
- package/dist/runtime/components/Form/InputUploadFileClassicAuto/types.d.ts +2 -2
- package/dist/runtime/composables/useUpload.d.ts +1 -1
- package/dist/runtime/composables/useUpload.mjs +1 -1
- package/dist/runtime/utils/lodash.d.ts +1 -1
- package/package.json +1 -1
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -4,10 +4,10 @@ export interface IUploadFileProps extends IFieldProps {
|
|
|
4
4
|
requestOptions: Omit<AxiosRequestConfig, 'baseURL'> & {
|
|
5
5
|
baseURL: string;
|
|
6
6
|
};
|
|
7
|
-
uploadPathURL
|
|
7
|
+
uploadPathURL?: string;
|
|
8
8
|
selectFileLabel?: string;
|
|
9
9
|
accept?: string[] | string;
|
|
10
10
|
maxSize?: number;
|
|
11
|
-
imagePreviewURL?:
|
|
11
|
+
imagePreviewURL?: string;
|
|
12
12
|
}
|
|
13
13
|
export type IUploadFileField = IFormFieldBase<INPUT_TYPES.UPLOAD_FILE_CLASSIC_AUTO, IUploadFileProps, never>;
|
|
@@ -10,6 +10,6 @@ export interface IUploadRequest {
|
|
|
10
10
|
requestOptions: Omit<AxiosRequestConfig, 'baseURL'> & {
|
|
11
11
|
baseURL: string;
|
|
12
12
|
};
|
|
13
|
-
pathURL
|
|
13
|
+
pathURL?: string;
|
|
14
14
|
}
|
|
15
15
|
export declare const useUploadLoader: (request: IUploadRequest) => import("../helpers/apiObjectHelper").IUseObjectLoader<IUploadData, any, Record<string, any>>;
|
|
@@ -2,7 +2,7 @@ import { useObjectLoader } from "./loaderObject.mjs";
|
|
|
2
2
|
export const useUploadLoader = (request) => {
|
|
3
3
|
return useObjectLoader({
|
|
4
4
|
method: "post",
|
|
5
|
-
url: request.pathURL,
|
|
5
|
+
url: request.pathURL || "",
|
|
6
6
|
getRequestOptions: (_data, opts) => ({
|
|
7
7
|
...request.requestOptions,
|
|
8
8
|
headers: {
|
|
@@ -73,7 +73,7 @@ export declare const _isEmpty: {
|
|
|
73
73
|
__trapAny: any;
|
|
74
74
|
}>(value?: T | undefined): boolean;
|
|
75
75
|
(value: string): value is "";
|
|
76
|
-
(value:
|
|
76
|
+
(value: import("lodash").List<any> | Map<any, any> | Set<any> | null | undefined): boolean;
|
|
77
77
|
(value: object): boolean;
|
|
78
78
|
<T_1 extends object>(value: T_1 | null | undefined): value is import("lodash").EmptyObjectOf<T_1> | null | undefined;
|
|
79
79
|
(value?: any): boolean;
|