@integry/sdk 4.6.63 → 4.6.64
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
|
@@ -1557,7 +1557,22 @@ class ActionForm extends Component<ActionFormPropsType, ActionFormStateType> {
|
|
|
1557
1557
|
/>
|
|
1558
1558
|
</div>`;
|
|
1559
1559
|
case 'TEXTFIELD':
|
|
1560
|
-
case 'HIDDEN':
|
|
1560
|
+
case 'HIDDEN': {
|
|
1561
|
+
let fieldVal = null;
|
|
1562
|
+
if (this.props.onFieldChangeCallback) {
|
|
1563
|
+
if (
|
|
1564
|
+
Object.prototype.hasOwnProperty.call(
|
|
1565
|
+
this.state.dynamicFieldsData || {},
|
|
1566
|
+
el.activity_field?.machine_name || '',
|
|
1567
|
+
)
|
|
1568
|
+
) {
|
|
1569
|
+
fieldVal = this.state.dynamicFieldsData[
|
|
1570
|
+
el.activity_field?.machine_name || ''
|
|
1571
|
+
];
|
|
1572
|
+
} else {
|
|
1573
|
+
fieldVal = el.default_value;
|
|
1574
|
+
}
|
|
1575
|
+
}
|
|
1561
1576
|
return (
|
|
1562
1577
|
(this.textFieldParentHasValues(el) ||
|
|
1563
1578
|
(this.props.userConfig || {}).viewAsIU) &&
|
|
@@ -1595,6 +1610,7 @@ class ActionForm extends Component<ActionFormPropsType, ActionFormStateType> {
|
|
|
1595
1610
|
}
|
|
1596
1611
|
description=${elDescription}
|
|
1597
1612
|
value=${
|
|
1613
|
+
fieldVal ||
|
|
1598
1614
|
(selectedStepData &&
|
|
1599
1615
|
selectedStepData[el.id] &&
|
|
1600
1616
|
selectedStepData[el.id].value &&
|
|
@@ -1603,7 +1619,7 @@ class ActionForm extends Component<ActionFormPropsType, ActionFormStateType> {
|
|
|
1603
1619
|
selectedStepData[el.id].value) ||
|
|
1604
1620
|
el.default_value ||
|
|
1605
1621
|
''
|
|
1606
|
-
}
|
|
1622
|
+
}
|
|
1607
1623
|
placeholder=${this.getPlaceholder(el)}
|
|
1608
1624
|
showStepValidation=${showStepValidation}
|
|
1609
1625
|
regex=${
|
|
@@ -1624,10 +1640,14 @@ class ActionForm extends Component<ActionFormPropsType, ActionFormStateType> {
|
|
|
1624
1640
|
passesRegexTest?: boolean,
|
|
1625
1641
|
) => {
|
|
1626
1642
|
if (this.props.onFieldChangeCallback) {
|
|
1627
|
-
this.
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1643
|
+
this.onFieldChange({
|
|
1644
|
+
stepId: step.id,
|
|
1645
|
+
fieldId: el.id,
|
|
1646
|
+
value: val,
|
|
1647
|
+
isRequired: el.is_required,
|
|
1648
|
+
machineName:
|
|
1649
|
+
el.activity_field?.machine_name,
|
|
1650
|
+
});
|
|
1631
1651
|
} else {
|
|
1632
1652
|
setStepFieldData({
|
|
1633
1653
|
stepId: `${step.id}`,
|
|
@@ -1686,7 +1706,7 @@ class ActionForm extends Component<ActionFormPropsType, ActionFormStateType> {
|
|
|
1686
1706
|
</div>
|
|
1687
1707
|
`
|
|
1688
1708
|
);
|
|
1689
|
-
|
|
1709
|
+
}
|
|
1690
1710
|
case 'OBJECT':
|
|
1691
1711
|
case 'OBJECT[]':
|
|
1692
1712
|
return (
|