@syncfusion/ej2-react-form-renderer 0.1.0-beta → 0.1.2-beta
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/README.md +3 -10
- package/package.json +1 -1
- package/src/CheckboxGroup.js +3 -2
- package/src/ConditionalRuleEngine.d.ts +295 -0
- package/src/ConditionalRuleEngine.js +566 -0
- package/src/DataGridComponent.d.ts +0 -1
- package/src/DataGridComponent.js +9 -22
- package/src/FormRenderer.d.ts +28 -7
- package/src/FormRenderer.js +342 -202
- package/src/MinMaxRuleEngine.d.ts +95 -0
- package/src/MinMaxRuleEngine.js +361 -0
- package/src/expressions/DependencyTracker.d.ts +30 -0
- package/src/expressions/DependencyTracker.js +128 -0
- package/src/expressions/ExpressionEngine.d.ts +81 -0
- package/src/expressions/ExpressionEngine.js +503 -0
- package/src/expressions/ExpressionParser.d.ts +39 -0
- package/src/expressions/ExpressionParser.js +270 -0
- package/src/json-converter.d.ts +32 -31
- package/src/json-converter.js +313 -284
- package/src/parser.js +22 -18
- package/src/renderFormField.d.ts +3 -1
- package/src/renderFormField.js +70 -46
- package/src/types/FormSchema.d.ts +36 -2
- package/src/utils.js +348 -0
- package/styles/form-renderer.base.css +49 -23
package/src/FormRenderer.d.ts
CHANGED
|
@@ -38,24 +38,45 @@ export interface FormRendererProps extends Omit<React.HTMLAttributes<HTMLDivElem
|
|
|
38
38
|
* - FormSchema object (components converted to DataSchema)
|
|
39
39
|
* - DataSchema object (used directly)
|
|
40
40
|
*/
|
|
41
|
-
|
|
41
|
+
schema?: DataSchema | string | FormSchema | any;
|
|
42
42
|
/**
|
|
43
|
-
*
|
|
44
|
-
* -
|
|
45
|
-
* -
|
|
43
|
+
* Specifies the locale/language for the form component.
|
|
44
|
+
* Supports locale-specific formatting and translations.
|
|
45
|
+
* @default 'en-US'
|
|
46
|
+
*/
|
|
47
|
+
locale?: string;
|
|
48
|
+
/**
|
|
49
|
+
* Callback invoked when the form is submitted.
|
|
50
|
+
* Receives form data and validation status.
|
|
51
|
+
* @param args - Object containing form data and isValid flag
|
|
46
52
|
*/
|
|
47
|
-
uiSchema?: UISchema | string;
|
|
48
53
|
onSubmit?: (args: SubmitEventArgs) => void;
|
|
54
|
+
/**
|
|
55
|
+
* Callback invoked when any form field value changes.
|
|
56
|
+
* Fired on user input for tracked fields.
|
|
57
|
+
* @param args - Object containing changed field name and new value
|
|
58
|
+
*/
|
|
49
59
|
onChange?: (args: ChangeEventArgs) => void;
|
|
60
|
+
/**
|
|
61
|
+
* Callback invoked when a button in the form is clicked.
|
|
62
|
+
* Applies to all button types (button, submit, splitButton).
|
|
63
|
+
* @param args - Object containing button click event details
|
|
64
|
+
*/
|
|
50
65
|
onButtonClick?: (args: ButtonClickEventArgs) => void;
|
|
66
|
+
/**
|
|
67
|
+
* CSS class names to apply to the root form container element.
|
|
68
|
+
* Supports space-separated multiple classes.
|
|
69
|
+
*/
|
|
51
70
|
className?: string;
|
|
52
71
|
/**
|
|
53
|
-
* Form layout configuration (only applies when UI schema is NOT provided)
|
|
72
|
+
* Form layout configuration (only applies when UI schema is NOT provided).
|
|
73
|
+
* Determines how form fields are arranged in columns.
|
|
54
74
|
* @default FormLayout.SingleColumn
|
|
55
75
|
*/
|
|
56
76
|
layout?: FormLayout;
|
|
57
77
|
/**
|
|
58
|
-
* Called when all form elements are rendered and ready
|
|
78
|
+
* Called when all form elements are rendered and ready for interaction.
|
|
79
|
+
* Useful for performing post-render initialization or setup.
|
|
59
80
|
*/
|
|
60
81
|
created?: () => void;
|
|
61
82
|
}
|