df-ae-forms-package 1.0.67 → 1.0.69
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/index.css +1 -1
- package/dist/index.css.map +1 -1
- package/dist/index.esm.js +2 -4
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +2 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -6177,7 +6177,7 @@ onComponentSelect, onComponentDelete, onComponentEdit, onComponentUpdate, select
|
|
|
6177
6177
|
// Synchronize component visibility whenever form values or components change
|
|
6178
6178
|
React.useEffect(() => {
|
|
6179
6179
|
evaluateConditionalLogic();
|
|
6180
|
-
}, [formValues, formComponents
|
|
6180
|
+
}, [formValues, formComponents]);
|
|
6181
6181
|
// Recursive function to evaluate conditional logic for nested components
|
|
6182
6182
|
const evaluateComponentConditionalLogic = (components, visibility, currentFormValues, fullSchema) => {
|
|
6183
6183
|
components.forEach(component => {
|
|
@@ -6395,8 +6395,6 @@ onComponentSelect, onComponentDelete, onComponentEdit, onComponentUpdate, select
|
|
|
6395
6395
|
validateField(change.id);
|
|
6396
6396
|
}, 150);
|
|
6397
6397
|
}
|
|
6398
|
-
// Re-evaluate immediately to ensure responsive UI
|
|
6399
|
-
evaluateConditionalLogic(newFormValues, updatedComponents);
|
|
6400
6398
|
}, [formComponents, formValues, validationErrors, onFormDataChange, evaluateConditionalLogic]);
|
|
6401
6399
|
// Recursive function to find a component by ID in nested structures
|
|
6402
6400
|
const findComponentById = React.useCallback((components, fieldId) => {
|
|
@@ -7188,7 +7186,7 @@ onComponentSelect, onComponentDelete, onComponentEdit, onComponentUpdate, select
|
|
|
7188
7186
|
return renderFormComponent(field);
|
|
7189
7187
|
} }) }));
|
|
7190
7188
|
case 'datagrid':
|
|
7191
|
-
return (jsxRuntime.jsx(DfFormDataGrid, { ...commonProps, properties: component, formData: formValues, formTemplateId: formTemplateId, mode: commonProps.mode,
|
|
7189
|
+
return (jsxRuntime.jsx(DfFormDataGrid, { ...commonProps, properties: component, formData: formValues, formTemplateId: formTemplateId, mode: commonProps.mode, onThresholdActionCompletion: handleThresholdActionCompletion, onThresholdIssueRaised: handleThresholdIssueRaised, onNotesChange: (componentId, notes) => {
|
|
7192
7190
|
handleComponentNotesChange(componentId, notes);
|
|
7193
7191
|
// Handle notes change for datagrid entry components
|
|
7194
7192
|
const updatedComponents = formComponents.map(comp => {
|