@myunisoft/design-system 0.18.2 → 0.18.3

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/CHANGELOG.md CHANGED
@@ -1,4 +1,8 @@
1
1
  # Changelog
2
+
3
+ ## v0.18.3 (14/09/2022)
4
+ - [MYUN-23331](https://myunisoft.atlassian.net/browse/MYUN-23331) Fix `AutocompleteCell` and `SelectCell` not updating
5
+
2
6
  ## v0.18.2 (12/09/2022)
3
7
  #### Bug Fixes
4
8
  - [MYUN-22495](https://myunisoft.atlassian.net/browse/MYUN-22495) Add `footerProps` property to VT config
@@ -17,7 +21,7 @@
17
21
  - [MYUN-MYUN-20881 ](https://myunisoft.atlassian.net/browse/MYUN-MYUN-20881 ) Migrate MUI from v4 to v5
18
22
 
19
23
  ## v0.16.4 (18/07/2022)
20
- - [MYUN-22693 ](https://myunisoft.atlassian.net/browse/MYUN-22693 ) [VirtualTable] Fix crash add fallback value for SelecCell when options array is empty
24
+ - [MYUN-22693 ](https://myunisoft.atlassian.net/browse/MYUN-22693 ) [VirtualTable] Fix crash add fallback value for SelecCell whegin options array is empty
21
25
 
22
26
  ## v0.16.2 (05/07/2022)
23
27
  #### Bug Fixes
package/dist/index.js CHANGED
@@ -4085,6 +4085,8 @@ var $870cf6882e14e90a$var$_objectWithoutProperties2 = $cMI0G$babelruntimehelpers
4085
4085
 
4086
4086
  var $870cf6882e14e90a$var$_omit2 = $cMI0G$babelruntimehelpersinteropRequireDefault($cMI0G$lodashomit);
4087
4087
 
4088
+ var $870cf6882e14e90a$var$_isNil2 = $cMI0G$babelruntimehelpersinteropRequireDefault($cMI0G$lodashisNil);
4089
+
4088
4090
 
4089
4091
  var $870cf6882e14e90a$var$_MenuItem = $cMI0G$babelruntimehelpersinteropRequireDefault($cMI0G$muimaterialMenuItem);
4090
4092
 
@@ -4145,7 +4147,7 @@ var $870cf6882e14e90a$var$EditSelectCell = /*#__PURE__*/ (0, $870cf6882e14e90a$v
4145
4147
  var changeInput = function changeInput(newValue) {
4146
4148
  onChange(newValue);
4147
4149
  };
4148
- var valueCell = (0, $94ZmE.getData)(data, dataKey) !== null ? (0, $94ZmE.getData)(data, dataKey) : $1VJ9B.NO_SELECT;
4150
+ var valueCell = !(0, $870cf6882e14e90a$var$_isNil2["default"])((0, $94ZmE.getData)(data, dataKey)) ? (0, $94ZmE.getData)(data, dataKey) : $1VJ9B.NO_SELECT;
4149
4151
  var selectedLabel = (0, $870cf6882e14e90a$var$_react.useMemo)(function() {
4150
4152
  var option = _options.find(function(_ref2) {
4151
4153
  var value = _ref2.value;
@@ -8871,11 +8873,11 @@ var $edec4fd90b3a763a$var$AutocompleteEdit = /*#__PURE__*/ (0, $edec4fd90b3a763a
8871
8873
  });
8872
8874
  };
8873
8875
  var _useState = (0, $edec4fd90b3a763a$var$_react.useState)(_getValue()), _useState2 = (0, $edec4fd90b3a763a$var$_slicedToArray2["default"])(_useState, 2), currentValue = _useState2[0], setValue = _useState2[1];
8876
+ var value1 = (0, $94ZmE.getData)(data, dataKey);
8874
8877
  (0, $edec4fd90b3a763a$var$_react.useEffect)(function() {
8875
- if ((0, $94ZmE.getData)(data, dataKey) !== currentValue) setValue(_getValue());
8878
+ if (value1 !== currentValue) setValue(_getValue());
8876
8879
  }, [
8877
- data,
8878
- dataKey
8880
+ value1
8879
8881
  ]);
8880
8882
  var keyId = data[selectableRowKey];
8881
8883
  var changeInput = function changeInput(newValue) {