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