carbon-addons-iot-react 5.8.2 → 5.8.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.
|
@@ -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
|
@@ -311204,11 +311204,11 @@ ${formatRule(Codicon.menuSubmenu)}
|
|
|
311204
311204
|
invalid: false // don't allow invalid state
|
|
311205
311205
|
,
|
|
311206
311206
|
value: ((_threshold$value2 = threshold.value) === null || _threshold$value2 === void 0 ? void 0 : _threshold$value2.toString()) || 0,
|
|
311207
|
-
onChange: function onChange(
|
|
311207
|
+
onChange: function onChange(_ref7) {
|
|
311208
311208
|
var value = _ref7.value;
|
|
311209
311209
|
var updatedThresholds = _toConsumableArray$2(thresholds);
|
|
311210
311210
|
updatedThresholds[i] = _objectSpread$H(_objectSpread$H({}, updatedThresholds[i]), {}, {
|
|
311211
|
-
value:
|
|
311211
|
+
value: value
|
|
311212
311212
|
});
|
|
311213
311213
|
_onChange(updatedThresholds.map(function (item) {
|
|
311214
311214
|
return _omit(item, 'id');
|