@integry/sdk 4.7.30 → 4.7.31
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/package.json
CHANGED
|
@@ -1073,12 +1073,14 @@ class ActionForm extends Component<ActionFormPropsType, ActionFormStateType> {
|
|
|
1073
1073
|
value,
|
|
1074
1074
|
isRequired,
|
|
1075
1075
|
machineName,
|
|
1076
|
+
computeValueUsingActivityOutput,
|
|
1076
1077
|
}: {
|
|
1077
1078
|
stepId: number;
|
|
1078
1079
|
fieldId: number;
|
|
1079
1080
|
value: string;
|
|
1080
1081
|
isRequired: boolean;
|
|
1081
1082
|
machineName?: string;
|
|
1083
|
+
computeValueUsingActivityOutput?: boolean;
|
|
1082
1084
|
}) => {
|
|
1083
1085
|
// we want to check if callback function is passed in props, if yes then call it
|
|
1084
1086
|
if (this.props.onFieldChangeCallback) {
|
|
@@ -1105,10 +1107,16 @@ class ActionForm extends Component<ActionFormPropsType, ActionFormStateType> {
|
|
|
1105
1107
|
|
|
1106
1108
|
this.props.onFieldChangeCallback(machineName || '', value);
|
|
1107
1109
|
} else {
|
|
1110
|
+
const valueToUse = !computeValueUsingActivityOutput
|
|
1111
|
+
? value
|
|
1112
|
+
: this.getFieldValFromActivityOutputRaw(
|
|
1113
|
+
this.props.activityOutputData,
|
|
1114
|
+
value,
|
|
1115
|
+
);
|
|
1108
1116
|
this.props.setStepFieldData({
|
|
1109
1117
|
stepId: `${stepId}`,
|
|
1110
1118
|
fieldId: `${fieldId}`,
|
|
1111
|
-
value,
|
|
1119
|
+
value: valueToUse,
|
|
1112
1120
|
isRequired,
|
|
1113
1121
|
});
|
|
1114
1122
|
this.setState({ changedParentMachineName: machineName });
|
|
@@ -1718,34 +1726,16 @@ class ActionForm extends Component<ActionFormPropsType, ActionFormStateType> {
|
|
|
1718
1726
|
}
|
|
1719
1727
|
isRequired=${el.is_required}
|
|
1720
1728
|
isHidden=${el.is_hidden}
|
|
1721
|
-
onChange=${(
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
: val,
|
|
1732
|
-
isRequired: el.is_required,
|
|
1733
|
-
machineName:
|
|
1734
|
-
el.activity_field?.machine_name,
|
|
1735
|
-
});
|
|
1736
|
-
} else {
|
|
1737
|
-
setStepFieldData({
|
|
1738
|
-
stepId: `${step.id}`,
|
|
1739
|
-
fieldId: `${el.id}`,
|
|
1740
|
-
value: this.getFieldValFromActivityOutputRaw(
|
|
1741
|
-
this.props.activityOutputData,
|
|
1742
|
-
val,
|
|
1743
|
-
),
|
|
1744
|
-
isRequired: el.is_required,
|
|
1745
|
-
passesRegexTest,
|
|
1746
|
-
});
|
|
1747
|
-
this.props.verifyStepValidity(step.id);
|
|
1748
|
-
}
|
|
1729
|
+
onChange=${(val: string) => {
|
|
1730
|
+
this.onFieldChange({
|
|
1731
|
+
stepId: step.id,
|
|
1732
|
+
fieldId: el.id,
|
|
1733
|
+
value: val,
|
|
1734
|
+
isRequired: el.is_required,
|
|
1735
|
+
machineName:
|
|
1736
|
+
el.activity_field?.machine_name,
|
|
1737
|
+
computeValueUsingActivityOutput: true,
|
|
1738
|
+
});
|
|
1749
1739
|
}}
|
|
1750
1740
|
isReadOnly=${isReadOnly}
|
|
1751
1741
|
isChanged=${
|