@fovestta2/web-react 1.2.1 → 1.2.3
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/components/AddUpdateForm.d.ts +9 -0
- package/dist/components/AddUpdateForm.js +458 -89
- package/dist/components/FvDropdown.js +17 -16
- package/dist/components/FvEmailField.js +12 -14
- package/dist/components/FvEntryField.js +12 -17
- package/dist/components/FvMasterScreen.d.ts +78 -0
- package/dist/components/FvMasterScreen.js +317 -0
- package/dist/components/FvNumberField.js +12 -16
- package/dist/components/FvPasswordField.js +12 -16
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/package.json +3 -3
|
@@ -42,6 +42,10 @@ export interface FormSection {
|
|
|
42
42
|
fields: FormColumn[];
|
|
43
43
|
isRepeatable?: boolean;
|
|
44
44
|
sectionKey?: string;
|
|
45
|
+
/** Section-specific columns per row. Overrides the form-level config. */
|
|
46
|
+
maxColsPerRow?: number;
|
|
47
|
+
/** Custom CSS class for the section wrapper */
|
|
48
|
+
className?: string;
|
|
45
49
|
}
|
|
46
50
|
export interface FormConfig {
|
|
47
51
|
sections: FormSection[];
|
|
@@ -52,13 +56,18 @@ export interface FormConfig {
|
|
|
52
56
|
onCancel: () => void;
|
|
53
57
|
cancelLabel?: string;
|
|
54
58
|
formTitle?: string;
|
|
59
|
+
/** Default columns per row for all sections */
|
|
55
60
|
maxColsPerRow?: number;
|
|
56
61
|
disableSubmit?: boolean;
|
|
57
62
|
disableCancel?: boolean;
|
|
58
63
|
hideSubmit?: boolean;
|
|
59
64
|
hideCancel?: boolean;
|
|
65
|
+
/** Custom CSS class for the form element */
|
|
66
|
+
className?: string;
|
|
60
67
|
}
|
|
61
68
|
export interface AddUpdateFormProps {
|
|
62
69
|
config: FormConfig;
|
|
70
|
+
/** When true, wraps the form inside a centered modal overlay */
|
|
71
|
+
asModal?: boolean;
|
|
63
72
|
}
|
|
64
73
|
export declare const AddUpdateForm: React.FC<AddUpdateFormProps>;
|