@ahmadmubarak98/namozaj 1.6.3 → 1.6.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 +23 -10
- package/dist/namozaj.js +644 -571
- package/package.json +1 -1
package/dist/main.d.ts
CHANGED
|
@@ -21,6 +21,7 @@ export declare type BaseFieldConfig = {
|
|
|
21
21
|
helperText?: HelperTextConfig;
|
|
22
22
|
validations?: ValidationRule[];
|
|
23
23
|
grid?: GridColumnConfig;
|
|
24
|
+
fullRow?: boolean;
|
|
24
25
|
className?: string;
|
|
25
26
|
disabled?: boolean;
|
|
26
27
|
visibilityRules?: VisibilityRule[];
|
|
@@ -93,15 +94,6 @@ export declare type DateMinMaxValue = {
|
|
|
93
94
|
errorMessage?: string;
|
|
94
95
|
} | null);
|
|
95
96
|
|
|
96
|
-
export declare interface DefaultSubmitButtonProps {
|
|
97
|
-
label?: string;
|
|
98
|
-
size?: "default" | "xs" | "sm" | "md" | "lg" | "xl";
|
|
99
|
-
className?: string;
|
|
100
|
-
buttonType?: "button" | "submit" | "reset";
|
|
101
|
-
disabled?: boolean;
|
|
102
|
-
hidden?: boolean;
|
|
103
|
-
}
|
|
104
|
-
|
|
105
97
|
export declare type DynamicFormField = TextFieldConfig | NumberFieldConfig | SliderFieldConfig | PhoneFieldConfig | GroupFieldConfig | SelectFieldConfig | MultiSelectFieldConfig | CheckBoxGroupFieldConfig | RadioGroupFieldConfig | SwitchFieldConfig | CheckboxFieldConfig | DateFieldConfig | FileFieldConfig | ComputedFieldConfig | SectionFieldConfig | ButtonFieldConfig | RepeaterFieldConfig | FieldArrayFieldConfig;
|
|
106
98
|
|
|
107
99
|
export declare interface DynamicFormProps {
|
|
@@ -109,12 +101,24 @@ export declare interface DynamicFormProps {
|
|
|
109
101
|
localization?: NamozajLocalizationOptions;
|
|
110
102
|
emptyFormMessage?: string;
|
|
111
103
|
defaultValues?: Record<string, FieldValueType>;
|
|
112
|
-
|
|
104
|
+
submitButtonProps?: SubmitButtonProps;
|
|
105
|
+
scrollableWithFixedFooter?: boolean;
|
|
113
106
|
loading?: boolean;
|
|
114
107
|
isNested?: boolean;
|
|
115
108
|
validationMode?: ValidationMode;
|
|
116
109
|
enableRtl?: boolean;
|
|
117
110
|
error?: any;
|
|
111
|
+
slots?: {
|
|
112
|
+
formBody?: {
|
|
113
|
+
className?: string;
|
|
114
|
+
style?: React.CSSProperties;
|
|
115
|
+
};
|
|
116
|
+
formFooter?: {
|
|
117
|
+
className?: string;
|
|
118
|
+
style?: React.CSSProperties;
|
|
119
|
+
renderActions?: ((submitBtnNode: React.ReactNode, resetBtnNode: React.ReactNode, formMethods: UseFormReturn<FieldValues, any, FieldValues>) => React.ReactNode);
|
|
120
|
+
};
|
|
121
|
+
};
|
|
118
122
|
onSubmit?: (data: any) => void;
|
|
119
123
|
onChange?: (data: any) => void;
|
|
120
124
|
}
|
|
@@ -405,6 +409,15 @@ export declare type SliderFieldConfig = BaseFieldConfig & {
|
|
|
405
409
|
};
|
|
406
410
|
};
|
|
407
411
|
|
|
412
|
+
export declare interface SubmitButtonProps {
|
|
413
|
+
label?: string;
|
|
414
|
+
size?: "default" | "xs" | "sm" | "md" | "lg" | "xl";
|
|
415
|
+
className?: string;
|
|
416
|
+
buttonType?: "button" | "submit" | "reset";
|
|
417
|
+
disabled?: boolean;
|
|
418
|
+
hidden?: boolean;
|
|
419
|
+
}
|
|
420
|
+
|
|
408
421
|
export declare type SwitchFieldConfig = BaseFieldConfig & {
|
|
409
422
|
type: "switch";
|
|
410
423
|
meta: BaseFieldConfig["meta"] & {
|