df-ae-forms-package 1.0.88 → 1.0.89

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
@@ -6406,7 +6406,9 @@ onComponentSelect, onComponentDelete, onComponentEdit, onComponentUpdate, select
6406
6406
  return renderFormComponent(field);
6407
6407
  } }));
6408
6408
  case 'table':
6409
- return (jsx(React.Suspense, { fallback: jsx("div", { children: "Loading table..." }), children: jsx(DfFormTable$1, { ...commonProps, properties: component, formData: formValues, formTemplateId: formTemplateId, mode: commonProps.mode, validationErrors: validationErrors, touchedFields: touchedFields, formSubmitted: formSubmitted, onThresholdActionCompletion: handleThresholdActionCompletion, onThresholdIssueRaised: handleThresholdIssueRaised, workOrderNumber: workOrderNumber, assetNumber: assetNumber, onCreateIssue: onCreateIssue, onUpdateIssue: onUpdateIssue, onNotesChange: (componentId, notes) => {
6409
+ return (jsx(React.Suspense, { fallback: jsx("div", { children: "Loading table..." }), children: jsx(DfFormTable$1, { ...commonProps, properties: component, formData: formValues, formTemplateId: formTemplateId, mode: commonProps.mode, validationErrors: validationErrors, touchedFields: touchedFields, formSubmitted: formSubmitted, onThresholdActionCompletion: handleThresholdActionCompletion, onThresholdIssueRaised: handleThresholdIssueRaised, workOrderNumber: workOrderNumber, assetNumber: assetNumber, onCreateIssue: onCreateIssue, onUpdateIssue: onUpdateIssue, renderFormComponent: (field) => {
6410
+ return renderFormComponent(field);
6411
+ }, onNotesChange: (componentId, notes) => {
6410
6412
  // Handle notes change for table cell components
6411
6413
  const updatedComponents = formComponents.map(comp => {
6412
6414
  if (comp.id === component.id && comp.cells) {
@@ -6460,10 +6462,6 @@ onComponentSelect, onComponentDelete, onComponentEdit, onComponentUpdate, select
6460
6462
  return comp;
6461
6463
  });
6462
6464
  onFormDataChange?.(updatedComponents);
6463
- }, renderFormComponent: (field) => {
6464
- // CRITICAL: Pass the field to renderFormComponent which has access to latest formValues
6465
- // renderFormComponent uses formValues[field.id] internally, so it will get the correct value
6466
- return renderFormComponent(field);
6467
6465
  } }) }));
6468
6466
  case 'datagrid':
6469
6467
  return (jsx(DfFormDataGrid, { ...commonProps, properties: component, formData: formValues, formTemplateId: formTemplateId, mode: commonProps.mode, onThresholdActionCompletion: handleThresholdActionCompletion, onThresholdIssueRaised: handleThresholdIssueRaised, onNotesChange: (componentId, notes) => {