@ahmadmubarak98/namozaj 1.16.5 → 1.16.7
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/main.d.ts +11 -2
- package/dist/namozaj.js +14469 -14329
- package/package.json +1 -1
package/dist/main.d.ts
CHANGED
|
@@ -260,6 +260,14 @@ export declare type FileFieldConfig = BaseFieldConfig & {
|
|
|
260
260
|
loadingText?: string;
|
|
261
261
|
dragText?: string;
|
|
262
262
|
dropText?: string;
|
|
263
|
+
hintText?: string;
|
|
264
|
+
hideHint?: boolean;
|
|
265
|
+
hintUpToText?: string;
|
|
266
|
+
hintMaxText?: string;
|
|
267
|
+
hintFileWord?: string;
|
|
268
|
+
hintFilesWord?: string;
|
|
269
|
+
hintExtensionsText?: string;
|
|
270
|
+
maxFilesExceededMessage?: string | ((maxFiles: number) => string);
|
|
263
271
|
enablePreview?: boolean;
|
|
264
272
|
avatarIcon?: string;
|
|
265
273
|
showLabelInDropzone?: boolean;
|
|
@@ -271,9 +279,10 @@ export declare type FileFieldConfig = BaseFieldConfig & {
|
|
|
271
279
|
container?: SxProps<Theme> | undefined;
|
|
272
280
|
};
|
|
273
281
|
};
|
|
274
|
-
previewFiles?: FileFieldFilePreview[] | ((data: any, locale: string) => FileFieldFilePreview[]);
|
|
282
|
+
previewFiles?: FileFieldFilePreview[] | ((data: any, locale: string) => FileFieldFilePreview[] | Promise<FileFieldFilePreview[]>);
|
|
275
283
|
uploadCb?: (files: File[]) => Promise<string | string[]>;
|
|
276
284
|
onAfterPick?: (files: File[], formMethods: RHFFormMethods, uploadFiles: (files: File[]) => void | Promise<void>) => void | Promise<void>;
|
|
285
|
+
onDelete?: (file: FileFieldFilePreview, index: number, formMethods: RHFFormMethods) => void | Promise<void>;
|
|
277
286
|
uploadApi?: {
|
|
278
287
|
url: string;
|
|
279
288
|
method?: "GET" | "POST" | "PUT" | "DELETE";
|
|
@@ -295,7 +304,7 @@ export declare type FileFieldFilePreview = {
|
|
|
295
304
|
onPreviewClick?: (file: FileFieldFilePreview, formMethods: RHFFormMethods) => void;
|
|
296
305
|
};
|
|
297
306
|
|
|
298
|
-
export declare type FileFieldVariant = "default" | "dropzone" | "avatar";
|
|
307
|
+
export declare type FileFieldVariant = "default" | "button" | "dropzone" | "avatar";
|
|
299
308
|
|
|
300
309
|
export declare type FullRowConfig = {
|
|
301
310
|
xs?: boolean;
|