@widergy/energy-ui 1.125.0 → 1.125.1
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,3 +1,10 @@
|
|
|
1
|
+
## [1.125.1](https://github.com/widergy/energy-ui/compare/v1.125.0...v1.125.1) (2022-06-07)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* cbu input field ([#296](https://github.com/widergy/energy-ui/issues/296)) ([9109b07](https://github.com/widergy/energy-ui/commit/9109b07a52aab6eee6ca33edd620d5bccd8cab14))
|
|
7
|
+
|
|
1
8
|
# [1.125.0](https://github.com/widergy/energy-ui/compare/v1.124.0...v1.125.0) (2022-06-03)
|
|
2
9
|
|
|
3
10
|
|
|
@@ -52,7 +52,8 @@ var UTCBUInput = function UTCBUInput(_ref) {
|
|
|
52
52
|
title = field.title,
|
|
53
53
|
configuration = field.configuration;
|
|
54
54
|
var entities = configuration.entities,
|
|
55
|
-
cbuNumberKey = configuration.cbu_number_key
|
|
55
|
+
cbuNumberKey = configuration.cbu_number_key,
|
|
56
|
+
cbuEntityKey = configuration.cbu_entity_key;
|
|
56
57
|
|
|
57
58
|
var _useState = (0, _react.useState)(''),
|
|
58
59
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -67,13 +68,13 @@ var UTCBUInput = function UTCBUInput(_ref) {
|
|
|
67
68
|
});
|
|
68
69
|
var entityToSet = index === -1 ? '' : entities[index].entity_name;
|
|
69
70
|
setEntity(entityToSet);
|
|
70
|
-
onChange((_onChange = {}, _defineProperty(_onChange, cbuNumberKey, newValue), _defineProperty(_onChange,
|
|
71
|
+
onChange((_onChange = {}, _defineProperty(_onChange, cbuNumberKey, newValue), _defineProperty(_onChange, cbuEntityKey, entityToSet), _onChange));
|
|
71
72
|
};
|
|
72
73
|
|
|
73
74
|
return /*#__PURE__*/_react.default.createElement(_UTTextInput.default, {
|
|
74
75
|
input: {
|
|
75
76
|
onChange: onChangeText,
|
|
76
|
-
value: (_value = {}, _defineProperty(_value, cbuNumberKey, value[cbuNumberKey]), _defineProperty(_value,
|
|
77
|
+
value: (_value = {}, _defineProperty(_value, cbuNumberKey, value[cbuNumberKey]), _defineProperty(_value, cbuEntityKey, entity), _value)
|
|
77
78
|
},
|
|
78
79
|
field: field,
|
|
79
80
|
placeholder: placeholder,
|