@ahmadmubarak98/namozaj 1.16.6 → 1.16.8

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.
Files changed (3) hide show
  1. package/dist/main.d.ts +4 -3
  2. package/dist/namozaj.js +11947 -11961
  3. package/package.json +1 -1
package/dist/main.d.ts CHANGED
@@ -279,9 +279,10 @@ export declare type FileFieldConfig = BaseFieldConfig & {
279
279
  container?: SxProps<Theme> | undefined;
280
280
  };
281
281
  };
282
- previewFiles?: FileFieldFilePreview[] | ((data: any, locale: string) => FileFieldFilePreview[]);
282
+ previewFiles?: FileFieldFilePreview[] | ((data: any, locale: string) => FileFieldFilePreview[] | Promise<FileFieldFilePreview[]>);
283
283
  uploadCb?: (files: File[]) => Promise<string | string[]>;
284
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>;
285
286
  uploadApi?: {
286
287
  url: string;
287
288
  method?: "GET" | "POST" | "PUT" | "DELETE";
@@ -585,8 +586,8 @@ export declare type RepeaterFieldConfig = BaseFieldConfig & {
585
586
  emptyMessage?: string;
586
587
  defaultValues?: Record<string, FieldValueType>[];
587
588
  onBeforeAdd?: (data: any, formMethods: any) => void | Promise<void>;
588
- onBeforeEdit?: (data: any, formMethods: any) => void | Promise<void>;
589
- onBeforeRemove?: (data: any, formMethods: any) => void | Promise<void>;
589
+ onBeforeEdit?: (data: any, formMethods: any, index: number) => void | Promise<void>;
590
+ onBeforeRemove?: (data: any, formMethods: any, index: number) => void | Promise<void>;
590
591
  };
591
592
  };
592
593