@iobroker/adapter-react-v5 3.2.3 → 3.2.5

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.
@@ -1407,6 +1407,10 @@ function formatValue(id, state, obj, texts, dateFormat, isFloatComma) {
1407
1407
  // we don't know what is that, so leave it as it is
1408
1408
  }
1409
1409
  } else {
1410
+ if (v > 946681200 && v < 946681200000) {
1411
+ // '2000-01-01T00:00:00' => 946681200000
1412
+ v *= 1000; // may be the time is in seconds (UNIX time)
1413
+ }
1410
1414
  // null and undefined could not be here. See `let v = (isCommon && isCommon.type === 'file') ....` above
1411
1415
  v = v ? new Date(v).toString() : v;
1412
1416
  }
@@ -3437,7 +3441,7 @@ var ObjectBrowser = /*#__PURE__*/function (_Component) {
3437
3441
  name: getName(((_this18$objects$id = _this18.objects[id]) === null || _this18$objects$id === void 0 ? void 0 : (_this18$objects$id$co = _this18$objects$id.common) === null || _this18$objects$id$co === void 0 ? void 0 : _this18$objects$id$co.name) || id.split('.').pop()),
3438
3442
  value: id,
3439
3443
  icon: /*#__PURE__*/_react["default"].createElement(_Icon["default"], {
3440
- src: (_this18$objects$id2 = _this18.objects[id]) === null || _this18$objects$id2 === void 0 ? void 0 : (_this18$objects$id2$c = _this18$objects$id2.common) === null || _this18$objects$id2$c === void 0 ? void 0 : _this18$objects$id2$c.icon,
3444
+ src: ((_this18$objects$id2 = _this18.objects[id]) === null || _this18$objects$id2 === void 0 ? void 0 : (_this18$objects$id2$c = _this18$objects$id2.common) === null || _this18$objects$id2$c === void 0 ? void 0 : _this18$objects$id2$c.icon) || '',
3441
3445
  className: _this18.props.classes.selectIcon
3442
3446
  })
3443
3447
  };
@@ -3458,7 +3462,7 @@ var ObjectBrowser = /*#__PURE__*/function (_Component) {
3458
3462
  name: getName(_this19.objects[id] && _this19.objects[id].common && _this19.objects[id].common.name || id.split('.').pop()),
3459
3463
  value: id,
3460
3464
  icon: /*#__PURE__*/_react["default"].createElement(_Icon["default"], {
3461
- src: (_this19$objects$id = _this19.objects[id]) === null || _this19$objects$id === void 0 ? void 0 : (_this19$objects$id$co = _this19$objects$id.common) === null || _this19$objects$id$co === void 0 ? void 0 : _this19$objects$id$co.icon,
3465
+ src: ((_this19$objects$id = _this19.objects[id]) === null || _this19$objects$id === void 0 ? void 0 : (_this19$objects$id$co = _this19$objects$id.common) === null || _this19$objects$id$co === void 0 ? void 0 : _this19$objects$id$co.icon) || '',
3462
3466
  className: _this19.props.classes.selectIcon
3463
3467
  })
3464
3468
  };
@@ -3495,7 +3499,7 @@ var ObjectBrowser = /*#__PURE__*/function (_Component) {
3495
3499
  name: id,
3496
3500
  value: id,
3497
3501
  icon: /*#__PURE__*/_react["default"].createElement(_Icon["default"], {
3498
- src: getSelectIdIcon(_this20.objects, id, _this20.imagePrefix),
3502
+ src: getSelectIdIcon(_this20.objects, id, _this20.imagePrefix) || '',
3499
3503
  className: _this20.props.classes.selectIcon
3500
3504
  })
3501
3505
  };
@@ -3701,7 +3705,7 @@ var ObjectBrowser = /*#__PURE__*/function (_Component) {
3701
3705
  return _this25._exportObjects(true);
3702
3706
  });
3703
3707
  }
3704
- }, this.props.t('ra_All objects')), /*#__PURE__*/_react["default"].createElement(_Button["default"], {
3708
+ }, this.props.t('ra_All objects'), " (", Object.keys(this.objects).length, ")"), /*#__PURE__*/_react["default"].createElement(_Button["default"], {
3705
3709
  color: "primary",
3706
3710
  variant: "contained",
3707
3711
  autoFocus: true,
@@ -3712,7 +3716,7 @@ var ObjectBrowser = /*#__PURE__*/function (_Component) {
3712
3716
  return _this25._exportObjects(false);
3713
3717
  });
3714
3718
  }
3715
- }, this.props.t('ra_Only selected')), /*#__PURE__*/_react["default"].createElement(_Button["default"], {
3719
+ }, this.props.t('ra_Only selected'), " (", this.state.showExportDialog, ")"), /*#__PURE__*/_react["default"].createElement(_Button["default"], {
3716
3720
  color: "grey",
3717
3721
  variant: "contained",
3718
3722
  onClick: function onClick() {
@@ -4309,6 +4313,8 @@ var ObjectBrowser = /*#__PURE__*/function (_Component) {
4309
4313
  value: id,
4310
4314
  icon: getSelectIdIcon(_this31.objects, id, _this31.imagePrefix)
4311
4315
  };
4316
+ }).sort(function (a, b) {
4317
+ return a.name > b.name ? 1 : -1;
4312
4318
  });
4313
4319
  enums.forEach(function (_item) {
4314
4320
  if (_item.icon && typeof _item.icon === 'string') {