carbon-addons-iot-react 4.3.5 → 4.3.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.
|
@@ -11,7 +11,6 @@ import 'core-js/modules/es.array.find-index.js';
|
|
|
11
11
|
import 'core-js/modules/es.array.includes.js';
|
|
12
12
|
import 'core-js/modules/es.array.map.js';
|
|
13
13
|
import 'core-js/modules/es.function.name.js';
|
|
14
|
-
import 'core-js/modules/es.number.constructor.js';
|
|
15
14
|
import 'core-js/modules/es.object.get-own-property-descriptor.js';
|
|
16
15
|
import 'core-js/modules/es.object.get-own-property-descriptors.js';
|
|
17
16
|
import 'core-js/modules/es.object.keys.js';
|
|
@@ -292,11 +291,11 @@ var ThresholdsFormItem = function ThresholdsFormItem(_ref) {
|
|
|
292
291
|
invalid: false // don't allow invalid state
|
|
293
292
|
,
|
|
294
293
|
value: ((_threshold$value2 = threshold.value) === null || _threshold$value2 === void 0 ? void 0 : _threshold$value2.toString()) || 0,
|
|
295
|
-
onChange: function onChange(
|
|
294
|
+
onChange: function onChange(_ref7) {
|
|
296
295
|
var value = _ref7.value;
|
|
297
296
|
var updatedThresholds = _toConsumableArray(thresholds);
|
|
298
297
|
updatedThresholds[i] = _objectSpread(_objectSpread({}, updatedThresholds[i]), {}, {
|
|
299
|
-
value:
|
|
298
|
+
value: value
|
|
300
299
|
});
|
|
301
300
|
_onChange(updatedThresholds.map(function (item) {
|
|
302
301
|
return _omit(item, 'id');
|
|
@@ -13,7 +13,6 @@ require('core-js/modules/es.array.find-index.js');
|
|
|
13
13
|
require('core-js/modules/es.array.includes.js');
|
|
14
14
|
require('core-js/modules/es.array.map.js');
|
|
15
15
|
require('core-js/modules/es.function.name.js');
|
|
16
|
-
require('core-js/modules/es.number.constructor.js');
|
|
17
16
|
require('core-js/modules/es.object.get-own-property-descriptor.js');
|
|
18
17
|
require('core-js/modules/es.object.get-own-property-descriptors.js');
|
|
19
18
|
require('core-js/modules/es.object.keys.js');
|
|
@@ -302,11 +301,11 @@ var ThresholdsFormItem = function ThresholdsFormItem(_ref) {
|
|
|
302
301
|
invalid: false // don't allow invalid state
|
|
303
302
|
,
|
|
304
303
|
value: ((_threshold$value2 = threshold.value) === null || _threshold$value2 === void 0 ? void 0 : _threshold$value2.toString()) || 0,
|
|
305
|
-
onChange: function onChange(
|
|
304
|
+
onChange: function onChange(_ref7) {
|
|
306
305
|
var value = _ref7.value;
|
|
307
306
|
var updatedThresholds = _toConsumableArray__default.default(thresholds);
|
|
308
307
|
updatedThresholds[i] = _objectSpread(_objectSpread({}, updatedThresholds[i]), {}, {
|
|
309
|
-
value:
|
|
308
|
+
value: value
|
|
310
309
|
});
|
|
311
310
|
_onChange(updatedThresholds.map(function (item) {
|
|
312
311
|
return omit(item, 'id');
|
package/package.json
CHANGED
|
@@ -327899,11 +327899,11 @@ React keys must be passed directly to JSX without using spread:
|
|
|
327899
327899
|
invalid: false // don't allow invalid state
|
|
327900
327900
|
,
|
|
327901
327901
|
value: ((_threshold$value2 = threshold.value) === null || _threshold$value2 === void 0 ? void 0 : _threshold$value2.toString()) || 0,
|
|
327902
|
-
onChange: function onChange(
|
|
327902
|
+
onChange: function onChange(_ref7) {
|
|
327903
327903
|
var value = _ref7.value;
|
|
327904
327904
|
var updatedThresholds = _toConsumableArray$2(thresholds);
|
|
327905
327905
|
updatedThresholds[i] = _objectSpread$H(_objectSpread$H({}, updatedThresholds[i]), {}, {
|
|
327906
|
-
value:
|
|
327906
|
+
value: value
|
|
327907
327907
|
});
|
|
327908
327908
|
_onChange(updatedThresholds.map(function (item) {
|
|
327909
327909
|
return _omit(item, 'id');
|