@integry/sdk 4.7.5 → 4.7.6

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@integry/sdk",
3
- "version": "4.7.5",
3
+ "version": "4.7.6",
4
4
  "description": "Integry SDK",
5
5
  "main": "dist/umd/index.umd.js",
6
6
  "module": "dist/esm/index.csm.js",
@@ -681,9 +681,7 @@ const MultipurposeField = (props: MultipurposeFieldProps) => {
681
681
  ? searchValue
682
682
  : tempPlaceholder
683
683
  ? ''
684
- : currentValue
685
- ? currentValue
686
- : '',
684
+ : currentValue,
687
685
  }
688
686
  : {}}
689
687
  />
@@ -52,6 +52,7 @@ interface ActionFormPropsType extends StoreType {
52
52
  tagsTree?: any;
53
53
  showMappingMenu: boolean;
54
54
  showMenuOnLeft: boolean;
55
+ tagsTreeActivityOutput?: any;
55
56
  }
56
57
 
57
58
  interface ActionFormStateType {
@@ -1663,15 +1664,20 @@ class ActionForm extends Component<ActionFormPropsType, ActionFormStateType> {
1663
1664
  title=${
1664
1665
  el.title || el.activity_field?.title
1665
1666
  }
1666
- activityOutputData=${this.arrayToNestedJSONWithFirstValue(
1667
- this.props.activityOutputData ||
1668
- JSONToActivityOutputData(
1669
- this.props.tagsTree || {},
1670
- ),
1671
- this.props.dynamicFieldData ||
1672
- this.state.dynamicFieldDataState ||
1673
- {},
1674
- )}
1667
+ activityOutputData=${
1668
+ this.props.showMappingMenu
1669
+ ? this.props.tagsTreeActivityOutput
1670
+ : this.arrayToNestedJSONWithFirstValue(
1671
+ this.props.activityOutputData ||
1672
+ JSONToActivityOutputData(
1673
+ this.props.tagsTree || {},
1674
+ ),
1675
+ this.props.dynamicFieldData ||
1676
+ this.state
1677
+ .dynamicFieldDataState ||
1678
+ {},
1679
+ )
1680
+ }
1675
1681
  activityOutputDataRaw=${
1676
1682
  this.props.activityOutputData ||
1677
1683
  JSONToActivityOutputData(
@@ -1816,12 +1822,17 @@ class ActionForm extends Component<ActionFormPropsType, ActionFormStateType> {
1816
1822
  }}
1817
1823
  apiHandler=${this.props.apiHandler}
1818
1824
  isArray=${fieldType === 'OBJECT[]'}
1819
- activityOutputData=${this.arrayToNestedJSONWithFirstValue(
1820
- this.props.activityOutputData,
1821
- this.props.dynamicFieldData ||
1822
- this.state.dynamicFieldDataState ||
1823
- {},
1824
- )}
1825
+ activityOutputData=${
1826
+ this.props.showMappingMenu
1827
+ ? this.props.tagsTreeActivityOutput
1828
+ : this.arrayToNestedJSONWithFirstValue(
1829
+ this.props.activityOutputData,
1830
+ this.props.dynamicFieldData ||
1831
+ this.state
1832
+ .dynamicFieldDataState ||
1833
+ {},
1834
+ )
1835
+ }
1825
1836
  activityOutputDataRaw=${
1826
1837
  this.props.activityOutputData
1827
1838
  }
@@ -1929,15 +1940,19 @@ class ActionForm extends Component<ActionFormPropsType, ActionFormStateType> {
1929
1940
  ...this.fieldDynamicData(el),
1930
1941
  ...this.state.dynamicFieldsData,
1931
1942
  })}
1932
- activityOutputData=${this.arrayToNestedJSONWithFirstValue(
1933
- this.props.activityOutputData ||
1934
- JSONToActivityOutputData(
1935
- this.props.tagsTree || {},
1936
- ),
1937
- this.props.dynamicFieldData ||
1938
- this.state.dynamicFieldDataState ||
1939
- {},
1940
- )}
1943
+ activityOutputData=${this.props
1944
+ .showMappingMenu
1945
+ ? this.props.tagsTreeActivityOutput
1946
+ : this.arrayToNestedJSONWithFirstValue(
1947
+ this.props.activityOutputData ||
1948
+ JSONToActivityOutputData(
1949
+ this.props.tagsTree || {},
1950
+ ),
1951
+ this.props.dynamicFieldData ||
1952
+ this.state
1953
+ .dynamicFieldDataState ||
1954
+ {},
1955
+ )}
1941
1956
  activityOutputDataRaw=${this.props
1942
1957
  .activityOutputData ||
1943
1958
  JSONToActivityOutputData(
@@ -2095,15 +2110,19 @@ class ActionForm extends Component<ActionFormPropsType, ActionFormStateType> {
2095
2110
  elParentFields.includes(
2096
2111
  this.state.changedParentMachineName,
2097
2112
  )}
2098
- activityOutputData=${this.arrayToNestedJSONWithFirstValue(
2099
- this.props.activityOutputData ||
2100
- JSONToActivityOutputData(
2101
- this.props.tagsTree || {},
2102
- ),
2103
- this.props.dynamicFieldData ||
2104
- this.state.dynamicFieldDataState ||
2105
- {},
2106
- )}
2113
+ activityOutputData=${this.props
2114
+ .showMappingMenu
2115
+ ? this.props.tagsTreeActivityOutput
2116
+ : this.arrayToNestedJSONWithFirstValue(
2117
+ this.props.activityOutputData ||
2118
+ JSONToActivityOutputData(
2119
+ this.props.tagsTree || {},
2120
+ ),
2121
+ this.props.dynamicFieldData ||
2122
+ this.state
2123
+ .dynamicFieldDataState ||
2124
+ {},
2125
+ )}
2107
2126
  activityOutputDataRaw=${this.props
2108
2127
  .activityOutputData ||
2109
2128
  JSONToActivityOutputData(
@@ -2307,15 +2326,19 @@ class ActionForm extends Component<ActionFormPropsType, ActionFormStateType> {
2307
2326
  }
2308
2327
  type=${el.activity_field?.type}
2309
2328
  labelTags=${getFieldLabelTags(el, false)}
2310
- activityOutputData=${this.arrayToNestedJSONWithFirstValue(
2311
- this.props.activityOutputData ||
2312
- JSONToActivityOutputData(
2313
- this.props.tagsTree || {},
2314
- ),
2315
- this.props.dynamicFieldData ||
2316
- this.state.dynamicFieldDataState ||
2317
- {},
2318
- )}
2329
+ activityOutputData=${
2330
+ this.props.showMappingMenu
2331
+ ? this.props.tagsTreeActivityOutput
2332
+ : this.arrayToNestedJSONWithFirstValue(
2333
+ this.props.activityOutputData ||
2334
+ JSONToActivityOutputData(
2335
+ this.props.tagsTree || {},
2336
+ ),
2337
+ this.props.dynamicFieldData ||
2338
+ this.state.dynamicFieldDataState ||
2339
+ {},
2340
+ )
2341
+ }
2319
2342
  activityOutputDataRaw=${
2320
2343
  this.props.activityOutputData ||
2321
2344
  JSONToActivityOutputData(
package/src/index.ts CHANGED
@@ -50,8 +50,11 @@ import { TagsMenu } from '@/components/TagsMenu';
50
50
  import FunctionForm from '@/features/common/FunctionForm';
51
51
  import { openPopupWindow } from '@/utils/popup';
52
52
  import { Modal } from '@/components/Modal';
53
+ import {
54
+ JSONToActivityOutputData,
55
+ arrayToNestedJSONWithFirstValue,
56
+ } from '@/utils/ActivityOutputUtils';
53
57
  import { ListBox } from '@/components/MultipurposeField/Dropdown';
54
- import { TestComponent } from '@/components/TestComponent';
55
58
  import { MultipurposeField } from './components/MultipurposeField';
56
59
  import SDKDebugContainer from './features/containers/SDKDebugContainer';
57
60
 
@@ -2036,6 +2039,10 @@ export class IntegryJS {
2036
2039
  showMappingMenu=${options.showMappingMenu}
2037
2040
  isReadOnly=${options.isReadOnly}
2038
2041
  showMenuOnLeft=${options.showMenuOnLeft}
2042
+ tagsTreeActivityOutput=${arrayToNestedJSONWithFirstValue(
2043
+ JSONToActivityOutputData(options.tagsTree || {}),
2044
+ {},
2045
+ )}
2039
2046
  />
2040
2047
  <//>
2041
2048
  <//>