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.esm.js CHANGED
@@ -6175,7 +6175,7 @@ onComponentSelect, onComponentDelete, onComponentEdit, onComponentUpdate, select
6175
6175
  // Synchronize component visibility whenever form values or components change
6176
6176
  useEffect(() => {
6177
6177
  evaluateConditionalLogic();
6178
- }, [formValues, formComponents, evaluateConditionalLogic]);
6178
+ }, [formValues, formComponents]);
6179
6179
  // Recursive function to evaluate conditional logic for nested components
6180
6180
  const evaluateComponentConditionalLogic = (components, visibility, currentFormValues, fullSchema) => {
6181
6181
  components.forEach(component => {
@@ -6393,8 +6393,6 @@ onComponentSelect, onComponentDelete, onComponentEdit, onComponentUpdate, select
6393
6393
  validateField(change.id);
6394
6394
  }, 150);
6395
6395
  }
6396
- // Re-evaluate immediately to ensure responsive UI
6397
- evaluateConditionalLogic(newFormValues, updatedComponents);
6398
6396
  }, [formComponents, formValues, validationErrors, onFormDataChange, evaluateConditionalLogic]);
6399
6397
  // Recursive function to find a component by ID in nested structures
6400
6398
  const findComponentById = useCallback((components, fieldId) => {
@@ -7186,7 +7184,7 @@ onComponentSelect, onComponentDelete, onComponentEdit, onComponentUpdate, select
7186
7184
  return renderFormComponent(field);
7187
7185
  } }) }));
7188
7186
  case 'datagrid':
7189
- return (jsx(DfFormDataGrid, { ...commonProps, properties: component, formData: formValues, formTemplateId: formTemplateId, mode: commonProps.mode, validationErrors: validationErrors, touchedFields: touchedFields, formSubmitted: formSubmitted, onThresholdActionCompletion: handleThresholdActionCompletion, onThresholdIssueRaised: handleThresholdIssueRaised, workOrderNumber: workOrderNumber, assetNumber: assetNumber, user: user, onComponentSelect: onComponentSelect, onComponentDelete: onComponentDelete, onComponentEdit: onComponentEdit, onCreateIssue: onCreateIssue, onUpdateIssue: onUpdateIssue, onComponentUpdate: onComponentUpdate, selectedComponent: selectedComponent, onNotesChange: (componentId, notes) => {
7187
+ return (jsx(DfFormDataGrid, { ...commonProps, properties: component, formData: formValues, formTemplateId: formTemplateId, mode: commonProps.mode, onThresholdActionCompletion: handleThresholdActionCompletion, onThresholdIssueRaised: handleThresholdIssueRaised, onNotesChange: (componentId, notes) => {
7190
7188
  handleComponentNotesChange(componentId, notes);
7191
7189
  // Handle notes change for datagrid entry components
7192
7190
  const updatedComponents = formComponents.map(comp => {