@ahmadmubarak98/namozaj 1.5.3 → 1.5.5
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 +9 -4
- package/dist/namozaj.js +5704 -5678
- package/package.json +1 -1
package/dist/main.d.ts
CHANGED
|
@@ -36,6 +36,7 @@ export declare type BaseFormFieldProps = {
|
|
|
36
36
|
onChange: ((value: any) => void);
|
|
37
37
|
error?: boolean;
|
|
38
38
|
config: DynamicFormField;
|
|
39
|
+
locale?: string | undefined;
|
|
39
40
|
};
|
|
40
41
|
|
|
41
42
|
export declare type BasePlacement = "top" | "bottom" | "right" | "left";
|
|
@@ -209,10 +210,7 @@ export declare type FileFieldConfig = BaseFieldConfig & {
|
|
|
209
210
|
dropText?: string;
|
|
210
211
|
enablePreview?: boolean;
|
|
211
212
|
avatarIcon?: string;
|
|
212
|
-
previewFiles?:
|
|
213
|
-
url: string;
|
|
214
|
-
name: string;
|
|
215
|
-
}[];
|
|
213
|
+
previewFiles?: FileFieldFilePreview[] | ((data: any, locale: string) => FileFieldFilePreview[]);
|
|
216
214
|
uploadCb?: (files: File[]) => Promise<string>;
|
|
217
215
|
uploadApi?: {
|
|
218
216
|
url: string;
|
|
@@ -226,6 +224,13 @@ export declare type FileFieldConfig = BaseFieldConfig & {
|
|
|
226
224
|
};
|
|
227
225
|
};
|
|
228
226
|
|
|
227
|
+
export declare type FileFieldFilePreview = {
|
|
228
|
+
url: string;
|
|
229
|
+
name: string;
|
|
230
|
+
size?: number;
|
|
231
|
+
type?: string;
|
|
232
|
+
};
|
|
233
|
+
|
|
229
234
|
export declare type FileFieldVariant = "default" | "dropzone" | "avatar";
|
|
230
235
|
|
|
231
236
|
export declare type GridColumnConfig = {
|