@integry/sdk 4.6.64 → 4.6.65
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
|
@@ -359,7 +359,8 @@ const FieldDropdown = (props: FieldMenuProps) => {
|
|
|
359
359
|
<a
|
|
360
360
|
className=${styles.optionsRefresh}
|
|
361
361
|
href="#"
|
|
362
|
-
onclick=${() => {
|
|
362
|
+
onclick=${(e: Event) => {
|
|
363
|
+
e.preventDefault();
|
|
363
364
|
if (handleRefreshClick) {
|
|
364
365
|
setisLoadingOptions(true);
|
|
365
366
|
handleRefreshClick(() =>
|
|
@@ -1974,7 +1974,22 @@ class ActionForm extends Component<ActionFormPropsType, ActionFormStateType> {
|
|
|
1974
1974
|
/>
|
|
1975
1975
|
</div>
|
|
1976
1976
|
`;
|
|
1977
|
-
case 'TEXTAREA':
|
|
1977
|
+
case 'TEXTAREA': {
|
|
1978
|
+
let fieldVal = null;
|
|
1979
|
+
if (this.props.onFieldChangeCallback) {
|
|
1980
|
+
if (
|
|
1981
|
+
Object.prototype.hasOwnProperty.call(
|
|
1982
|
+
this.state.dynamicFieldsData || {},
|
|
1983
|
+
el.activity_field?.machine_name || '',
|
|
1984
|
+
)
|
|
1985
|
+
) {
|
|
1986
|
+
fieldVal = this.state.dynamicFieldsData[
|
|
1987
|
+
el.activity_field?.machine_name || ''
|
|
1988
|
+
];
|
|
1989
|
+
} else {
|
|
1990
|
+
fieldVal = el.default_value;
|
|
1991
|
+
}
|
|
1992
|
+
}
|
|
1978
1993
|
return html`
|
|
1979
1994
|
<div key=${
|
|
1980
1995
|
el.id
|
|
@@ -1992,6 +2007,7 @@ class ActionForm extends Component<ActionFormPropsType, ActionFormStateType> {
|
|
|
1992
2007
|
title=${el.title || el.activity_field?.title}
|
|
1993
2008
|
description=${elDescription}
|
|
1994
2009
|
value=${
|
|
2010
|
+
fieldVal ||
|
|
1995
2011
|
(selectedStepData &&
|
|
1996
2012
|
selectedStepData[el.id] &&
|
|
1997
2013
|
selectedStepData[el.id].value &&
|
|
@@ -2021,10 +2037,14 @@ class ActionForm extends Component<ActionFormPropsType, ActionFormStateType> {
|
|
|
2021
2037
|
passesRegexTest?: boolean,
|
|
2022
2038
|
) => {
|
|
2023
2039
|
if (this.props.onFieldChangeCallback) {
|
|
2024
|
-
this.
|
|
2025
|
-
|
|
2026
|
-
|
|
2027
|
-
|
|
2040
|
+
this.onFieldChange({
|
|
2041
|
+
stepId: step.id,
|
|
2042
|
+
fieldId: el.id,
|
|
2043
|
+
value: val,
|
|
2044
|
+
isRequired: el.is_required,
|
|
2045
|
+
machineName:
|
|
2046
|
+
el.activity_field?.machine_name,
|
|
2047
|
+
});
|
|
2028
2048
|
} else {
|
|
2029
2049
|
setStepFieldData({
|
|
2030
2050
|
stepId: `${step.id}`,
|
|
@@ -2080,6 +2100,7 @@ class ActionForm extends Component<ActionFormPropsType, ActionFormStateType> {
|
|
|
2080
2100
|
</${ConfigureFieldWrapper}>
|
|
2081
2101
|
</div>
|
|
2082
2102
|
`;
|
|
2103
|
+
}
|
|
2083
2104
|
case 'DATE':
|
|
2084
2105
|
return html`
|
|
2085
2106
|
<div
|